arcmsr.h (0bfd163f522701b486e066fa2e56624c02f5081a) | arcmsr.h (224a78aeed00a7ab617e3cbce92f030044a8b7cb) |
---|---|
1/* 2******************************************************************************** 3** OS : FreeBSD 4** FILE NAME : arcmsr.h 5** BY : Erich Chen, Ching Huang 6** Description: SCSI RAID Device Driver for 7** ARECA (ARC11XX/ARC12XX/ARC13XX/ARC16XX/ARC188x) 8** SATA/SAS RAID HOST Adapter --- 104 unchanged lines hidden (view full) --- 113#define PCI_DEVICE_ID_ARECA_1380 0x1380 /* Device ID */ 114#define PCI_DEVICE_ID_ARECA_1381 0x1381 /* Device ID */ 115#define PCI_DEVICE_ID_ARECA_1680 0x1680 /* Device ID */ 116#define PCI_DEVICE_ID_ARECA_1681 0x1681 /* Device ID */ 117#define PCI_DEVICE_ID_ARECA_1880 0x1880 /* Device ID */ 118 119#define ARECA_SUB_DEV_ID_1880 0x1880 /* Subsystem Device ID */ 120#define ARECA_SUB_DEV_ID_1882 0x1882 /* Subsystem Device ID */ | 1/* 2******************************************************************************** 3** OS : FreeBSD 4** FILE NAME : arcmsr.h 5** BY : Erich Chen, Ching Huang 6** Description: SCSI RAID Device Driver for 7** ARECA (ARC11XX/ARC12XX/ARC13XX/ARC16XX/ARC188x) 8** SATA/SAS RAID HOST Adapter --- 104 unchanged lines hidden (view full) --- 113#define PCI_DEVICE_ID_ARECA_1380 0x1380 /* Device ID */ 114#define PCI_DEVICE_ID_ARECA_1381 0x1381 /* Device ID */ 115#define PCI_DEVICE_ID_ARECA_1680 0x1680 /* Device ID */ 116#define PCI_DEVICE_ID_ARECA_1681 0x1681 /* Device ID */ 117#define PCI_DEVICE_ID_ARECA_1880 0x1880 /* Device ID */ 118 119#define ARECA_SUB_DEV_ID_1880 0x1880 /* Subsystem Device ID */ 120#define ARECA_SUB_DEV_ID_1882 0x1882 /* Subsystem Device ID */ |
121#define ARECA_SUB_DEV_ID_1883 0x1883 /* Subsystem Device ID */ |
|
121#define ARECA_SUB_DEV_ID_1212 0x1212 /* Subsystem Device ID */ 122#define ARECA_SUB_DEV_ID_1213 0x1213 /* Subsystem Device ID */ 123#define ARECA_SUB_DEV_ID_1222 0x1222 /* Subsystem Device ID */ 124#define ARECA_SUB_DEV_ID_1223 0x1223 /* Subsystem Device ID */ 125 126#define PCIDevVenIDARC1110 0x111017D3 /* Vendor Device ID */ 127#define PCIDevVenIDARC1120 0x112017D3 /* Vendor Device ID */ 128#define PCIDevVenIDARC1130 0x113017D3 /* Vendor Device ID */ --- 1002 unchanged lines hidden (view full) --- 1131 u_int8_t *uncacheptr; 1132 unsigned long vir2phy_offset; 1133 union { 1134 unsigned long phyaddr; 1135 struct { 1136 u_int32_t phyadd_low; 1137 u_int32_t phyadd_high; 1138 }B; | 122#define ARECA_SUB_DEV_ID_1212 0x1212 /* Subsystem Device ID */ 123#define ARECA_SUB_DEV_ID_1213 0x1213 /* Subsystem Device ID */ 124#define ARECA_SUB_DEV_ID_1222 0x1222 /* Subsystem Device ID */ 125#define ARECA_SUB_DEV_ID_1223 0x1223 /* Subsystem Device ID */ 126 127#define PCIDevVenIDARC1110 0x111017D3 /* Vendor Device ID */ 128#define PCIDevVenIDARC1120 0x112017D3 /* Vendor Device ID */ 129#define PCIDevVenIDARC1130 0x113017D3 /* Vendor Device ID */ --- 1002 unchanged lines hidden (view full) --- 1132 u_int8_t *uncacheptr; 1133 unsigned long vir2phy_offset; 1134 union { 1135 unsigned long phyaddr; 1136 struct { 1137 u_int32_t phyadd_low; 1138 u_int32_t phyadd_high; 1139 }B; |
1139 } srb_phyaddr; | 1140 }srb_phyaddr; |
1140// unsigned long srb_phyaddr; 1141 /* Offset is used in making arc cdb physical to virtual calculations */ 1142 u_int32_t outbound_int_enable; 1143 1144 struct MessageUnit_UNION *pmu; /* message unit ATU inbound base address0 */ 1145 | 1141// unsigned long srb_phyaddr; 1142 /* Offset is used in making arc cdb physical to virtual calculations */ 1143 u_int32_t outbound_int_enable; 1144 1145 struct MessageUnit_UNION *pmu; /* message unit ATU inbound base address0 */ 1146 |
1146 u_int8_t adapter_index; /* */ | 1147 u_int8_t adapter_index; |
1147 u_int8_t irq; | 1148 u_int8_t irq; |
1148 u_int16_t acb_flags; /* */ | 1149 u_int16_t acb_flags; |
1149 1150 struct CommandControlBlock *psrb_pool[ARCMSR_MAX_FREESRB_NUM]; /* serial srb pointer array */ 1151 struct CommandControlBlock *srbworkingQ[ARCMSR_MAX_FREESRB_NUM]; /* working srb pointer array */ 1152 int32_t workingsrb_doneindex; /* done srb array index */ 1153 int32_t workingsrb_startindex; /* start srb array index */ 1154 int32_t srboutstandingcount; 1155 1156 u_int8_t rqbuffer[ARCMSR_MAX_QBUFFER]; /* data collection buffer for read from 80331 */ --- 21 unchanged lines hidden (view full) --- 1178 char firm_version[20]; /*17,68-83*/ 1179 char device_map[20]; /*21,84-99 */ 1180 struct callout devmap_callout; 1181 u_int32_t pktRequestCount; 1182 u_int32_t pktReturnCount; 1183 u_int32_t vendor_device_id; 1184 u_int32_t adapter_bus_speed; 1185 u_int32_t maxOutstanding; | 1150 1151 struct CommandControlBlock *psrb_pool[ARCMSR_MAX_FREESRB_NUM]; /* serial srb pointer array */ 1152 struct CommandControlBlock *srbworkingQ[ARCMSR_MAX_FREESRB_NUM]; /* working srb pointer array */ 1153 int32_t workingsrb_doneindex; /* done srb array index */ 1154 int32_t workingsrb_startindex; /* start srb array index */ 1155 int32_t srboutstandingcount; 1156 1157 u_int8_t rqbuffer[ARCMSR_MAX_QBUFFER]; /* data collection buffer for read from 80331 */ --- 21 unchanged lines hidden (view full) --- 1179 char firm_version[20]; /*17,68-83*/ 1180 char device_map[20]; /*21,84-99 */ 1181 struct callout devmap_callout; 1182 u_int32_t pktRequestCount; 1183 u_int32_t pktReturnCount; 1184 u_int32_t vendor_device_id; 1185 u_int32_t adapter_bus_speed; 1186 u_int32_t maxOutstanding; |
1187 u_int16_t sub_device_id; |
|
1186};/* HW_DEVICE_EXTENSION */ 1187/* acb_flags */ 1188#define ACB_F_SCSISTOPADAPTER 0x0001 1189#define ACB_F_MSG_STOP_BGRB 0x0002 /* stop RAID background rebuild */ 1190#define ACB_F_MSG_START_BGRB 0x0004 /* stop RAID background rebuild */ 1191#define ACB_F_IOPDATA_OVERFLOW 0x0008 /* iop ioctl data rqbuffer overflow */ 1192#define ACB_F_MESSAGE_WQBUFFER_CLEARED 0x0010 /* ioctl clear wqbuffer */ 1193#define ACB_F_MESSAGE_RQBUFFER_CLEARED 0x0020 /* ioctl clear rqbuffer */ --- 4541 unchanged lines hidden --- | 1188};/* HW_DEVICE_EXTENSION */ 1189/* acb_flags */ 1190#define ACB_F_SCSISTOPADAPTER 0x0001 1191#define ACB_F_MSG_STOP_BGRB 0x0002 /* stop RAID background rebuild */ 1192#define ACB_F_MSG_START_BGRB 0x0004 /* stop RAID background rebuild */ 1193#define ACB_F_IOPDATA_OVERFLOW 0x0008 /* iop ioctl data rqbuffer overflow */ 1194#define ACB_F_MESSAGE_WQBUFFER_CLEARED 0x0010 /* ioctl clear wqbuffer */ 1195#define ACB_F_MESSAGE_RQBUFFER_CLEARED 0x0020 /* ioctl clear rqbuffer */ --- 4541 unchanged lines hidden --- |