summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2002-08-17 17:19:09 +0000
committermjacob <mjacob@FreeBSD.org>2002-08-17 17:19:09 +0000
commita8dd8911e66b4bd0f744466e035520be95580e5b (patch)
treea44ff089ef3c1edfdead5a149661b77382986dfc /sys/dev/isp
parent7b9dd904dea1fc85fa04f6bcd9d99b4faab84ff6 (diff)
downloadFreeBSD-src-a8dd8911e66b4bd0f744466e035520be95580e5b.zip
FreeBSD-src-a8dd8911e66b4bd0f744466e035520be95580e5b.tar.gz
Add ISPASYNC_FW_DUMPED async event.
add ISP_FW_NEWER_THAN macro- makes the code easier to read.
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/ispvar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h
index 043768d..5a85a27 100644
--- a/sys/dev/isp/ispvar.h
+++ b/sys/dev/isp/ispvar.h
@@ -507,6 +507,8 @@ typedef struct ispsoftc {
#define ISP_FW_MAJORX(xp) (xp[0])
#define ISP_FW_MINORX(xp) (xp[1])
#define ISP_FW_MICROX(xp) (xp[2])
+#define ISP_FW_NEWER_THAN(i, major, minor, micro) \
+ (ISP_FW_REVX((i)->isp_fwrev) > ISP_FW_REV(major, minor, micro))
/*
* Bus (implementation) types
@@ -728,6 +730,7 @@ typedef enum {
ISPASYNC_CONF_CHANGE, /* Platform Configuration Change */
ISPASYNC_UNHANDLED_RESPONSE, /* Unhandled Response Entry */
ISPASYNC_FW_CRASH, /* Firmware has crashed */
+ ISPASYNC_FW_DUMPED, /* Firmware crashdump taken */
ISPASYNC_FW_RESTARTED /* Firmware has been restarted */
} ispasync_t;
int isp_async(struct ispsoftc *, ispasync_t, void *);
OpenPOWER on IntegriCloud