diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-03-29 23:04:53 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-03-29 23:04:53 -0400 |
commit | 9ff9a26b786c35ee8d2a66222924a807ec851a9f (patch) | |
tree | db432a17bccca1ca2c16907f0ee83ac449ed4012 /include/linux/bsg.h | |
parent | 0a3108beea9143225119d5e7c72a8e2c64f3eb7d (diff) | |
parent | 0d34fb8e93ceba7b6dad0062dbb4a0813bacd75b (diff) |
Merge commit 'origin/master' into next
Manual merge of:
arch/powerpc/include/asm/elf.h
drivers/i2c/busses/i2c-mpc.c
Diffstat (limited to 'include/linux/bsg.h')
-rw-r--r-- | include/linux/bsg.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/bsg.h b/include/linux/bsg.h index cf0303a60611..ecb4730d0868 100644 --- a/include/linux/bsg.h +++ b/include/linux/bsg.h | |||
@@ -1,12 +1,22 @@ | |||
1 | #ifndef BSG_H | 1 | #ifndef BSG_H |
2 | #define BSG_H | 2 | #define BSG_H |
3 | 3 | ||
4 | #include <linux/types.h> | ||
5 | |||
4 | #define BSG_PROTOCOL_SCSI 0 | 6 | #define BSG_PROTOCOL_SCSI 0 |
5 | 7 | ||
6 | #define BSG_SUB_PROTOCOL_SCSI_CMD 0 | 8 | #define BSG_SUB_PROTOCOL_SCSI_CMD 0 |
7 | #define BSG_SUB_PROTOCOL_SCSI_TMF 1 | 9 | #define BSG_SUB_PROTOCOL_SCSI_TMF 1 |
8 | #define BSG_SUB_PROTOCOL_SCSI_TRANSPORT 2 | 10 | #define BSG_SUB_PROTOCOL_SCSI_TRANSPORT 2 |
9 | 11 | ||
12 | /* | ||
13 | * For flags member below | ||
14 | * sg.h sg_io_hdr also has bits defined for it's flags member. However | ||
15 | * none of these bits are implemented/used by bsg. The bits below are | ||
16 | * allocated to not conflict with sg.h ones anyway. | ||
17 | */ | ||
18 | #define BSG_FLAG_Q_AT_TAIL 0x10 /* default, == 0 at this bit, is Q_AT_HEAD */ | ||
19 | |||
10 | struct sg_io_v4 { | 20 | struct sg_io_v4 { |
11 | __s32 guard; /* [i] 'Q' to differentiate from v3 */ | 21 | __s32 guard; /* [i] 'Q' to differentiate from v3 */ |
12 | __u32 protocol; /* [i] 0 -> SCSI , .... */ | 22 | __u32 protocol; /* [i] 0 -> SCSI , .... */ |