aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bsg.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2006-12-20 05:23:35 -0500
committerJens Axboe <jens.axboe@oracle.com>2007-07-16 02:52:44 -0400
commit1594a3f0eb526c73bc3915e8da13f2abf0ea1acd (patch)
tree149c7ec28867e5ccbce61734c930c78555137d23 /include/linux/bsg.h
parent10e8855b945193a62801429af3aab9f7e27ef56a (diff)
bsg: use u32 etc instead of uint32_t
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 0d212cc06abf..f968726cfadc 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 int32_t guard; /* [i] 'Q' to differentiate from v3 */ 5 s32 guard; /* [i] 'Q' to differentiate from v3 */
6 uint32_t protocol; /* [i] 0 -> SCSI , .... */ 6 u32 protocol; /* [i] 0 -> SCSI , .... */
7 uint32_t 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 uint32_t request_len; /* [i] in bytes */ 10 u32 request_len; /* [i] in bytes */
11 uint64_t request; /* [i], [*i] {SCSI: cdb} */ 11 u64 request; /* [i], [*i] {SCSI: cdb} */
12 uint32_t request_attr; /* [i] {SCSI: task attribute} */ 12 u32 request_attr; /* [i] {SCSI: task attribute} */
13 uint32_t request_tag; /* [i] {SCSI: task tag (only if flagged)} */ 13 u32 request_tag; /* [i] {SCSI: task tag (only if flagged)} */
14 uint32_t request_priority; /* [i] {SCSI: task priority} */ 14 u32 request_priority; /* [i] {SCSI: task priority} */
15 uint32_t max_response_len; /* [i] in bytes */ 15 u32 max_response_len; /* [i] in bytes */
16 uint64_t 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 uint32_t dout_xfer_len; /* [i] bytes to be transferred to device */ 19 u32 dout_xfer_len; /* [i] bytes to be transferred to device */
20 uint32_t din_xfer_len; /* [i] bytes to be transferred from device */ 20 u32 din_xfer_len; /* [i] bytes to be transferred from device */
21 uint64_t dout_xferp; /* [i], [*i] */ 21 u64 dout_xferp; /* [i], [*i] */
22 uint64_t din_xferp; /* [i], [*o] */ 22 u64 din_xferp; /* [i], [*o] */
23 23
24 uint32_t timeout; /* [i] units: millisecond */ 24 u32 timeout; /* [i] units: millisecond */
25 uint32_t flags; /* [i] bit mask */ 25 u32 flags; /* [i] bit mask */
26 uint64_t usr_ptr; /* [i->o] unused internally */ 26 u64 usr_ptr; /* [i->o] unused internally */
27 uint32_t spare_in; /* [i] */ 27 u32 spare_in; /* [i] */
28 28
29 uint32_t driver_status; /* [o] 0 -> ok */ 29 u32 driver_status; /* [o] 0 -> ok */
30 uint32_t transport_status; /* [o] 0 -> ok */ 30 u32 transport_status; /* [o] 0 -> ok */
31 uint32_t device_status; /* [o] {SCSI: command completion status} */ 31 u32 device_status; /* [o] {SCSI: command completion status} */
32 uint32_t retry_delay; /* [o] {SCSI: status auxiliary information} */ 32 u32 retry_delay; /* [o] {SCSI: status auxiliary information} */
33 uint32_t info; /* [o] additional information */ 33 u32 info; /* [o] additional information */
34 uint32_t duration; /* [o] time to complete, in milliseconds */ 34 u32 duration; /* [o] time to complete, in milliseconds */
35 uint32_t response_len; /* [o] bytes of response actually written */ 35 u32 response_len; /* [o] bytes of response actually written */
36 int32_t din_resid; /* [o] actual_din_xfer_len - din_xfer_len */ 36 s32 din_resid; /* [o] actual_din_xfer_len - din_xfer_len */
37 uint32_t generated_tag; /* [o] {SCSI: task tag that transport chose} */ 37 u32 generated_tag; /* [o] {SCSI: task tag that transport chose} */
38 uint32_t spare_out; /* [o] */ 38 u32 spare_out; /* [o] */
39 39
40 uint32_t padding; 40 u32 padding;
41}; 41};
42 42
43#ifdef __KERNEL__ 43#ifdef __KERNEL__