mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Add mailbox bitmask macros (numbers of available mailbox registers
based upon Qlogic chip type). Define maximum mailboxes. Add INT_PENDING_MASK macro. Change mailbox offset macro name.
This commit is contained in:
parent
986973a448
commit
40e88de6c3
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue