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
2d407c8b
Commit
2d407c8b
authored
Oct 27, 2002
by
Alan Cox
Committed by
Linus Torvalds
Oct 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] finish updating sym53c416
parent
57e34bbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
25 deletions
+47
-25
drivers/scsi/sym53c416.c
drivers/scsi/sym53c416.c
+23
-7
drivers/scsi/sym53c416.h
drivers/scsi/sym53c416.h
+24
-18
No files found.
drivers/scsi/sym53c416.c
View file @
2d407c8b
...
...
@@ -715,7 +715,6 @@ int __init sym53c416_detect(Scsi_Host_Template *tpnt)
if
(
shpnt
==
NULL
)
continue
;
spin_lock_irqsave
(
&
sym53c416_lock
,
flags
);
/* FIXME: Request_irq with CLI is not safe */
/* Request for specified IRQ */
if
(
request_irq
(
hosts
[
i
].
irq
,
sym53c416_intr_handle
,
0
,
ID
,
shpnt
))
{
...
...
@@ -800,12 +799,20 @@ static int sym53c416_command(Scsi_Cmnd *SCpnt)
static
int
sym53c416_abort
(
Scsi_Cmnd
*
SCpnt
)
{
/* printk("sym53c416_abort\n"); */
/* We don't know how to abort for the moment */
return
SCSI_ABORT_SNOOZE
;
return
FAILED
;
}
static
int
sym53c416_reset
(
Scsi_Cmnd
*
SCpnt
,
unsigned
int
reset_flags
)
static
int
sym53c416_bus_reset
(
Scsi_Cmnd
*
SCpnt
)
{
return
FAILED
;
}
static
int
sym53c416_device_reset
(
Scsi_Cmnd
*
SCpnt
)
{
return
FAILED
;
}
static
int
sym53c416_host_reset
(
Scsi_Cmnd
*
SCpnt
)
{
int
base
;
int
scsi_id
=
-
1
;
...
...
@@ -813,7 +820,7 @@ static int sym53c416_reset(Scsi_Cmnd *SCpnt, unsigned int reset_flags)
/* printk("sym53c416_reset\n"); */
base
=
SCpnt
->
host
->
io_port
;
/* search scsi_id */
/* 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
)
scsi_id
=
hosts
[
i
].
scsi_id
;
...
...
@@ -821,7 +828,16 @@ static int sym53c416_reset(Scsi_Cmnd *SCpnt, unsigned int reset_flags)
outb
(
NOOP
|
PIO_MODE
,
base
+
COMMAND_REG
);
outb
(
RESET_SCSI_BUS
,
base
+
COMMAND_REG
);
sym53c416_init
(
base
,
scsi_id
);
return
SCSI_RESET_PENDING
;
return
SUCCESS
;
}
static
int
sym53c416_release
(
struct
Scsi_Host
*
shost
)
{
if
(
shost
->
irq
)
free_irq
(
shost
->
irq
,
shost
);
if
(
shost
->
io_port
&&
shost
->
n_io_port
)
release_region
(
shost
->
io_port
,
shost
->
n_io_port
);
return
0
;
}
static
int
sym53c416_bios_param
(
Disk
*
disk
,
struct
block_device
*
dev
,
int
*
ip
)
...
...
drivers/scsi/sym53c416.h
View file @
2d407c8b
...
...
@@ -32,28 +32,34 @@
static
int
sym53c416_detect
(
Scsi_Host_Template
*
);
static
const
char
*
sym53c416_info
(
struct
Scsi_Host
*
);
static
int
sym53c416_release
(
struct
Scsi_Host
*
);
static
int
sym53c416_command
(
Scsi_Cmnd
*
);
static
int
sym53c416_queuecommand
(
Scsi_Cmnd
*
,
void
(
*
done
)(
Scsi_Cmnd
*
));
static
int
sym53c416_abort
(
Scsi_Cmnd
*
);
static
int
sym53c416_reset
(
Scsi_Cmnd
*
,
unsigned
int
);
static
int
sym53c416_host_reset
(
Scsi_Cmnd
*
);
static
int
sym53c416_bus_reset
(
Scsi_Cmnd
*
);
static
int
sym53c416_device_reset
(
Scsi_Cmnd
*
);
static
int
sym53c416_bios_param
(
Disk
*
,
struct
block_device
*
,
int
*
);
static
void
sym53c416_setup
(
char
*
str
,
int
*
ints
);
#define SYM53C416 { \
proc_name: "sym53c416", \
name: "Symbios Logic 53c416", \
detect: sym53c416_detect, \
info: sym53c416_info, \
command: sym53c416_command, \
queuecommand: sym53c416_queuecommand, \
abort: sym53c416_abort, \
reset: sym53c416_reset, \
bios_param: sym53c416_bios_param, \
can_queue: 1, \
this_id: SYM53C416_SCSI_ID, \
sg_tablesize: 32, \
cmd_per_lun: 1, \
unchecked_isa_dma: 1, \
use_clustering: ENABLE_CLUSTERING \
}
#define SYM53C416 { \
.proc_name = "sym53c416", \
.name = "Symbios Logic 53c416", \
.detect = sym53c416_detect, \
.info = sym53c416_info, \
.command = sym53c416_command, \
.queuecommand = sym53c416_queuecommand, \
.eh_abort_handler = sym53c416_abort, \
.eh_host_reset_handler =sym53c416_host_reset, \
.eh_bus_reset_handler = sym53c416_bus_reset, \
.eh_device_reset_handler =sym53c416_device_reset,\
.release = sym53c416_release, \
.bios_param = sym53c416_bios_param, \
.can_queue = 1, \
.this_id = SYM53C416_SCSI_ID, \
.sg_tablesize = 32, \
.cmd_per_lun = 1, \
.unchecked_isa_dma = 1, \
.use_clustering = ENABLE_CLUSTERING \
}
#endif
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