Go to the documentation of this file.
26 #ifndef __BFAD_DRV_H__
27 #define __BFAD_DRV_H__
29 #include <linux/types.h>
30 #include <linux/pci.h>
39 #include <linux/bitops.h>
41 #include <scsi/scsi.h>
56 #define BFAD_DRIVER_NAME "bfa"
57 #ifdef BFA_DRIVER_VERSION
58 #define BFAD_DRIVER_VERSION BFA_DRIVER_VERSION
60 #define BFAD_DRIVER_VERSION "3.1.2.1"
63 #define BFAD_PROTO_NAME FCPI_NAME
64 #define BFAD_IRQ_FLAGS IRQF_SHARED
66 #ifndef FC_PORTSPEED_8GBIT
67 #define FC_PORTSPEED_8GBIT 0x10
73 #define BFAD_MSIX_ON 0x00000001
74 #define BFAD_HAL_INIT_DONE 0x00000002
75 #define BFAD_DRV_INIT_DONE 0x00000004
76 #define BFAD_CFG_PPORT_DONE 0x00000008
77 #define BFAD_HAL_START_DONE 0x00000010
78 #define BFAD_PORT_ONLINE 0x00000020
79 #define BFAD_RPORT_ONLINE 0x00000040
80 #define BFAD_FCS_INIT_DONE 0x00000080
81 #define BFAD_HAL_INIT_FAIL 0x00000100
82 #define BFAD_FC4_PROBE_DONE 0x00000200
83 #define BFAD_PORT_DELETE 0x00000001
84 #define BFAD_INTX_ON 0x00000400
85 #define BFAD_EEH_BUSY 0x00000800
86 #define BFAD_EEH_PCI_CHANNEL_IO_PERM_FAILURE 0x00001000
90 #define SCSI_SCAN_DELAY HZ
91 #define BFAD_STOP_TIMEOUT 30
92 #define BFAD_SUSPEND_TIMEOUT BFAD_STOP_TIMEOUT
97 #define BFAD_LUN_QUEUE_DEPTH 32
98 #define BFAD_IO_MAX_SGE SG_ALL
99 #define BFAD_MIN_SECTORS 128
100 #define BFAD_MAX_SECTORS 0xFFFF
102 #define bfad_isr_t irq_handler_t
104 #define MAX_MSIX_ENTRY 22
290 #define BFA_LOG(level, bfad, mask, fmt, arg...) \
292 if (((mask) == 4) || (level[1] <= '4')) \
293 dev_printk(level, &((bfad)->pcidev)->dev, fmt, ##arg); \