diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2000-06-27 19:15:43 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2000-06-27 19:15:43 +0000 |
| commit | 40e88de6c39ff86fd116e4de1be60cf0aa48dc74 (patch) | |
| tree | 11f3d59b1d132d8b2d6d0cfeca2c81c0162adf43 /sys/dev/isp/ispreg.h | |
| parent | 986973a448b6264157604c011ee3ff85c5421da3 (diff) | |
Notes
Diffstat (limited to 'sys/dev/isp/ispreg.h')
| -rw-r--r-- | sys/dev/isp/ispreg.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/isp/ispreg.h b/sys/dev/isp/ispreg.h index 070ee84e8eec..44a8e1d9a750 100644 --- a/sys/dev/isp/ispreg.h +++ b/sys/dev/isp/ispreg.h @@ -225,6 +225,9 @@ #define INT_PENDING(isp, isr) (IS_FC(isp)? \ ((isr & BIU2100_ISR_RISC_INT) != 0) : ((isr & BIU_ISR_RISC_INT) != 0)) +#define INT_PENDING_MASK(isp) \ + (IS_FC(isp)? BIU2100_ISR_RISC_INT: BIU_ISR_RISC_INT) + /* BUS SEMAPHORE REGISTER */ #define BIU_SEMA_STATUS 0x0002 /* Semaphore Status Bit */ #define BIU_SEMA_LOCK 0x0001 /* Semaphore Lock Bit */ @@ -337,10 +340,15 @@ #define OUTMAILBOX6 (MBOX_BLOCK+0xC) #define OUTMAILBOX7 (MBOX_BLOCK+0xE) -#define OMBOX_OFFN(n) (MBOX_BLOCK + (n * 2)) +#define MBOX_OFF(n) (MBOX_BLOCK + ((n) << 1)) #define NMBOX(isp) \ (((((isp)->isp_type & ISP_HA_SCSI) >= ISP_HA_SCSI_1040A) || \ ((isp)->isp_type & ISP_HA_FC))? 8 : 6) +#define NMBOX_BMASK(isp) \ + (((((isp)->isp_type & ISP_HA_SCSI) >= ISP_HA_SCSI_1040A) || \ + ((isp)->isp_type & ISP_HA_FC))? 0xff : 0x3f) + +#define MAX_MAILBOX 8 /* * SXP Block Register Offsets |
