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
fd21bcd7
Commit
fd21bcd7
authored
Jun 21, 2004
by
Christoph Hellwig
Committed by
James Bottomley
Jun 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] avoid obsolete APIs in fdomain
Signed-off-by:
James Bottomley
<
James.Bottomley@SteelEye.com
>
parent
c70f6d91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
26 deletions
+16
-26
drivers/scsi/fdomain.c
drivers/scsi/fdomain.c
+16
-26
No files found.
drivers/scsi/fdomain.c
View file @
fd21bcd7
...
...
@@ -283,8 +283,11 @@
#include <asm/io.h>
#include <asm/system.h>
#include "scsi.h"
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_ioctl.h>
MODULE_AUTHOR
(
"Rickard E. Faith"
);
MODULE_DESCRIPTION
(
"Future domain SCSI driver"
);
...
...
@@ -385,7 +388,7 @@ static int PCI_bus;
static
int
Quantum
;
/* Quantum board variant */
static
int
interrupt_level
;
static
volatile
int
in_command
;
static
Scsi_Cmnd
*
current_SC
;
static
struct
scsi_cmnd
*
current_SC
;
static
enum
chip_type
chip
=
unknown
;
static
int
adapter_mask
;
static
int
this_id
;
...
...
@@ -414,7 +417,7 @@ static int FIFO_Size = 0x2000; /* 8k FIFO for
static
irqreturn_t
do_fdomain_16x0_intr
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
int
fdomain_16x0_bus_reset
(
Scsi_C
mnd
*
SCpnt
);
static
int
fdomain_16x0_bus_reset
(
struct
scsi_c
mnd
*
SCpnt
);
/* Allow insmod parameters to be like LILO parameters. For example:
insmod fdomain fdomain=0x140,11 */
...
...
@@ -551,7 +554,7 @@ static void print_banner( struct Scsi_Host *shpnt )
printk
(
"
\n
"
);
}
int
__init
fdomain_setup
(
char
*
str
)
static
int
__init
fdomain_setup
(
char
*
str
)
{
int
ints
[
4
];
...
...
@@ -852,7 +855,7 @@ static int fdomain_pci_bios_detect( int *irq, int *iobase, struct pci_dev **ret_
}
#endif
struct
Scsi_Host
*
__fdomain_16x0_detect
(
Scsi_Host_T
emplate
*
tpnt
)
struct
Scsi_Host
*
__fdomain_16x0_detect
(
struct
scsi_host_t
emplate
*
tpnt
)
{
int
retcode
;
struct
Scsi_Host
*
shpnt
;
...
...
@@ -970,7 +973,7 @@ struct Scsi_Host *__fdomain_16x0_detect( Scsi_Host_Template *tpnt )
return
shpnt
;
}
static
int
fdomain_16x0_detect
(
Scsi_Host_Template
*
tpnt
)
static
int
fdomain_16x0_detect
(
struct
scsi_host_template
*
tpnt
)
{
if
(
fdomain
)
fdomain_setup
(
fdomain
);
...
...
@@ -1254,7 +1257,7 @@ static irqreturn_t do_fdomain_16x0_intr(int irq, void *dev_id,
if
(
chip
==
tmc1800
&&
!
current_SC
->
SCp
.
have_data_in
&&
(
current_SC
->
SCp
.
sent_command
>=
current_SC
->
cmd_len
))
{
if
(
scsi_to_pci_dma_dir
(
current_SC
->
sc_data_direction
)
==
PCI_DMA_TO
DEVICE
)
if
(
current_SC
->
sc_data_direction
==
DMA_TO_
DEVICE
)
{
current_SC
->
SCp
.
have_data_in
=
-
1
;
outb
(
0xd0
|
PARITY_MASK
,
TMC_Cntl_port
);
...
...
@@ -1387,7 +1390,8 @@ static irqreturn_t do_fdomain_16x0_intr(int irq, void *dev_id,
return
IRQ_HANDLED
;
}
static
int
fdomain_16x0_queue
(
Scsi_Cmnd
*
SCpnt
,
void
(
*
done
)(
Scsi_Cmnd
*
))
static
int
fdomain_16x0_queue
(
struct
scsi_cmnd
*
SCpnt
,
void
(
*
done
)(
struct
scsi_cmnd
*
))
{
if
(
in_command
)
{
panic
(
"scsi: <fdomain> fdomain_16x0_queue() NOT REENTRANT!
\n
"
);
...
...
@@ -1439,7 +1443,7 @@ static int fdomain_16x0_queue( Scsi_Cmnd * SCpnt, void (*done)(Scsi_Cmnd *))
}
#if DEBUG_ABORT
static
void
print_info
(
Scsi_C
mnd
*
SCpnt
)
static
void
print_info
(
struct
scsi_c
mnd
*
SCpnt
)
{
unsigned
int
imr
;
unsigned
int
irr
;
...
...
@@ -1510,7 +1514,7 @@ static void print_info(Scsi_Cmnd *SCpnt)
}
#endif
static
int
fdomain_16x0_abort
(
Scsi_C
mnd
*
SCpnt
)
static
int
fdomain_16x0_abort
(
struct
scsi_c
mnd
*
SCpnt
)
{
#if EVERY_ACCESS || ERRORS_ONLY || DEBUG_ABORT
printk
(
"scsi: <fdomain> abort "
);
...
...
@@ -1536,7 +1540,7 @@ static int fdomain_16x0_abort( Scsi_Cmnd *SCpnt)
return
SUCCESS
;
}
int
fdomain_16x0_bus_reset
(
Scsi_C
mnd
*
SCpnt
)
static
int
fdomain_16x0_bus_reset
(
struct
scsi_c
mnd
*
SCpnt
)
{
outb
(
1
,
SCSI_Cntl_port
);
do_pause
(
2
);
...
...
@@ -1547,18 +1551,6 @@ int fdomain_16x0_bus_reset(Scsi_Cmnd *SCpnt)
return
SUCCESS
;
}
static
int
fdomain_16x0_host_reset
(
Scsi_Cmnd
*
SCpnt
)
{
return
FAILED
;
}
static
int
fdomain_16x0_device_reset
(
Scsi_Cmnd
*
SCpnt
)
{
return
FAILED
;
}
#include <scsi/scsi_ioctl.h>
static
int
fdomain_16x0_biosparam
(
struct
scsi_device
*
sdev
,
struct
block_device
*
bdev
,
sector_t
capacity
,
int
*
info_array
)
...
...
@@ -1732,7 +1724,7 @@ static int fdomain_16x0_release(struct Scsi_Host *shpnt)
return
0
;
}
Scsi_Host_T
emplate
fdomain_driver_template
=
{
struct
scsi_host_t
emplate
fdomain_driver_template
=
{
.
module
=
THIS_MODULE
,
.
name
=
"fdomain"
,
.
proc_name
=
"fdomain"
,
...
...
@@ -1741,8 +1733,6 @@ Scsi_Host_Template fdomain_driver_template = {
.
queuecommand
=
fdomain_16x0_queue
,
.
eh_abort_handler
=
fdomain_16x0_abort
,
.
eh_bus_reset_handler
=
fdomain_16x0_bus_reset
,
.
eh_device_reset_handler
=
fdomain_16x0_device_reset
,
.
eh_host_reset_handler
=
fdomain_16x0_host_reset
,
.
bios_param
=
fdomain_16x0_biosparam
,
.
release
=
fdomain_16x0_release
,
.
can_queue
=
1
,
...
...
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