diff options
author | Mike Miller <mike.miller@hp.com> | 2010-04-16 14:28:41 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-05-02 11:02:17 -0400 |
commit | 859e816704b4139d15b1ec6a3505f12faef5333a (patch) | |
tree | 81e538428c200029db6f871492987e48253a91fe /drivers | |
parent | 160e7f671344e40b86663a8913e175a3bb5d7f84 (diff) |
[SCSI] hpsa: remove unneeded defines
This patch removes unnecessary #define's from hpsa. The SCSI midlayer
handles all this for us.
Signed-off-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/hpsa.c | 8 | ||||
-rw-r--r-- | drivers/scsi/hpsa_cmd.h | 15 |
2 files changed, 0 insertions, 23 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 183d3a43c280..c016426b31b2 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -2708,14 +2708,6 @@ static void fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h, | |||
2708 | c->Request.CDB[8] = (size >> 8) & 0xFF; | 2708 | c->Request.CDB[8] = (size >> 8) & 0xFF; |
2709 | c->Request.CDB[9] = size & 0xFF; | 2709 | c->Request.CDB[9] = size & 0xFF; |
2710 | break; | 2710 | break; |
2711 | |||
2712 | case HPSA_READ_CAPACITY: | ||
2713 | c->Request.CDBLen = 10; | ||
2714 | c->Request.Type.Attribute = ATTR_SIMPLE; | ||
2715 | c->Request.Type.Direction = XFER_READ; | ||
2716 | c->Request.Timeout = 0; | ||
2717 | c->Request.CDB[0] = cmd; | ||
2718 | break; | ||
2719 | case HPSA_CACHE_FLUSH: | 2711 | case HPSA_CACHE_FLUSH: |
2720 | c->Request.CDBLen = 12; | 2712 | c->Request.CDBLen = 12; |
2721 | c->Request.Type.Attribute = ATTR_SIMPLE; | 2713 | c->Request.Type.Attribute = ATTR_SIMPLE; |
diff --git a/drivers/scsi/hpsa_cmd.h b/drivers/scsi/hpsa_cmd.h index 56fb9827681e..78de9b6d1e0b 100644 --- a/drivers/scsi/hpsa_cmd.h +++ b/drivers/scsi/hpsa_cmd.h | |||
@@ -152,21 +152,6 @@ struct SenseSubsystem_info { | |||
152 | u8 reserved1[1108]; | 152 | u8 reserved1[1108]; |
153 | }; | 153 | }; |
154 | 154 | ||
155 | #define HPSA_READ_CAPACITY 0x25 /* Read Capacity */ | ||
156 | struct ReadCapdata { | ||
157 | u8 total_size[4]; /* Total size in blocks */ | ||
158 | u8 block_size[4]; /* Size of blocks in bytes */ | ||
159 | }; | ||
160 | |||
161 | #if 0 | ||
162 | /* 12 byte commands not implemented in firmware yet. */ | ||
163 | #define HPSA_READ 0xa8 | ||
164 | #define HPSA_WRITE 0xaa | ||
165 | #endif | ||
166 | |||
167 | #define HPSA_READ 0x28 /* Read(10) */ | ||
168 | #define HPSA_WRITE 0x2a /* Write(10) */ | ||
169 | |||
170 | /* BMIC commands */ | 155 | /* BMIC commands */ |
171 | #define BMIC_READ 0x26 | 156 | #define BMIC_READ 0x26 |
172 | #define BMIC_WRITE 0x27 | 157 | #define BMIC_WRITE 0x27 |