diff options
author | mav <mav@FreeBSD.org> | 2015-10-29 16:48:12 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-10-29 16:48:12 +0000 |
commit | c844b56ea53b3da46aa84392d2ae12e79c10155d (patch) | |
tree | a8a56b5eb588be0298db24fcea1720aa53229d89 /sys/dev/isp/ispmbox.h | |
parent | 9ee931e10a1b445a73b4e310d85591e529f3862b (diff) | |
download | FreeBSD-src-c844b56ea53b3da46aa84392d2ae12e79c10155d.zip FreeBSD-src-c844b56ea53b3da46aa84392d2ae12e79c10155d.tar.gz |
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 |