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
c3f5edfe
Commit
c3f5edfe
authored
Oct 07, 2002
by
Dave Jones
Committed by
Linus Torvalds
Oct 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] IRQ router updates.
Several new boards, and fix a forward reference by moving a function around.
parent
6e469c37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
36 deletions
+43
-36
arch/i386/pci/irq.c
arch/i386/pci/irq.c
+43
-36
No files found.
arch/i386/pci/irq.c
View file @
c3f5edfe
...
@@ -472,6 +472,8 @@ static struct irq_router pirq_routers[] = {
...
@@ -472,6 +472,8 @@ static struct irq_router pirq_routers[] = {
{
"PIIX"
,
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801BA_10
,
pirq_piix_get
,
pirq_piix_set
},
{
"PIIX"
,
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801BA_10
,
pirq_piix_get
,
pirq_piix_set
},
{
"PIIX"
,
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801CA_0
,
pirq_piix_get
,
pirq_piix_set
},
{
"PIIX"
,
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801CA_0
,
pirq_piix_get
,
pirq_piix_set
},
{
"PIIX"
,
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801CA_12
,
pirq_piix_get
,
pirq_piix_set
},
{
"PIIX"
,
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801CA_12
,
pirq_piix_get
,
pirq_piix_set
},
{
"PIIX"
,
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801DB_0
,
pirq_piix_get
,
pirq_piix_set
},
{
"PIIX"
,
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801E_0
,
pirq_piix_get
,
pirq_piix_set
},
{
"ALI"
,
PCI_VENDOR_ID_AL
,
PCI_DEVICE_ID_AL_M1533
,
pirq_ali_get
,
pirq_ali_set
},
{
"ALI"
,
PCI_VENDOR_ID_AL
,
PCI_DEVICE_ID_AL_M1533
,
pirq_ali_get
,
pirq_ali_set
},
...
@@ -492,6 +494,10 @@ static struct irq_router pirq_routers[] = {
...
@@ -492,6 +494,10 @@ static struct irq_router pirq_routers[] = {
pirq_serverworks_get
,
pirq_serverworks_set
},
pirq_serverworks_get
,
pirq_serverworks_set
},
{
"AMD756 VIPER"
,
PCI_VENDOR_ID_AMD
,
PCI_DEVICE_ID_AMD_VIPER_740B
,
{
"AMD756 VIPER"
,
PCI_VENDOR_ID_AMD
,
PCI_DEVICE_ID_AMD_VIPER_740B
,
pirq_amd756_get
,
pirq_amd756_set
},
pirq_amd756_get
,
pirq_amd756_set
},
{
"AMD766"
,
PCI_VENDOR_ID_AMD
,
PCI_DEVICE_ID_AMD_VIPER_7413
,
pirq_amd756_get
,
pirq_amd756_set
},
{
"AMD768"
,
PCI_VENDOR_ID_AMD
,
PCI_DEVICE_ID_AMD_OPUS_7443
,
pirq_amd756_get
,
pirq_amd756_set
},
{
"default"
,
0
,
0
,
NULL
,
NULL
}
{
"default"
,
0
,
0
,
NULL
,
NULL
}
};
};
...
@@ -684,42 +690,7 @@ static int pcibios_lookup_irq(struct pci_dev *dev, int assign)
...
@@ -684,42 +690,7 @@ static int pcibios_lookup_irq(struct pci_dev *dev, int assign)
return
1
;
return
1
;
}
}
static
int
__init
pcibios_irq_init
(
void
)
static
void
__init
pcibios_fixup_irqs
(
void
)
{
DBG
(
"PCI: IRQ init
\n
"
);
if
(
pcibios_enable_irq
)
return
0
;
pirq_table
=
pirq_find_routing_table
();
#ifdef CONFIG_PCI_BIOS
if
(
!
pirq_table
&&
(
pci_probe
&
PCI_BIOS_IRQ_SCAN
))
pirq_table
=
pcibios_get_irq_routing_table
();
#endif
if
(
pirq_table
)
{
pirq_peer_trick
();
pirq_find_router
();
if
(
pirq_table
->
exclusive_irqs
)
{
int
i
;
for
(
i
=
0
;
i
<
16
;
i
++
)
if
(
!
(
pirq_table
->
exclusive_irqs
&
(
1
<<
i
)))
pirq_penalty
[
i
]
+=
100
;
}
/* If we're using the I/O APIC, avoid using the PCI IRQ routing table */
if
(
io_apic_assign_pci_irqs
)
pirq_table
=
NULL
;
}
pcibios_enable_irq
=
pirq_enable_irq
;
pcibios_fixup_irqs
();
return
0
;
}
subsys_initcall
(
pcibios_irq_init
);
void
__init
pcibios_fixup_irqs
(
void
)
{
{
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
;
u8
pin
;
u8
pin
;
...
@@ -785,6 +756,42 @@ void __init pcibios_fixup_irqs(void)
...
@@ -785,6 +756,42 @@ void __init pcibios_fixup_irqs(void)
}
}
}
}
static
int
__init
pcibios_irq_init
(
void
)
{
DBG
(
"PCI: IRQ init
\n
"
);
if
(
pcibios_enable_irq
)
return
0
;
pirq_table
=
pirq_find_routing_table
();
#ifdef CONFIG_PCI_BIOS
if
(
!
pirq_table
&&
(
pci_probe
&
PCI_BIOS_IRQ_SCAN
))
pirq_table
=
pcibios_get_irq_routing_table
();
#endif
if
(
pirq_table
)
{
pirq_peer_trick
();
pirq_find_router
();
if
(
pirq_table
->
exclusive_irqs
)
{
int
i
;
for
(
i
=
0
;
i
<
16
;
i
++
)
if
(
!
(
pirq_table
->
exclusive_irqs
&
(
1
<<
i
)))
pirq_penalty
[
i
]
+=
100
;
}
/* If we're using the I/O APIC, avoid using the PCI IRQ routing table */
if
(
io_apic_assign_pci_irqs
)
pirq_table
=
NULL
;
}
pcibios_enable_irq
=
pirq_enable_irq
;
pcibios_fixup_irqs
();
return
0
;
}
subsys_initcall
(
pcibios_irq_init
);
void
pcibios_penalize_isa_irq
(
int
irq
)
void
pcibios_penalize_isa_irq
(
int
irq
)
{
{
/*
/*
...
...
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