aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/cciss_cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/cciss_cmd.h')
-rw-r--r--drivers/block/cciss_cmd.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/block/cciss_cmd.h b/drivers/block/cciss_cmd.h
index 515c9f03c201..e624ff959cb6 100644
--- a/drivers/block/cciss_cmd.h
+++ b/drivers/block/cciss_cmd.h
@@ -167,10 +167,13 @@ typedef struct _SGDescriptor_struct {
167#define CMD_MSG_TIMEOUT 0x05 167#define CMD_MSG_TIMEOUT 0x05
168#define CMD_MSG_STALE 0xff 168#define CMD_MSG_STALE 0xff
169 169
170/* This structure needs to be divisible by 8 for new 170/* This structure needs to be divisible by COMMANDLIST_ALIGNMENT
171 * indexing method. PAD_32 and PAD_64 can be adjusted 171 * because low bits of the address are used to to indicate that
172 * independently as needed for 32-bit and 64-bits systems. 172 * whether the tag contains an index or an address. PAD_32 and
173 * PAD_64 can be adjusted independently as needed for 32-bit
174 * and 64-bits systems.
173 */ 175 */
176#define COMMANDLIST_ALIGNMENT (8)
174#define IS_64_BIT ((sizeof(long) - 4)/4) 177#define IS_64_BIT ((sizeof(long) - 4)/4)
175#define IS_32_BIT (!IS_64_BIT) 178#define IS_32_BIT (!IS_64_BIT)
176#define PAD_32 (0) 179#define PAD_32 (0)