aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfi.h
diff options
context:
space:
mode:
authorKrishna Gudipati <kgudipat@brocade.com>2011-06-13 18:52:12 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-06-29 16:46:19 -0400
commit775c7742adfd7726f05914198bf33eaa3b9f64bb (patch)
tree87c9373091ca11b5808dc28a2acb7d4a4efe33a2 /drivers/scsi/bfa/bfi.h
parentdd5aaf4536c5111784a18d935b9b5adeac9f914c (diff)
[SCSI] bfa: IOC and PLL init changes for Brocade-1860 Fabric Adapter.
- Introduced IOC poll mechanism which replaces current interrupt based FW READY method. - The timer based poll routine in IOC will query the ioc_fwstate register to see if there is a state change in FW, and sends the READY event. - Bug fixes in the new asic PLL initialization. - Added logic to handle CPE/RME queue interrupts before iocfc config done. 1. Use the queue_process flag to see if iocfc configuration is done in INTX mode. 2. Split the MSIX handler installation in two - one for IOC intr handler and the other for cpe/rme queue handler - and delay assigning queue handlers until iocfc config is done in MSIX mode. Signed-off-by: Krishna Gudipati <kgudipat@brocade.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa/bfi.h')
-rw-r--r--drivers/scsi/bfa/bfi.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/scsi/bfa/bfi.h b/drivers/scsi/bfa/bfi.h
index 7096c5fd2ba0..e6383f23e065 100644
--- a/drivers/scsi/bfa/bfi.h
+++ b/drivers/scsi/bfa/bfi.h
@@ -221,8 +221,7 @@ enum bfi_ioc_i2h_msgs {
221 BFI_IOC_I2H_ENABLE_REPLY = BFA_I2HM(1), 221 BFI_IOC_I2H_ENABLE_REPLY = BFA_I2HM(1),
222 BFI_IOC_I2H_DISABLE_REPLY = BFA_I2HM(2), 222 BFI_IOC_I2H_DISABLE_REPLY = BFA_I2HM(2),
223 BFI_IOC_I2H_GETATTR_REPLY = BFA_I2HM(3), 223 BFI_IOC_I2H_GETATTR_REPLY = BFA_I2HM(3),
224 BFI_IOC_I2H_READY_EVENT = BFA_I2HM(4), 224 BFI_IOC_I2H_HBEAT = BFA_I2HM(4),
225 BFI_IOC_I2H_HBEAT = BFA_I2HM(5),
226}; 225};
227 226
228/* 227/*
@@ -318,15 +317,6 @@ enum bfi_port_mode {
318 BFI_PORT_MODE_ETH = 2, 317 BFI_PORT_MODE_ETH = 2,
319}; 318};
320 319
321/*
322 * BFI_IOC_I2H_READY_EVENT message
323 */
324struct bfi_ioc_rdy_event_s {
325 struct bfi_mhdr_s mh; /* common msg header */
326 u8 init_status; /* init event status */
327 u8 rsvd[3];
328};
329
330struct bfi_ioc_hbeat_s { 320struct bfi_ioc_hbeat_s {
331 struct bfi_mhdr_s mh; /* common msg header */ 321 struct bfi_mhdr_s mh; /* common msg header */
332 u32 hb_count; /* current heart beat count */ 322 u32 hb_count; /* current heart beat count */
@@ -418,7 +408,7 @@ union bfi_ioc_h2i_msg_u {
418 */ 408 */
419union bfi_ioc_i2h_msg_u { 409union bfi_ioc_i2h_msg_u {
420 struct bfi_mhdr_s mh; 410 struct bfi_mhdr_s mh;
421 struct bfi_ioc_rdy_event_s rdy_event; 411 struct bfi_ioc_ctrl_reply_s rdy_event;
422 u32 mboxmsg[BFI_IOC_MSGSZ]; 412 u32 mboxmsg[BFI_IOC_MSGSZ];
423}; 413};
424 414