Go to the documentation of this file.
24 #define MEGARAID_VERSION "2.20.5.1"
25 #define MEGARAID_EXT_VERSION "(Release Date: Thu Nov 16 15:32:35 EST 2006)"
31 #define PCI_DEVICE_ID_PERC4_DI_DISCOVERY 0x000E
32 #define PCI_SUBSYS_ID_PERC4_DI_DISCOVERY 0x0123
34 #define PCI_DEVICE_ID_PERC4_SC 0x1960
35 #define PCI_SUBSYS_ID_PERC4_SC 0x0520
37 #define PCI_DEVICE_ID_PERC4_DC 0x1960
38 #define PCI_SUBSYS_ID_PERC4_DC 0x0518
40 #define PCI_DEVICE_ID_VERDE 0x0407
42 #define PCI_DEVICE_ID_PERC4_DI_EVERGLADES 0x000F
43 #define PCI_SUBSYS_ID_PERC4_DI_EVERGLADES 0x014A
45 #define PCI_DEVICE_ID_PERC4E_SI_BIGBEND 0x0013
46 #define PCI_SUBSYS_ID_PERC4E_SI_BIGBEND 0x016c
48 #define PCI_DEVICE_ID_PERC4E_DI_KOBUK 0x0013
49 #define PCI_SUBSYS_ID_PERC4E_DI_KOBUK 0x016d
51 #define PCI_DEVICE_ID_PERC4E_DI_CORVETTE 0x0013
52 #define PCI_SUBSYS_ID_PERC4E_DI_CORVETTE 0x016e
54 #define PCI_DEVICE_ID_PERC4E_DI_EXPEDITION 0x0013
55 #define PCI_SUBSYS_ID_PERC4E_DI_EXPEDITION 0x016f
57 #define PCI_DEVICE_ID_PERC4E_DI_GUADALUPE 0x0013
58 #define PCI_SUBSYS_ID_PERC4E_DI_GUADALUPE 0x0170
60 #define PCI_DEVICE_ID_DOBSON 0x0408
62 #define PCI_DEVICE_ID_MEGARAID_SCSI_320_0 0x1960
63 #define PCI_SUBSYS_ID_MEGARAID_SCSI_320_0 0xA520
65 #define PCI_DEVICE_ID_MEGARAID_SCSI_320_1 0x1960
66 #define PCI_SUBSYS_ID_MEGARAID_SCSI_320_1 0x0520
68 #define PCI_DEVICE_ID_MEGARAID_SCSI_320_2 0x1960
69 #define PCI_SUBSYS_ID_MEGARAID_SCSI_320_2 0x0518
71 #define PCI_DEVICE_ID_MEGARAID_I4_133_RAID 0x1960
72 #define PCI_SUBSYS_ID_MEGARAID_I4_133_RAID 0x0522
74 #define PCI_DEVICE_ID_MEGARAID_SATA_150_4 0x1960
75 #define PCI_SUBSYS_ID_MEGARAID_SATA_150_4 0x4523
77 #define PCI_DEVICE_ID_MEGARAID_SATA_150_6 0x1960
78 #define PCI_SUBSYS_ID_MEGARAID_SATA_150_6 0x0523
80 #define PCI_DEVICE_ID_LINDSAY 0x0409
82 #define PCI_DEVICE_ID_INTEL_RAID_SRCS16 0x1960
83 #define PCI_SUBSYS_ID_INTEL_RAID_SRCS16 0x0523
85 #define PCI_DEVICE_ID_INTEL_RAID_SRCU41L_LAKE_SHETEK 0x1960
86 #define PCI_SUBSYS_ID_INTEL_RAID_SRCU41L_LAKE_SHETEK 0x0520
88 #define PCI_SUBSYS_ID_PERC3_QC 0x0471
89 #define PCI_SUBSYS_ID_PERC3_DC 0x0493
90 #define PCI_SUBSYS_ID_PERC3_SC 0x0475
91 #define PCI_SUBSYS_ID_CERC_ATA100_4CH 0x0511
94 #define MBOX_MAX_SCSI_CMDS 128 // number of cmds reserved for kernel
95 #define MBOX_MAX_USER_CMDS 32 // number of cmds for applications
96 #define MBOX_DEF_CMD_PER_LUN 64 // default commands per lun
97 #define MBOX_DEFAULT_SG_SIZE 26 // default sg size supported by all fw
98 #define MBOX_MAX_SG_SIZE 32 // maximum scatter-gather list size
99 #define MBOX_MAX_SECTORS 128 // maximum sectors per IO
100 #define MBOX_TIMEOUT 30 // timeout value for internal cmds
101 #define MBOX_BUSY_WAIT 10 // max usec to wait for busy mailbox
102 #define MBOX_RESET_WAIT 180 // wait these many seconds in reset
103 #define MBOX_RESET_EXT_WAIT 120 // extended wait reset
104 #define MBOX_SYNC_WAIT_CNT 0xFFFF // wait loop index for synchronous mode
106 #define MBOX_SYNC_DELAY_200 200 // 200 micro-seconds
112 #define MBOX_IBUF_SIZE 4096
187 #define MAX_LD_EXTENDED64 64
223 #define ADAP2RAIDDEV(adp) ((mraid_device_t *)((adp)->raid_device))
225 #define MAILBOX_LOCK(rdev) (&(rdev)->mailbox_lock)
228 #define IS_RAID_CH(rdev, ch) (((rdev)->channel_class >> (ch)) & 0x01)
231 #define RDINDOOR(rdev) readl((rdev)->baseaddr + 0x20)
232 #define RDOUTDOOR(rdev) readl((rdev)->baseaddr + 0x2C)
233 #define WRINDOOR(rdev, value) writel(value, (rdev)->baseaddr + 0x20)
234 #define WROUTDOOR(rdev, value) writel(value, (rdev)->baseaddr + 0x2C)
236 #endif // _MEGARAID_H_