aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2005-10-27 14:09:48 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2005-10-28 12:52:11 -0400
commit4fdfefe52944f5c4132a372ed5c208962a73c3f2 (patch)
tree23e4c9cb3f899d82e07fcfc55d75744b919415e5 /drivers/scsi/qla2xxx/qla_def.h
parent0eedfcf0cdac30b14d1e6c99abc6604347ef0af8 (diff)
[SCSI] qla2xxx: Add support to dynamically enable/disable ZIO.
ISP23xx and ISP24xx chips have support for an adaptive method of posting SCSI command completions for multiple SCSI commands during a single system interrupt. SCSI commands are placed on the system response queue without interrupting the host until 1) a delay timer expires; or 2) a SCSI command completes with an error. As long as the host software (qla2xxx) services the response queue for completions (this polling is done during queuecommand()) within the 'delay timer' period, the firmware will not generate system interrupt. 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index b455c31405e4..522bb2d3f084 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -823,6 +823,11 @@ typedef struct {
823#define PD_STATE_WAIT_PORT_LOGOUT_ACK 11 823#define PD_STATE_WAIT_PORT_LOGOUT_ACK 11
824 824
825 825
826#define QLA_ZIO_MODE_5 (BIT_2 | BIT_0)
827#define QLA_ZIO_MODE_6 (BIT_2 | BIT_1)
828#define QLA_ZIO_DISABLED 0
829#define QLA_ZIO_DEFAULT_TIMER 2
830
826/* 831/*
827 * ISP Initialization Control Block. 832 * ISP Initialization Control Block.
828 * Little endian except where noted. 833 * Little endian except where noted.
@@ -2470,6 +2475,9 @@ typedef struct scsi_qla_host {
2470 /* Needed for BEACON */ 2475 /* Needed for BEACON */
2471 uint16_t beacon_blink_led; 2476 uint16_t beacon_blink_led;
2472 uint16_t beacon_green_on; 2477 uint16_t beacon_green_on;
2478
2479 uint16_t zio_mode;
2480 uint16_t zio_timer;
2473} scsi_qla_host_t; 2481} scsi_qla_host_t;
2474 2482
2475 2483