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
479e37f8
Commit
479e37f8
authored
Jun 03, 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/i386/pci/irq.c
parent
0b29fac8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
arch/i386/pci/irq.c
arch/i386/pci/irq.c
+6
-5
No files found.
arch/i386/pci/irq.c
View file @
479e37f8
...
...
@@ -573,7 +573,7 @@ static int pcibios_lookup_irq(struct pci_dev *dev, int assign)
int
irq
=
0
;
u32
mask
;
struct
irq_router
*
r
=
pirq_router
;
struct
pci_dev
*
dev2
;
struct
pci_dev
*
dev2
=
NULL
;
char
*
msg
=
NULL
;
/* Find IRQ pin */
...
...
@@ -665,7 +665,7 @@ static int pcibios_lookup_irq(struct pci_dev *dev, int assign)
printk
(
KERN_INFO
"PCI: %s IRQ %d for device %s
\n
"
,
msg
,
irq
,
dev
->
slot_name
);
/* Update IRQ for all devices with the same pirq value */
pci_for_each_dev
(
dev2
)
{
while
((
dev2
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
dev2
))
!=
NULL
)
{
pci_read_config_byte
(
dev2
,
PCI_INTERRUPT_PIN
,
&
pin
);
if
(
!
pin
)
continue
;
...
...
@@ -693,11 +693,11 @@ static int pcibios_lookup_irq(struct pci_dev *dev, int assign)
static
void
__init
pcibios_fixup_irqs
(
void
)
{
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
=
NULL
;
u8
pin
;
DBG
(
"PCI: IRQ fixup
\n
"
);
pci_for_each_dev
(
dev
)
{
while
((
dev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
dev
))
!=
NULL
)
{
/*
* If the BIOS has set an out of range IRQ number, just ignore it.
* Also keep track of which IRQ's are already in use.
...
...
@@ -712,7 +712,8 @@ static void __init pcibios_fixup_irqs(void)
pirq_penalty
[
dev
->
irq
]
++
;
}
pci_for_each_dev
(
dev
)
{
dev
=
NULL
;
while
((
dev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
dev
))
!=
NULL
)
{
pci_read_config_byte
(
dev
,
PCI_INTERRUPT_PIN
,
&
pin
);
#ifdef CONFIG_X86_IO_APIC
/*
...
...
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