diff options
author | mav <mav@FreeBSD.org> | 2015-11-30 21:30:18 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-11-30 21:30:18 +0000 |
commit | 3ba9f5d050ff37c66f41240b50f21e498c5de1eb (patch) | |
tree | c8baec3fa43783d5c852aebd8048300d929f546f /sys/dev/isp/ispmbox.h | |
parent | 9758d660c9c14730c639f6fb91bf4dc6875ef426 (diff) | |
download | FreeBSD-src-3ba9f5d050ff37c66f41240b50f21e498c5de1eb.zip FreeBSD-src-3ba9f5d050ff37c66f41240b50f21e498c5de1eb.tar.gz |
MFC r290147: Fix and improve error masking and reporting.
Diffstat (limited to 'sys/dev/isp/ispmbox.h')
-rw-r--r-- | sys/dev/isp/ispmbox.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/isp/ispmbox.h b/sys/dev/isp/ispmbox.h index 6c5f958..25b57d5 100644 --- a/sys/dev/isp/ispmbox.h +++ b/sys/dev/isp/ispmbox.h @@ -191,13 +191,17 @@ #define MBOX_LOOP_ID_USED 0x4008 #define MBOX_ALL_IDS_USED 0x4009 #define MBOX_NOT_LOGGED_IN 0x400A +#define MBOX_LINK_DOWN_ERROR 0x400B +#define MBOX_LOOPBACK_ERROR 0x400C +#define MBOX_CHECKSUM_ERROR 0x4010 +#define MBOX_INVALID_PRODUCT_KEY 0x4020 /* pseudo mailbox completion codes */ #define MBOX_REGS_BUSY 0x6000 /* registers in use */ #define MBOX_TIMEOUT 0x6001 /* command timed out */ -#define MBLOGALL 0x000f -#define MBLOGNONE 0x0000 -#define MBLOGMASK(x) ((x) & 0xf) +#define MBLOGALL 0xffffffff +#define MBLOGNONE 0x00000000 +#define MBLOGMASK(x) (1 << (((x) - 1) & 0x1f)) /* * Asynchronous event status codes |