From e347e2c9b44630fd5dd2ff95fa0feb944ff72857 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Sat, 17 Aug 2002 17:19:09 +0000 Subject: Add ISPASYNC_FW_DUMPED async event. add ISP_FW_NEWER_THAN macro- makes the code easier to read. --- sys/dev/isp/ispvar.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/isp') diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h index 043768d9dffe..5a85a27436fe 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 *); -- cgit v1.3