aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hpsa_cmd.h
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2012-05-01 12:42:51 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-05-10 04:14:29 -0400
commit75167d2cc7654f57b90497fe90b1f0ae946c22a6 (patch)
treee882cc25860896d37f5ae4b982c1333fa7bc38ac /drivers/scsi/hpsa_cmd.h
parent5a3d16f51ef62bf17c9752c469db881dd12bce9b (diff)
[SCSI] hpsa: add abort error handler function
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/hpsa_cmd.h')
-rw-r--r--drivers/scsi/hpsa_cmd.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa_cmd.h b/drivers/scsi/hpsa_cmd.h
index 8049815d8c1e..14b56c93cefa 100644
--- a/drivers/scsi/hpsa_cmd.h
+++ b/drivers/scsi/hpsa_cmd.h
@@ -82,6 +82,29 @@
82#define TYPE_CMD 0x00 82#define TYPE_CMD 0x00
83#define TYPE_MSG 0x01 83#define TYPE_MSG 0x01
84 84
85/* Message Types */
86#define HPSA_TASK_MANAGEMENT 0x00
87#define HPSA_RESET 0x01
88#define HPSA_SCAN 0x02
89#define HPSA_NOOP 0x03
90
91#define HPSA_CTLR_RESET_TYPE 0x00
92#define HPSA_BUS_RESET_TYPE 0x01
93#define HPSA_TARGET_RESET_TYPE 0x03
94#define HPSA_LUN_RESET_TYPE 0x04
95#define HPSA_NEXUS_RESET_TYPE 0x05
96
97/* Task Management Functions */
98#define HPSA_TMF_ABORT_TASK 0x00
99#define HPSA_TMF_ABORT_TASK_SET 0x01
100#define HPSA_TMF_CLEAR_ACA 0x02
101#define HPSA_TMF_CLEAR_TASK_SET 0x03
102#define HPSA_TMF_QUERY_TASK 0x04
103#define HPSA_TMF_QUERY_TASK_SET 0x05
104#define HPSA_TMF_QUERY_ASYNCEVENT 0x06
105
106
107
85/* config space register offsets */ 108/* config space register offsets */
86#define CFG_VENDORID 0x00 109#define CFG_VENDORID 0x00
87#define CFG_DEVICEID 0x02 110#define CFG_DEVICEID 0x02
@@ -337,11 +360,17 @@ struct CfgTable {
337 u32 MaxPhysicalDevices; 360 u32 MaxPhysicalDevices;
338 u32 MaxPhysicalDrivesPerLogicalUnit; 361 u32 MaxPhysicalDrivesPerLogicalUnit;
339 u32 MaxPerformantModeCommands; 362 u32 MaxPerformantModeCommands;
340 u8 reserved[0x78 - 0x58]; 363 u32 MaxBlockFetch;
364 u32 PowerConservationSupport;
365 u32 PowerConservationEnable;
366 u32 TMFSupportFlags;
367 u8 TMFTagMask[8];
368 u8 reserved[0x78 - 0x70];
341 u32 misc_fw_support; /* offset 0x78 */ 369 u32 misc_fw_support; /* offset 0x78 */
342#define MISC_FW_DOORBELL_RESET (0x02) 370#define MISC_FW_DOORBELL_RESET (0x02)
343#define MISC_FW_DOORBELL_RESET2 (0x010) 371#define MISC_FW_DOORBELL_RESET2 (0x010)
344 u8 driver_version[32]; 372 u8 driver_version[32];
373
345}; 374};
346 375
347#define NUM_BLOCKFETCH_ENTRIES 8 376#define NUM_BLOCKFETCH_ENTRIES 8