diff options
Diffstat (limited to 'drivers/scsi/hpsa_cmd.h')
| -rw-r--r-- | drivers/scsi/hpsa_cmd.h | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/drivers/scsi/hpsa_cmd.h b/drivers/scsi/hpsa_cmd.h index 47c756ba8dce..d92ef0d352b5 100644 --- a/drivers/scsi/hpsa_cmd.h +++ b/drivers/scsi/hpsa_cmd.h | |||
| @@ -260,8 +260,6 @@ struct ext_report_lun_entry { | |||
| 260 | u8 wwid[8]; | 260 | u8 wwid[8]; |
| 261 | u8 device_type; | 261 | u8 device_type; |
| 262 | u8 device_flags; | 262 | u8 device_flags; |
| 263 | #define NON_DISK_PHYS_DEV(x) ((x)[17] & 0x01) | ||
| 264 | #define PHYS_IOACCEL(x) ((x)[17] & 0x08) | ||
| 265 | u8 lun_count; /* multi-lun device, how many luns */ | 263 | u8 lun_count; /* multi-lun device, how many luns */ |
| 266 | u8 redundant_paths; | 264 | u8 redundant_paths; |
| 267 | u32 ioaccel_handle; /* ioaccel1 only uses lower 16 bits */ | 265 | u32 ioaccel_handle; /* ioaccel1 only uses lower 16 bits */ |
| @@ -288,6 +286,11 @@ struct SenseSubsystem_info { | |||
| 288 | #define BMIC_FLASH_FIRMWARE 0xF7 | 286 | #define BMIC_FLASH_FIRMWARE 0xF7 |
| 289 | #define BMIC_SENSE_CONTROLLER_PARAMETERS 0x64 | 287 | #define BMIC_SENSE_CONTROLLER_PARAMETERS 0x64 |
| 290 | #define BMIC_IDENTIFY_PHYSICAL_DEVICE 0x15 | 288 | #define BMIC_IDENTIFY_PHYSICAL_DEVICE 0x15 |
| 289 | #define BMIC_IDENTIFY_CONTROLLER 0x11 | ||
| 290 | #define BMIC_SET_DIAG_OPTIONS 0xF4 | ||
| 291 | #define BMIC_SENSE_DIAG_OPTIONS 0xF5 | ||
| 292 | #define HPSA_DIAG_OPTS_DISABLE_RLD_CACHING 0x40000000 | ||
| 293 | #define BMIC_SENSE_SUBSYSTEM_INFORMATION 0x66 | ||
| 291 | 294 | ||
| 292 | /* Command List Structure */ | 295 | /* Command List Structure */ |
| 293 | union SCSI3Addr { | 296 | union SCSI3Addr { |
| @@ -684,6 +687,16 @@ struct hpsa_pci_info { | |||
| 684 | u32 board_id; | 687 | u32 board_id; |
| 685 | }; | 688 | }; |
| 686 | 689 | ||
| 690 | struct bmic_identify_controller { | ||
| 691 | u8 configured_logical_drive_count; /* offset 0 */ | ||
| 692 | u8 pad1[153]; | ||
| 693 | __le16 extended_logical_unit_count; /* offset 154 */ | ||
| 694 | u8 pad2[136]; | ||
| 695 | u8 controller_mode; /* offset 292 */ | ||
| 696 | u8 pad3[32]; | ||
| 697 | }; | ||
| 698 | |||
| 699 | |||
| 687 | struct bmic_identify_physical_device { | 700 | struct bmic_identify_physical_device { |
| 688 | u8 scsi_bus; /* SCSI Bus number on controller */ | 701 | u8 scsi_bus; /* SCSI Bus number on controller */ |
| 689 | u8 scsi_id; /* SCSI ID on this bus */ | 702 | u8 scsi_id; /* SCSI ID on this bus */ |
| @@ -816,5 +829,18 @@ struct bmic_identify_physical_device { | |||
| 816 | u8 padding[112]; | 829 | u8 padding[112]; |
| 817 | }; | 830 | }; |
| 818 | 831 | ||
| 832 | struct bmic_sense_subsystem_info { | ||
| 833 | u8 primary_slot_number; | ||
| 834 | u8 reserved[3]; | ||
| 835 | u8 chasis_serial_number[32]; | ||
| 836 | u8 primary_world_wide_id[8]; | ||
| 837 | u8 primary_array_serial_number[32]; /* NULL terminated */ | ||
| 838 | u8 primary_cache_serial_number[32]; /* NULL terminated */ | ||
| 839 | u8 reserved_2[8]; | ||
| 840 | u8 secondary_array_serial_number[32]; | ||
| 841 | u8 secondary_cache_serial_number[32]; | ||
| 842 | u8 pad[332]; | ||
| 843 | }; | ||
| 844 | |||
| 819 | #pragma pack() | 845 | #pragma pack() |
| 820 | #endif /* HPSA_CMD_H */ | 846 | #endif /* HPSA_CMD_H */ |
