aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index 6b3762243689..023ee77fb027 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -2303,6 +2303,7 @@ struct qla_hw_data {
2303#define PORT_SPEED_2GB 0x01 2303#define PORT_SPEED_2GB 0x01
2304#define PORT_SPEED_4GB 0x03 2304#define PORT_SPEED_4GB 0x03
2305#define PORT_SPEED_8GB 0x04 2305#define PORT_SPEED_8GB 0x04
2306#define PORT_SPEED_10GB 0x13
2306 uint16_t link_data_rate; /* F/W operating speed */ 2307 uint16_t link_data_rate; /* F/W operating speed */
2307 2308
2308 uint8_t current_topology; 2309 uint8_t current_topology;
@@ -2322,6 +2323,7 @@ struct qla_hw_data {
2322 2323
2323#define PCI_DEVICE_ID_QLOGIC_ISP2532 0x2532 2324#define PCI_DEVICE_ID_QLOGIC_ISP2532 0x2532
2324#define PCI_DEVICE_ID_QLOGIC_ISP8432 0x8432 2325#define PCI_DEVICE_ID_QLOGIC_ISP8432 0x8432
2326#define PCI_DEVICE_ID_QLOGIC_ISP8001 0x8001
2325 uint32_t device_type; 2327 uint32_t device_type;
2326#define DT_ISP2100 BIT_0 2328#define DT_ISP2100 BIT_0
2327#define DT_ISP2200 BIT_1 2329#define DT_ISP2200 BIT_1
@@ -2336,7 +2338,8 @@ struct qla_hw_data {
2336#define DT_ISP5432 BIT_10 2338#define DT_ISP5432 BIT_10
2337#define DT_ISP2532 BIT_11 2339#define DT_ISP2532 BIT_11
2338#define DT_ISP8432 BIT_12 2340#define DT_ISP8432 BIT_12
2339#define DT_ISP_LAST (DT_ISP8432 << 1) 2341#define DT_ISP8001 BIT_13
2342#define DT_ISP_LAST (DT_ISP8001 << 1)
2340 2343
2341#define DT_IIDMA BIT_26 2344#define DT_IIDMA BIT_26
2342#define DT_FWI2 BIT_27 2345#define DT_FWI2 BIT_27
@@ -2358,6 +2361,7 @@ struct qla_hw_data {
2358#define IS_QLA5432(ha) (DT_MASK(ha) & DT_ISP5432) 2361#define IS_QLA5432(ha) (DT_MASK(ha) & DT_ISP5432)
2359#define IS_QLA2532(ha) (DT_MASK(ha) & DT_ISP2532) 2362#define IS_QLA2532(ha) (DT_MASK(ha) & DT_ISP2532)
2360#define IS_QLA8432(ha) (DT_MASK(ha) & DT_ISP8432) 2363#define IS_QLA8432(ha) (DT_MASK(ha) & DT_ISP8432)
2364#define IS_QLA8001(ha) (DT_MASK(ha) & DT_ISP8001)
2361 2365
2362#define IS_QLA23XX(ha) (IS_QLA2300(ha) || IS_QLA2312(ha) || IS_QLA2322(ha) || \ 2366#define IS_QLA23XX(ha) (IS_QLA2300(ha) || IS_QLA2312(ha) || IS_QLA2322(ha) || \
2363 IS_QLA6312(ha) || IS_QLA6322(ha)) 2367 IS_QLA6312(ha) || IS_QLA6322(ha))
@@ -2367,9 +2371,10 @@ struct qla_hw_data {
2367#define IS_QLA84XX(ha) (IS_QLA8432(ha)) 2371#define IS_QLA84XX(ha) (IS_QLA8432(ha))
2368#define IS_QLA24XX_TYPE(ha) (IS_QLA24XX(ha) || IS_QLA54XX(ha) || \ 2372#define IS_QLA24XX_TYPE(ha) (IS_QLA24XX(ha) || IS_QLA54XX(ha) || \
2369 IS_QLA84XX(ha)) 2373 IS_QLA84XX(ha))
2374#define IS_QLA81XX(ha) (IS_QLA8001(ha))
2370#define IS_QLA2XXX_MIDTYPE(ha) (IS_QLA24XX(ha) || IS_QLA84XX(ha) || \ 2375#define IS_QLA2XXX_MIDTYPE(ha) (IS_QLA24XX(ha) || IS_QLA84XX(ha) || \
2371 IS_QLA25XX(ha)) 2376 IS_QLA25XX(ha) || IS_QLA81XX(ha))
2372#define IS_NOPOLLING_TYPE(ha) (IS_QLA25XX(ha) && \ 2377#define IS_NOPOLLING_TYPE(ha) ((IS_QLA25XX(ha) || IS_QLA81XX(ha)) && \
2373 (ha)->flags.msix_enabled) 2378 (ha)->flags.msix_enabled)
2374 2379
2375#define IS_IIDMA_CAPABLE(ha) ((ha)->device_type & DT_IIDMA) 2380#define IS_IIDMA_CAPABLE(ha) ((ha)->device_type & DT_IIDMA)
@@ -2468,6 +2473,9 @@ struct qla_hw_data {
2468 uint8_t fw_seriallink_options[4]; 2473 uint8_t fw_seriallink_options[4];
2469 uint16_t fw_seriallink_options24[4]; 2474 uint16_t fw_seriallink_options24[4];
2470 2475
2476 uint8_t mpi_version[4];
2477 uint32_t mpi_capabilities;
2478
2471 /* Firmware dump information. */ 2479 /* Firmware dump information. */
2472 struct qla2xxx_fw_dump *fw_dump; 2480 struct qla2xxx_fw_dump *fw_dump;
2473 uint32_t fw_dump_len; 2481 uint32_t fw_dump_len;
@@ -2515,6 +2523,12 @@ struct qla_hw_data {
2515 uint8_t fcode_revision[16]; 2523 uint8_t fcode_revision[16];
2516 uint32_t fw_revision[4]; 2524 uint32_t fw_revision[4];
2517 2525
2526 /* Offsets for flash/nvram access (set to ~0 if not used). */
2527 uint32_t flash_conf_off;
2528 uint32_t flash_data_off;
2529 uint32_t nvram_conf_off;
2530 uint32_t nvram_data_off;
2531
2518 uint32_t fdt_wrt_disable; 2532 uint32_t fdt_wrt_disable;
2519 uint32_t fdt_erase_cmd; 2533 uint32_t fdt_erase_cmd;
2520 uint32_t fdt_block_size; 2534 uint32_t fdt_block_size;
@@ -2729,6 +2743,7 @@ typedef struct scsi_qla_host {
2729#define OPTROM_SIZE_2322 0x100000 2743#define OPTROM_SIZE_2322 0x100000
2730#define OPTROM_SIZE_24XX 0x100000 2744#define OPTROM_SIZE_24XX 0x100000
2731#define OPTROM_SIZE_25XX 0x200000 2745#define OPTROM_SIZE_25XX 0x200000
2746#define OPTROM_SIZE_81XX 0x400000
2732 2747
2733#include "qla_gbl.h" 2748#include "qla_gbl.h"
2734#include "qla_dbg.h" 2749#include "qla_dbg.h"