aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2007-01-29 13:22:19 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-01-31 12:05:20 -0500
commita8488abefaa863a0c3a19888f03395adb3f1c6d2 (patch)
treed26c038c2a72231490db6c6e4ef9ea5d7f03862c /drivers/scsi/qla2xxx/qla_def.h
parent3c6061236801a376d86ca75fd56d61f964611dd5 (diff)
[SCSI] qla2xxx: Add MSI-X support.
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.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index c4fc40f8e8ca..8d7e8cb1e703 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -2046,6 +2046,27 @@ struct isp_operations {
2046 uint32_t); 2046 uint32_t);
2047}; 2047};
2048 2048
2049/* MSI-X Support *************************************************************/
2050
2051#define QLA_MSIX_CHIP_REV_24XX 3
2052#define QLA_MSIX_FW_MODE(m) (((m) & (BIT_7|BIT_8|BIT_9)) >> 7)
2053#define QLA_MSIX_FW_MODE_1(m) (QLA_MSIX_FW_MODE(m) == 1)
2054
2055#define QLA_MSIX_DEFAULT 0x00
2056#define QLA_MSIX_RSP_Q 0x01
2057
2058#define QLA_MSIX_ENTRIES 2
2059#define QLA_MIDX_DEFAULT 0
2060#define QLA_MIDX_RSP_Q 1
2061
2062struct scsi_qla_host;
2063
2064struct qla_msix_entry {
2065 int have_irq;
2066 uint16_t msix_vector;
2067 uint16_t msix_entry;
2068};
2069
2049/* 2070/*
2050 * Linux Host Adapter structure 2071 * Linux Host Adapter structure
2051 */ 2072 */
@@ -2356,6 +2377,7 @@ typedef struct scsi_qla_host {
2356 2377
2357 uint8_t host_str[16]; 2378 uint8_t host_str[16];
2358 uint32_t pci_attr; 2379 uint32_t pci_attr;
2380 uint16_t chip_revision;
2359 2381
2360 uint16_t product_id[4]; 2382 uint16_t product_id[4];
2361 2383
@@ -2389,6 +2411,8 @@ typedef struct scsi_qla_host {
2389 uint16_t zio_mode; 2411 uint16_t zio_mode;
2390 uint16_t zio_timer; 2412 uint16_t zio_timer;
2391 struct fc_host_statistics fc_host_stat; 2413 struct fc_host_statistics fc_host_stat;
2414
2415 struct qla_msix_entry msix_entries[QLA_MSIX_ENTRIES];
2392} scsi_qla_host_t; 2416} scsi_qla_host_t;
2393 2417
2394 2418