aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
diff options
context:
space:
mode:
authorandrew.vasquez@qlogic.com <andrew.vasquez@qlogic.com>2006-01-31 19:05:17 -0500
committer <jejb@mulgrave.il.steeleye.com>2006-02-04 17:12:41 -0500
commit854165f4245c4a3b4a8cc363ba2050033151e196 (patch)
tree0f2a19b829eaca15d3d406cfae6b77660858c7ff /drivers/scsi/qla2xxx/qla_def.h
parent1b3f63659bd353ae460c35f5793a9fd46cc95014 (diff)
[SCSI] qla2xxx: Add support to retrieve/update HBA option-rom.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index 7cb8b5a5e659..b31a03bbd14f 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -2214,6 +2214,11 @@ struct isp_operations {
2214 int (*beacon_on) (struct scsi_qla_host *); 2214 int (*beacon_on) (struct scsi_qla_host *);
2215 int (*beacon_off) (struct scsi_qla_host *); 2215 int (*beacon_off) (struct scsi_qla_host *);
2216 void (*beacon_blink) (struct scsi_qla_host *); 2216 void (*beacon_blink) (struct scsi_qla_host *);
2217
2218 uint8_t * (*read_optrom) (struct scsi_qla_host *, uint8_t *,
2219 uint32_t, uint32_t);
2220 int (*write_optrom) (struct scsi_qla_host *, uint8_t *, uint32_t,
2221 uint32_t);
2217}; 2222};
2218 2223
2219/* 2224/*
@@ -2505,6 +2510,14 @@ typedef struct scsi_qla_host {
2505 uint8_t *port_name; 2510 uint8_t *port_name;
2506 uint32_t isp_abort_cnt; 2511 uint32_t isp_abort_cnt;
2507 2512
2513 /* Option ROM information. */
2514 char *optrom_buffer;
2515 uint32_t optrom_size;
2516 int optrom_state;
2517#define QLA_SWAITING 0
2518#define QLA_SREADING 1
2519#define QLA_SWRITING 2
2520
2508 /* Needed for BEACON */ 2521 /* Needed for BEACON */
2509 uint16_t beacon_blink_led; 2522 uint16_t beacon_blink_led;
2510 uint8_t beacon_color_state; 2523 uint8_t beacon_color_state;
@@ -2582,7 +2595,9 @@ struct _qla2x00stats {
2582/* 2595/*
2583 * Flash support definitions 2596 * Flash support definitions
2584 */ 2597 */
2585#define FLASH_IMAGE_SIZE 131072 2598#define OPTROM_SIZE_2300 0x20000
2599#define OPTROM_SIZE_2322 0x100000
2600#define OPTROM_SIZE_24XX 0x100000
2586 2601
2587#include "qla_gbl.h" 2602#include "qla_gbl.h"
2588#include "qla_dbg.h" 2603#include "qla_dbg.h"