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
Kirill Smelkov
linux
Commits
948c08f9
Commit
948c08f9
authored
Jun 04, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: remove usage of pci_for_each_dev() in arch/mips64/sgi-ip32/ip32-pci.c
parent
8c2a1069
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
arch/mips64/sgi-ip32/ip32-pci.c
arch/mips64/sgi-ip32/ip32-pci.c
+6
-4
No files found.
arch/mips64/sgi-ip32/ip32-pci.c
View file @
948c08f9
...
...
@@ -125,7 +125,7 @@ struct pci_fixup pcibios_fixups[] = { { 0 } };
void
__init
pcibios_init
(
void
)
{
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
=
NULL
;
u32
start
,
size
;
u16
cmd
;
u32
base_io
=
0x3000
;
/* The first i/o address to assign after SCSI */
...
...
@@ -157,7 +157,7 @@ void __init pcibios_init (void)
pci_scan_bus
(
0
,
&
macepci_ops
,
NULL
);
#ifdef DEBUG_MACE_PCI
pci_for_each_dev
(
dev
)
{
while
((
dev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
dev
))
!=
NULL
)
{
printk
(
"Device: %d/%d/%d ARCS-assigned bus resource map
\n
"
,
dev
->
bus
->
number
,
PCI_SLOT
(
dev
->
devfn
),
PCI_FUNC
(
dev
->
devfn
));
...
...
@@ -176,7 +176,8 @@ void __init pcibios_init (void)
* which we must assign, and a 1-page memory region which is
* assigned by the system firmware.
*/
pci_for_each_dev
(
dev
)
{
dev
=
NULL
;
while
((
dev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
dev
))
!=
NULL
)
{
switch
(
PCI_SLOT
(
dev
->
devfn
))
{
case
1
:
/* SCSI bus 0 */
dev
->
resource
[
0
].
start
=
0x1000UL
;
...
...
@@ -230,7 +231,8 @@ void __init pcibios_init (void)
printk
(
"Triggering PCI bridge interrupt...
\n
"
);
mace_write_32
(
MACEPCI_ERROR_FLAGS
,
MACEPCI_ERROR_INTERRUPT_TEST
);
pci_for_each_dev
(
dev
)
{
dev
=
NULL
;
while
((
dev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
dev
))
!=
NULL
)
{
printk
(
"Device: %d/%d/%d final bus resource map
\n
"
,
dev
->
bus
->
number
,
PCI_SLOT
(
dev
->
devfn
),
PCI_FUNC
(
dev
->
devfn
));
...
...
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