summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/isp/isp.c26
-rw-r--r--sys/dev/isp/ispvar.h20
2 files changed, 25 insertions, 21 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index bedd3c2..b937750 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -101,6 +101,7 @@ static void isp_fw_state __P((struct ispsoftc *));
static void isp_dumpregs __P((struct ispsoftc *, const char *));
static void isp_dumpxflist __P((struct ispsoftc *));
static void isp_prtstst __P((ispstatusreq_t *));
+static char *isp2100_fw_statename __P((u_int8_t));
static void isp_mboxcmd __P((struct ispsoftc *, mbreg_t *));
static void isp_update __P((struct ispsoftc *));
@@ -802,8 +803,9 @@ isp_fibre_init(isp)
for (count = 0; count < 12000; count++) {
isp_fw_state(isp);
if (lwfs != fcp->isp_fwstate) {
- PRINTF("%s: Firmware State %s -> %s\n", isp->isp_name,
- fw_statename(lwfs), fw_statename(fcp->isp_fwstate));
+ PRINTF("%s: Firmware State %s -> %s\n",
+ isp->isp_name, isp2100_fw_statename(lwfs),
+ isp2100_fw_statename(fcp->isp_fwstate));
lwfs = fcp->isp_fwstate;
}
if (fcp->isp_fwstate == FW_READY) {
@@ -2700,6 +2702,9 @@ isp_watch(arg)
RESTART_WATCHDOG(isp_watch, isp);
}
+/*
+ * Miscellaneous debug statements.
+ */
static void
isp_prtstst(sp)
ispstatusreq_t *sp;
@@ -2740,6 +2745,23 @@ isp_prtstst(sp)
PRINTF("\n");
}
+static char *
+isp2100_fw_statename(state)
+ u_int8_t state;
+{
+ switch(state) {
+ case FW_CONFIG_WAIT: return "Config Wait";
+ case FW_WAIT_AL_PA: return "Waiting for AL/PA";
+ case FW_WAIT_LOGIN: return "Wait Login";
+ case FW_READY: return "Ready";
+ case FW_LOSS_OF_SYNC: return "Loss Of Sync";
+ case FW_ERROR: return "Error";
+ case FW_REINIT: return "Re-Init";
+ case FW_NON_PART: return "Nonparticipating";
+ default: return "eh?";
+ }
+}
+
/*
* NVRAM Routines
*/
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h
index ae8c9d4..d1aeade 100644
--- a/sys/dev/isp/ispvar.h
+++ b/sys/dev/isp/ispvar.h
@@ -1,4 +1,4 @@
-/* $Id: ispvar.h,v 1.17 1998/09/14 23:22:51 mjacob Exp $ */
+/* $FreeBSD$ */
/*
* Soft Definitions for for Qlogic ISP SCSI adapters.
*
@@ -175,24 +175,6 @@ typedef struct {
#define FW_REINIT 0x0006
#define FW_NON_PART 0x0007
-static __inline char *fw_statename __P((u_int8_t x));
-static __inline char *
-fw_statename(x)
- u_int8_t x;
-{
- switch(x) {
- case FW_CONFIG_WAIT: return "Config Wait";
- case FW_WAIT_AL_PA: return "Waiting for AL/PA";
- case FW_WAIT_LOGIN: return "Wait Login";
- case FW_READY: return "Ready";
- case FW_LOSS_OF_SYNC: return "Loss Of Sync";
- case FW_ERROR: return "Error";
- case FW_REINIT: return "Re-Init";
- case FW_NON_PART: return "Nonparticipating";
- default: return "eh?";
- }
-}
-
/*
* Soft Structure per host adapter
*/
OpenPOWER on IntegriCloud