diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 414580800dc0..7cb8b5a5e659 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -182,6 +182,13 @@ | |||
182 | #define WRT_REG_DWORD(addr, data) writel(data,addr) | 182 | #define WRT_REG_DWORD(addr, data) writel(data,addr) |
183 | 183 | ||
184 | /* | 184 | /* |
185 | * The ISP2312 v2 chip cannot access the FLASH/GPIO registers via MMIO in an | ||
186 | * 133Mhz slot. | ||
187 | */ | ||
188 | #define RD_REG_WORD_PIO(addr) (inw((unsigned long)addr)) | ||
189 | #define WRT_REG_WORD_PIO(addr, data) (outw(data,(unsigned long)addr)) | ||
190 | |||
191 | /* | ||
185 | * Fibre Channel device definitions. | 192 | * Fibre Channel device definitions. |
186 | */ | 193 | */ |
187 | #define WWN_SIZE 8 /* Size of WWPN, WWN & WWNN */ | 194 | #define WWN_SIZE 8 /* Size of WWPN, WWN & WWNN */ |
@@ -433,6 +440,9 @@ struct device_reg_2xxx { | |||
433 | #define GPIO_LED_GREEN_ON_AMBER_OFF 0x0040 | 440 | #define GPIO_LED_GREEN_ON_AMBER_OFF 0x0040 |
434 | #define GPIO_LED_GREEN_OFF_AMBER_ON 0x0080 | 441 | #define GPIO_LED_GREEN_OFF_AMBER_ON 0x0080 |
435 | #define GPIO_LED_GREEN_ON_AMBER_ON 0x00C0 | 442 | #define GPIO_LED_GREEN_ON_AMBER_ON 0x00C0 |
443 | #define GPIO_LED_ALL_OFF 0x0000 | ||
444 | #define GPIO_LED_RED_ON_OTHER_OFF 0x0001 /* isp2322 */ | ||
445 | #define GPIO_LED_RGA_ON 0x00C1 /* isp2322: red green amber */ | ||
436 | 446 | ||
437 | union { | 447 | union { |
438 | struct { | 448 | struct { |
@@ -2200,6 +2210,10 @@ struct isp_operations { | |||
2200 | 2210 | ||
2201 | void (*fw_dump) (struct scsi_qla_host *, int); | 2211 | void (*fw_dump) (struct scsi_qla_host *, int); |
2202 | void (*ascii_fw_dump) (struct scsi_qla_host *); | 2212 | void (*ascii_fw_dump) (struct scsi_qla_host *); |
2213 | |||
2214 | int (*beacon_on) (struct scsi_qla_host *); | ||
2215 | int (*beacon_off) (struct scsi_qla_host *); | ||
2216 | void (*beacon_blink) (struct scsi_qla_host *); | ||
2203 | }; | 2217 | }; |
2204 | 2218 | ||
2205 | /* | 2219 | /* |
@@ -2493,7 +2507,12 @@ typedef struct scsi_qla_host { | |||
2493 | 2507 | ||
2494 | /* Needed for BEACON */ | 2508 | /* Needed for BEACON */ |
2495 | uint16_t beacon_blink_led; | 2509 | uint16_t beacon_blink_led; |
2496 | uint16_t beacon_green_on; | 2510 | uint8_t beacon_color_state; |
2511 | #define QLA_LED_GRN_ON 0x01 | ||
2512 | #define QLA_LED_YLW_ON 0x02 | ||
2513 | #define QLA_LED_ABR_ON 0x04 | ||
2514 | #define QLA_LED_ALL_ON 0x07 /* yellow, green, amber. */ | ||
2515 | /* ISP2322: red, green, amber. */ | ||
2497 | 2516 | ||
2498 | uint16_t zio_mode; | 2517 | uint16_t zio_mode; |
2499 | uint16_t zio_timer; | 2518 | uint16_t zio_timer; |