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
d27d43d9
Commit
d27d43d9
authored
Feb 13, 2003
by
Alan Cox
Committed by
David Woodhouse
Feb 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix sym53c416 for new scsi
parent
6ff5b045
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/scsi/sym53c416.c
drivers/scsi/sym53c416.c
+4
-4
No files found.
drivers/scsi/sym53c416.c
View file @
d27d43d9
/*
/*
* sym53c416.c
* Low-level SCSI driver for sym53c416 chip.
* Copyright (C) 1998 Lieven Willems (lw_linux@hotmail.com)
...
...
@@ -763,7 +763,7 @@ int sym53c416_queuecommand(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *))
int
i
;
/* Store base register as we can have more than one controller in the system */
base
=
SCpnt
->
host
->
io_port
;
base
=
SCpnt
->
device
->
host
->
io_port
;
current_command
=
SCpnt
;
/* set current command */
current_command
->
scsi_done
=
done
;
/* set ptr to done function */
current_command
->
SCp
.
phase
=
command_ph
;
/* currect phase is the command phase */
...
...
@@ -771,7 +771,7 @@ int sym53c416_queuecommand(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *))
current_command
->
SCp
.
Message
=
0
;
spin_lock_irqsave
(
&
sym53c416_lock
,
flags
);
outb
(
SCpnt
->
target
,
base
+
DEST_BUS_ID
);
/* Set scsi id target */
outb
(
SCpnt
->
device
->
id
,
base
+
DEST_BUS_ID
);
/* Set scsi id target */
outb
(
FLUSH_FIFO
,
base
+
COMMAND_REG
);
/* Flush SCSI and PIO FIFO's */
/* Write SCSI command into the SCSI fifo */
for
(
i
=
0
;
i
<
SCpnt
->
cmd_len
;
i
++
)
...
...
@@ -819,7 +819,7 @@ static int sym53c416_host_reset(Scsi_Cmnd *SCpnt)
int
i
;
/* printk("sym53c416_reset\n"); */
base
=
SCpnt
->
host
->
io_port
;
base
=
SCpnt
->
device
->
host
->
io_port
;
/* search scsi_id - fixme, we shouldnt need to iterate for this! */
for
(
i
=
0
;
i
<
host_index
&&
scsi_id
!=
-
1
;
i
++
)
if
(
hosts
[
i
].
base
==
base
)
...
...
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