Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1594a3f0
Commit
1594a3f0
authored
18 years ago
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bsg: use u32 etc instead of uint32_t
Signed-off-by:
Jens Axboe
<
jens.axboe@oracle.com
>
parent
10e8855b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
29 deletions
+29
-29
include/linux/bsg.h
include/linux/bsg.h
+29
-29
No files found.
include/linux/bsg.h
View file @
1594a3f0
...
...
@@ -2,42 +2,42 @@
#define BSG_H
struct
sg_io_v4
{
int32_t
guard
;
/* [i] 'Q' to differentiate from v3 */
u
int32_t
protocol
;
/* [i] 0 -> SCSI , .... */
u
int32_t
subprotocol
;
/* [i] 0 -> SCSI command, 1 -> SCSI task
s32
guard
;
/* [i] 'Q' to differentiate from v3 */
u
32
protocol
;
/* [i] 0 -> SCSI , .... */
u
32
subprotocol
;
/* [i] 0 -> SCSI command, 1 -> SCSI task
management function, .... */
u
int32_t
request_len
;
/* [i] in bytes */
u
int64_t
request
;
/* [i], [*i] {SCSI: cdb} */
u
int32_t
request_attr
;
/* [i] {SCSI: task attribute} */
u
int32_t
request_tag
;
/* [i] {SCSI: task tag (only if flagged)} */
u
int32_t
request_priority
;
/* [i] {SCSI: task priority} */
u
int32_t
max_response_len
;
/* [i] in bytes */
u
int64_t
response
;
/* [i], [*o] {SCSI: (auto)sense data} */
u
32
request_len
;
/* [i] in bytes */
u
64
request
;
/* [i], [*i] {SCSI: cdb} */
u
32
request_attr
;
/* [i] {SCSI: task attribute} */
u
32
request_tag
;
/* [i] {SCSI: task tag (only if flagged)} */
u
32
request_priority
;
/* [i] {SCSI: task priority} */
u
32
max_response_len
;
/* [i] in bytes */
u
64
response
;
/* [i], [*o] {SCSI: (auto)sense data} */
/* "din_" for data in (from device); "dout_" for data out (to device) */
u
int32_t
dout_xfer_len
;
/* [i] bytes to be transferred to device */
u
int32_t
din_xfer_len
;
/* [i] bytes to be transferred from device */
u
int64_t
dout_xferp
;
/* [i], [*i] */
u
int64_t
din_xferp
;
/* [i], [*o] */
u
32
dout_xfer_len
;
/* [i] bytes to be transferred to device */
u
32
din_xfer_len
;
/* [i] bytes to be transferred from device */
u
64
dout_xferp
;
/* [i], [*i] */
u
64
din_xferp
;
/* [i], [*o] */
u
int32_t
timeout
;
/* [i] units: millisecond */
u
int32_t
flags
;
/* [i] bit mask */
u
int64_t
usr_ptr
;
/* [i->o] unused internally */
u
int32_t
spare_in
;
/* [i] */
u
32
timeout
;
/* [i] units: millisecond */
u
32
flags
;
/* [i] bit mask */
u
64
usr_ptr
;
/* [i->o] unused internally */
u
32
spare_in
;
/* [i] */
u
int32_t
driver_status
;
/* [o] 0 -> ok */
u
int32_t
transport_status
;
/* [o] 0 -> ok */
u
int32_t
device_status
;
/* [o] {SCSI: command completion status} */
u
int32_t
retry_delay
;
/* [o] {SCSI: status auxiliary information} */
u
int32_t
info
;
/* [o] additional information */
u
int32_t
duration
;
/* [o] time to complete, in milliseconds */
u
int32_t
response_len
;
/* [o] bytes of response actually written */
int32_t
din_resid
;
/* [o] actual_din_xfer_len - din_xfer_len */
u
int32_t
generated_tag
;
/* [o] {SCSI: task tag that transport chose} */
u
int32_t
spare_out
;
/* [o] */
u
32
driver_status
;
/* [o] 0 -> ok */
u
32
transport_status
;
/* [o] 0 -> ok */
u
32
device_status
;
/* [o] {SCSI: command completion status} */
u
32
retry_delay
;
/* [o] {SCSI: status auxiliary information} */
u
32
info
;
/* [o] additional information */
u
32
duration
;
/* [o] time to complete, in milliseconds */
u
32
response_len
;
/* [o] bytes of response actually written */
s32
din_resid
;
/* [o] actual_din_xfer_len - din_xfer_len */
u
32
generated_tag
;
/* [o] {SCSI: task tag that transport chose} */
u
32
spare_out
;
/* [o] */
u
int32_t
padding
;
u
32
padding
;
};
#ifdef __KERNEL__
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment