summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2006-06-13 14:27:52 +0000
committerambrisko <ambrisko@FreeBSD.org>2006-06-13 14:27:52 +0000
commit033f8e47d2aba2ec3d03076f1b808cb3407eef2f (patch)
treecb3a5cf09b14bb5ff6a7e56dcda90153d13a0871 /sys
parentb06caabc4589c76923b3cf02e224c73841ca2e8e (diff)
downloadFreeBSD-src-033f8e47d2aba2ec3d03076f1b808cb3407eef2f.zip
FreeBSD-src-033f8e47d2aba2ec3d03076f1b808cb3407eef2f.tar.gz
Fix missing \n and when there are no arg's that means just print out
the description so we don't have to do any more queries. Disable the event query code until it figured out since but it is similar to the AEN detail so we should be able to get that working.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mfi/mfi.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/sys/dev/mfi/mfi.c b/sys/dev/mfi/mfi.c
index ec84384..e8c4734 100644
--- a/sys/dev/mfi/mfi.c
+++ b/sys/dev/mfi/mfi.c
@@ -59,7 +59,9 @@ static int mfi_polled_command(struct mfi_softc *, struct mfi_command *);
static int mfi_get_controller_info(struct mfi_softc *);
static int mfi_get_log_state(struct mfi_softc *,
struct mfi_evt_log_state *);
+#ifdef NOTYET
static int mfi_get_entry(struct mfi_softc *, int);
+#endif
static void mfi_data_cb(void *, bus_dma_segment_t *, int, int);
static void mfi_startup(void *arg);
static void mfi_intr(void *arg);
@@ -608,7 +610,7 @@ mfi_aen_setup(struct mfi_softc *sc, uint32_t seq_start)
* the AEN mechanism via setting it lower then
* current. The firmware will iterate through them.
*/
-#if 0
+#ifdef NOTYET
for (seq = log_state.shutdown_seq_num;
seq <= log_state.newest_seq_num; seq++) {
mfi_get_entry(sc, seq);
@@ -930,7 +932,7 @@ mfi_ldprobe_tur_complete(struct mfi_command *cm)
mfi_ldprobe_capacity(sc, hdr->target_id);
}
-#ifndef MFI_DECODE_LOG
+#ifdef NOTYET
static void
mfi_decode_log(struct mfi_softc *sc, struct mfi_log_detail *detail)
{
@@ -943,9 +945,6 @@ mfi_decode_log(struct mfi_softc *sc, struct mfi_log_detail *detail)
break;
}
}
-#else
-#include <dev/mfi/mfilog.h>
-#include <dev/mfi/mfi_log.c>
#endif
static void
@@ -953,12 +952,14 @@ mfi_decode_evt(struct mfi_softc *sc, struct mfi_evt_detail *detail)
{
switch (detail->arg_type) {
case MR_EVT_ARGS_NONE:
- /* Try to get info from log entry */
- mfi_get_entry(sc, detail->seq);
+ device_printf(sc->mfi_dev, "%d - %s\n",
+ detail->seq,
+ detail->description
+ );
break;
case MR_EVT_ARGS_CDB_SENSE:
device_printf(sc->mfi_dev, "%d - PD %02d(e%d/s%d) CDB %*D"
- "Sense %*D\n: %s",
+ "Sense %*D\n: %s\n",
detail->seq,
detail->args.cdb_sense.pd.device_id,
detail->args.cdb_sense.pd.enclosure_index,
@@ -1284,6 +1285,7 @@ mfi_aen_complete(struct mfi_command *cm)
}
}
+#ifdef NOTYET
static int
mfi_get_entry(struct mfi_softc *sc, int seq)
{
@@ -1349,6 +1351,7 @@ mfi_get_entry(struct mfi_softc *sc, int seq)
mtx_unlock(&sc->mfi_io_lock);
return (0);
}
+#endif
static int
mfi_ldprobe_capacity(struct mfi_softc *sc, int id)
OpenPOWER on IntegriCloud