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
Kirill Smelkov
linux
Commits
5b876a95
Commit
5b876a95
authored
Feb 24, 2003
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up wd33c93 data direction code
Data direction is now provided by the SCSI mid-layer
parent
94c1e4d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
36 deletions
+2
-36
drivers/scsi/wd33c93.c
drivers/scsi/wd33c93.c
+2
-36
No files found.
drivers/scsi/wd33c93.c
View file @
5b876a95
...
@@ -304,44 +304,10 @@ read_1_byte(const wd33c93_regs regs)
...
@@ -304,44 +304,10 @@ read_1_byte(const wd33c93_regs regs)
* will be a DATA_OUT phase with this command, false otherwise.
* will be a DATA_OUT phase with this command, false otherwise.
* (Thanks to Joerg Dorchain for the research and suggestion.)
* (Thanks to Joerg Dorchain for the research and suggestion.)
*/
*/
static
int
static
in
line
in
t
is_dir_out
(
Scsi_Cmnd
*
cmd
)
is_dir_out
(
Scsi_Cmnd
*
cmd
)
{
{
switch
(
cmd
->
cmnd
[
0
])
{
return
cmd
->
sc_data_direction
==
SCSI_DATA_WRITE
;
case
WRITE_6
:
case
WRITE_10
:
case
WRITE_12
:
case
WRITE_LONG
:
case
WRITE_SAME
:
case
WRITE_BUFFER
:
case
WRITE_VERIFY
:
case
WRITE_VERIFY_12
:
case
COMPARE
:
case
COPY
:
case
COPY_VERIFY
:
case
SEARCH_EQUAL
:
case
SEARCH_HIGH
:
case
SEARCH_LOW
:
case
SEARCH_EQUAL_12
:
case
SEARCH_HIGH_12
:
case
SEARCH_LOW_12
:
case
FORMAT_UNIT
:
case
REASSIGN_BLOCKS
:
case
RESERVE
:
case
MODE_SELECT
:
case
MODE_SELECT_10
:
case
LOG_SELECT
:
case
SEND_DIAGNOSTIC
:
case
CHANGE_DEFINITION
:
case
UPDATE_BLOCK
:
case
SET_WINDOW
:
case
MEDIUM_SCAN
:
case
SEND_VOLUME_TAG
:
case
0xea
:
return
1
;
default:
return
0
;
}
}
}
static
struct
sx_period
sx_table
[]
=
{
static
struct
sx_period
sx_table
[]
=
{
...
...
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