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
bd12d5db
Commit
bd12d5db
authored
Feb 10, 2003
by
Christoph Hellwig
Committed by
Christoph Hellwig
Feb 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix wd7000 for scsi command block changes
parent
5d125f63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/scsi/wd7000.c
drivers/scsi/wd7000.c
+6
-6
No files found.
drivers/scsi/wd7000.c
View file @
bd12d5db
...
...
@@ -1122,13 +1122,13 @@ static int wd7000_queuecommand(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
register
unchar
*
cdb
=
(
unchar
*
)
SCpnt
->
cmnd
;
register
unchar
idlun
;
register
short
cdblen
;
Adapter
*
host
=
(
Adapter
*
)
SCpnt
->
host
->
hostdata
;
Adapter
*
host
=
(
Adapter
*
)
SCpnt
->
device
->
host
->
hostdata
;
cdblen
=
SCpnt
->
cmd_len
;
idlun
=
((
SCpnt
->
target
<<
5
)
&
0xe0
)
|
(
SCpnt
->
lun
&
7
);
idlun
=
((
SCpnt
->
device
->
id
<<
5
)
&
0xe0
)
|
(
SCpnt
->
device
->
lun
&
7
);
SCpnt
->
scsi_done
=
done
;
SCpnt
->
SCp
.
phase
=
1
;
scb
=
alloc_scbs
(
SCpnt
->
host
,
1
);
scb
=
alloc_scbs
(
SCpnt
->
device
->
host
,
1
);
scb
->
idlun
=
idlun
;
memcpy
(
scb
->
cdb
,
cdb
,
cdblen
);
scb
->
direc
=
0x40
;
/* Disable direction check */
...
...
@@ -1141,7 +1141,7 @@ static int wd7000_queuecommand(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
struct
scatterlist
*
sg
=
(
struct
scatterlist
*
)
SCpnt
->
request_buffer
;
unsigned
i
;
if
(
SCpnt
->
host
->
sg_tablesize
==
SG_NONE
)
{
if
(
SCpnt
->
device
->
host
->
sg_tablesize
==
SG_NONE
)
{
panic
(
"wd7000_queuecommand: scatter/gather not supported.
\n
"
);
}
dprintk
(
"Using scatter/gather with %d elements.
\n
"
,
SCpnt
->
use_sg
);
...
...
@@ -1646,7 +1646,7 @@ static int wd7000_detect(Scsi_Host_Template * tpnt)
*/
static
int
wd7000_abort
(
Scsi_Cmnd
*
SCpnt
)
{
Adapter
*
host
=
(
Adapter
*
)
SCpnt
->
host
->
hostdata
;
Adapter
*
host
=
(
Adapter
*
)
SCpnt
->
device
->
host
->
hostdata
;
if
(
inb
(
host
->
iobase
+
ASC_STAT
)
&
INT_IM
)
{
printk
(
"wd7000_abort: lost interrupt
\n
"
);
...
...
@@ -1677,7 +1677,7 @@ static int wd7000_device_reset(Scsi_Cmnd * SCpnt)
static
int
wd7000_host_reset
(
Scsi_Cmnd
*
SCpnt
)
{
Adapter
*
host
=
(
Adapter
*
)
SCpnt
->
host
->
hostdata
;
Adapter
*
host
=
(
Adapter
*
)
SCpnt
->
device
->
host
->
hostdata
;
if
(
wd7000_adapter_reset
(
host
)
<
0
)
return
FAILED
;
...
...
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