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
7053dfab
Commit
7053dfab
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] move 53c7,8xx to pci_ not pcibios
parent
f8c4e50d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
drivers/scsi/53c7,8xx.c
drivers/scsi/53c7,8xx.c
+5
-9
drivers/scsi/53c7,8xx.h
drivers/scsi/53c7,8xx.h
+2
-2
No files found.
drivers/scsi/53c7,8xx.c
View file @
7053dfab
...
...
@@ -1153,7 +1153,6 @@ NCR53c7x0_init (struct Scsi_Host *host) {
/*
* Function : static int normal_init(Scsi_Host_Template *tpnt, int board,
* int chip, u32 base, int io_port, int irq, int dma, int pcivalid,
* unsigned char pci_bus, unsigned char pci_device_fn,
* struct pci_dev *pci_dev, long long options);
*
* Purpose : initializes a NCR53c7,8x0 based on base addresses,
...
...
@@ -1161,7 +1160,7 @@ NCR53c7x0_init (struct Scsi_Host *host) {
*
* Useful where a new NCR chip is backwards compatible with
* a supported chip, but the DEVICE ID has changed so it
* doesn't show up when the autoprobe does a pci
bios
_find_device.
* doesn't show up when the autoprobe does a pci_find_device.
*
* Inputs : tpnt - Template for this SCSI adapter, board - board level
* product, chip - 810, 820, or 825, bus - PCI bus, device_fn -
...
...
@@ -1174,7 +1173,6 @@ NCR53c7x0_init (struct Scsi_Host *host) {
static
int
__init
normal_init
(
Scsi_Host_Template
*
tpnt
,
int
board
,
int
chip
,
u32
base
,
int
io_port
,
int
irq
,
int
dma
,
int
pci_valid
,
unsigned
char
pci_bus
,
unsigned
char
pci_device_fn
,
struct
pci_dev
*
pci_dev
,
long
long
options
)
{
struct
Scsi_Host
*
instance
;
...
...
@@ -1275,8 +1273,7 @@ normal_init (Scsi_Host_Template *tpnt, int board, int chip,
hostdata
->
board
=
board
;
hostdata
->
chip
=
chip
;
if
((
hostdata
->
pci_valid
=
pci_valid
))
{
hostdata
->
pci_bus
=
pci_bus
;
hostdata
->
pci_device_fn
=
pci_device_fn
;
hostdata
->
pci_dev
=
pci_dev
;
}
/*
...
...
@@ -1377,7 +1374,7 @@ normal_init (Scsi_Host_Template *tpnt, int board, int chip,
*
* Useful where a new NCR chip is backwards compatible with
* a supported chip, but the DEVICE ID has changed so it
* doesn't show up when the autoprobe does a pci
bios
_find_device.
* doesn't show up when the autoprobe does a pci_find_device.
*
* Inputs : tpnt - Template for this SCSI adapter, board - board level
* product, chip - 810, 820, or 825, bus - PCI bus, device_fn -
...
...
@@ -1511,7 +1508,7 @@ ncr_pci_init (Scsi_Host_Template *tpnt, int board, int chip,
}
return
normal_init
(
tpnt
,
board
,
chip
,
(
int
)
base
,
io_port
,
(
int
)
irq
,
DMA_NONE
,
1
,
bus
,
device_fn
,
pdev
,
options
);
(
int
)
irq
,
DMA_NONE
,
1
,
pdev
,
options
);
}
...
...
@@ -5085,8 +5082,7 @@ intr_bf (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) {
if
((
hostdata
->
chip
/
100
)
==
8
)
{
save_flags
(
flags
);
cli
();
tmp
=
pcibios_read_config_word
(
hostdata
->
pci_bus
,
hostdata
->
pci_device_fn
,
PCI_STATUS
,
&
pci_status
);
tmp
=
pci_read_config_word
(
hostdata
->
pcidev
,
PCI_STATUS
,
&
pci_status
);
restore_flags
(
flags
);
if
(
tmp
==
PCIBIOS_SUCCESSFUL
)
{
if
(
pci_status
&
PCI_STATUS_REC_TARGET_ABORT
)
{
...
...
drivers/scsi/53c7,8xx.h
View file @
7053dfab
...
...
@@ -1159,12 +1159,12 @@ struct NCR53c7x0_hostdata {
700-66, rest are last three
digits of part number */
/*
* PCI
bus, device, function
, only for NCR53c8x0 chips.
* PCI
device
, only for NCR53c8x0 chips.
* pci_valid indicates that the PCI configuration information
* is valid, and we can twiddle MAX_LAT, etc. as recommended
* for maximum performance in the NCR documentation.
*/
unsigned
char
pci_bus
,
pci_device_fn
;
struct
pci_dev
*
pci_dev
;
unsigned
pci_valid
:
1
;
u32
*
dsp
;
/* dsp to restart with after
...
...
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