summaryrefslogtreecommitdiff
path: root/sys/dev/isp/ispmbox.h
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-10-29 16:48:12 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-10-29 16:48:12 +0000
commit2e6beaf19e1762b5ce403e1c4ba499617c53fa8a (patch)
treea8a56b5eb588be0298db24fcea1720aa53229d89 /sys/dev/isp/ispmbox.h
parent2219c44a1fcc2198b631e0b83b6c13557fa33d3f (diff)
Notes
Diffstat (limited to 'sys/dev/isp/ispmbox.h')
-rw-r--r--sys/dev/isp/ispmbox.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/isp/ispmbox.h b/sys/dev/isp/ispmbox.h
index 6c5f958850c60..25b57d5b7ae60 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