aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bsg.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <tomof@acm.org>2006-12-22 03:43:51 -0500
committerJens Axboe <jens.axboe@oracle.com>2007-07-16 02:52:45 -0400
commit3862153b673516b2efa0447b9b3778f47ac8f8c8 (patch)
tree9b62a0adc42480cdcf259d6c73176e08212926b8 /include/linux/bsg.h
parent2ef7086a207d3d899ae88602a135fe1c24e1811f (diff)
Replace s32, u32 and u64 with __s32, __u32 and __u64 in bsg.h for userspace
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/bsg.h')
-rw-r--r--include/linux/bsg.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/include/linux/bsg.h b/include/linux/bsg.h
index f968726cfadc..2154a6dfbd53 100644
--- a/include/linux/bsg.h
+++ b/include/linux/bsg.h
@@ -2,42 +2,42 @@
2#define BSG_H 2#define BSG_H
3 3
4struct sg_io_v4 { 4struct sg_io_v4 {
5 s32 guard; /* [i] 'Q' to differentiate from v3 */ 5 __s32 guard; /* [i] 'Q' to differentiate from v3 */
6 u32 protocol; /* [i] 0 -> SCSI , .... */ 6 __u32 protocol; /* [i] 0 -> SCSI , .... */
7 u32 subprotocol; /* [i] 0 -> SCSI command, 1 -> SCSI task 7 __u32 subprotocol; /* [i] 0 -> SCSI command, 1 -> SCSI task
8 management function, .... */ 8 management function, .... */
9 9
10 u32 request_len; /* [i] in bytes */ 10 __u32 request_len; /* [i] in bytes */
11 u64 request; /* [i], [*i] {SCSI: cdb} */ 11 __u64 request; /* [i], [*i] {SCSI: cdb} */
12 u32 request_attr; /* [i] {SCSI: task attribute} */ 12 __u32 request_attr; /* [i] {SCSI: task attribute} */
13 u32 request_tag; /* [i] {SCSI: task tag (only if flagged)} */ 13 __u32 request_tag; /* [i] {SCSI: task tag (only if flagged)} */
14 u32 request_priority; /* [i] {SCSI: task priority} */ 14 __u32 request_priority; /* [i] {SCSI: task priority} */
15 u32 max_response_len; /* [i] in bytes */ 15 __u32 max_response_len; /* [i] in bytes */
16 u64 response; /* [i], [*o] {SCSI: (auto)sense data} */ 16 __u64 response; /* [i], [*o] {SCSI: (auto)sense data} */
17 17
18 /* "din_" for data in (from device); "dout_" for data out (to device) */ 18 /* "din_" for data in (from device); "dout_" for data out (to device) */
19 u32 dout_xfer_len; /* [i] bytes to be transferred to device */ 19 __u32 dout_xfer_len; /* [i] bytes to be transferred to device */
20 u32 din_xfer_len; /* [i] bytes to be transferred from device */ 20 __u32 din_xfer_len; /* [i] bytes to be transferred from device */
21 u64 dout_xferp; /* [i], [*i] */ 21 __u64 dout_xferp; /* [i], [*i] */
22 u64 din_xferp; /* [i], [*o] */ 22 __u64 din_xferp; /* [i], [*o] */
23 23
24 u32 timeout; /* [i] units: millisecond */ 24 __u32 timeout; /* [i] units: millisecond */
25 u32 flags; /* [i] bit mask */ 25 __u32 flags; /* [i] bit mask */
26 u64 usr_ptr; /* [i->o] unused internally */ 26 __u64 usr_ptr; /* [i->o] unused internally */
27 u32 spare_in; /* [i] */ 27 __u32 spare_in; /* [i] */
28 28
29 u32 driver_status; /* [o] 0 -> ok */ 29 __u32 driver_status; /* [o] 0 -> ok */
30 u32 transport_status; /* [o] 0 -> ok */ 30 __u32 transport_status; /* [o] 0 -> ok */
31 u32 device_status; /* [o] {SCSI: command completion status} */ 31 __u32 device_status; /* [o] {SCSI: command completion status} */
32 u32 retry_delay; /* [o] {SCSI: status auxiliary information} */ 32 __u32 retry_delay; /* [o] {SCSI: status auxiliary information} */
33 u32 info; /* [o] additional information */ 33 __u32 info; /* [o] additional information */
34 u32 duration; /* [o] time to complete, in milliseconds */ 34 __u32 duration; /* [o] time to complete, in milliseconds */
35 u32 response_len; /* [o] bytes of response actually written */ 35 __u32 response_len; /* [o] bytes of response actually written */
36 s32 din_resid; /* [o] actual_din_xfer_len - din_xfer_len */ 36 __s32 din_resid; /* [o] actual_din_xfer_len - din_xfer_len */
37 u32 generated_tag; /* [o] {SCSI: task tag that transport chose} */ 37 __u32 generated_tag; /* [o] {SCSI: task tag that transport chose} */
38 u32 spare_out; /* [o] */ 38 __u32 spare_out; /* [o] */
39 39
40 u32 padding; 40 __u32 padding;
41}; 41};
42 42
43#ifdef __KERNEL__ 43#ifdef __KERNEL__