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
63508ee9
Commit
63508ee9
authored
Nov 02, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move SCSI command size information into <scsi/scsi.h>, where
the commands themselves already are.
parent
e06c9771
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
drivers/scsi/scsi.h
drivers/scsi/scsi.h
+0
-3
include/scsi/scsi.h
include/scsi/scsi.h
+7
-0
No files found.
drivers/scsi/scsi.h
View file @
63508ee9
...
...
@@ -164,8 +164,6 @@ extern const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE];
#define SCSI_OWNER_BH_HANDLER 0x104
#define SCSI_OWNER_NOBODY 0x105
#define COMMAND_SIZE(opcode) scsi_command_size[((opcode) >> 5) & 7]
#define IDENTIFY_BASE 0x80
#define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\
((can_disconnect) ? 0x40 : 0) |\
...
...
@@ -415,7 +413,6 @@ extern unsigned int scsi_dma_free_sectors; /* How much room do we have left */
extern
unsigned
int
scsi_need_isa_buffer
;
/* True if some devices need indirection
* buffers */
extern
volatile
int
in_scan_scsis
;
extern
const
unsigned
char
scsi_command_size
[
8
];
extern
struct
bus_type
scsi_driverfs_bus_type
;
...
...
include/scsi/scsi.h
View file @
63508ee9
...
...
@@ -14,6 +14,13 @@
*/
/*
* SCSI command lengths
*/
extern
const
unsigned
char
scsi_command_size
[
8
];
#define COMMAND_SIZE(opcode) scsi_command_size[((opcode) >> 5) & 7]
/*
* SCSI opcodes
*/
...
...
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