Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182934
b: refs/heads/master
c: 58daa9c
h: refs/heads/master
v: v3
  • Loading branch information
Stephen M. Cameron authored and Jens Axboe committed Feb 28, 2010
1 parent bdd4e35 commit ea886f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41647e7a91338dba21773a16af7474ef95e0929e
refs/heads/master: 58daa9ce96b847ed130453f5fdd63c579fb1f84f
9 changes: 7 additions & 2 deletions trunk/drivers/block/cciss_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,14 @@ typedef struct _SGDescriptor_struct {
#define CMD_MSG_STALE 0xff

/* This structure needs to be divisible by 8 for new
* indexing method.
* indexing method. PAD_32 and PAD_64 can be adjusted
* independently as needed for 32-bit and 64-bits systems.
*/
#define PADSIZE (sizeof(long) - 4)
#define IS_64_BIT ((sizeof(long) - 4)/4)
#define IS_32_BIT (!IS_64_BIT)
#define PAD_32 (0)
#define PAD_64 (4)
#define PADSIZE (IS_32_BIT * PAD_32 + IS_64_BIT * PAD_64)
typedef struct _CommandList_struct {
CommandListHeader_struct Header;
RequestBlock_struct Request;
Expand Down

0 comments on commit ea886f9

Please sign in to comment.