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
4257def7
Commit
4257def7
authored
Jun 10, 2003
by
Andy Grover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: Implement PCI Domain support (Matthew Wilcox)
parent
01f38644
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
drivers/acpi/acpi_ksyms.c
drivers/acpi/acpi_ksyms.c
+0
-2
drivers/acpi/pci_irq.c
drivers/acpi/pci_irq.c
+9
-10
No files found.
drivers/acpi/acpi_ksyms.c
View file @
4257def7
...
...
@@ -144,8 +144,6 @@ EXPORT_SYMBOL(acpi_bus_unregister_driver);
#include <linux/pci.h>
extern
int
acpi_pci_irq_enable
(
struct
pci_dev
*
dev
);
EXPORT_SYMBOL
(
acpi_pci_irq_enable
);
extern
int
acpi_pci_irq_lookup
(
int
segment
,
int
bus
,
int
device
,
int
pin
);
EXPORT_SYMBOL
(
acpi_pci_irq_lookup
);
EXPORT_SYMBOL
(
acpi_pci_register_driver
);
EXPORT_SYMBOL
(
acpi_pci_unregister_driver
);
#endif
/*CONFIG_ACPI_PCI */
...
...
drivers/acpi/pci_irq.c
View file @
4257def7
...
...
@@ -229,22 +229,20 @@ acpi_pci_irq_add_prt (
PCI Interrupt Routing Support
-------------------------------------------------------------------------- */
int
acpi_pci_irq_lookup
(
int
segment
,
int
bus
,
int
device
,
int
pin
)
static
int
acpi_pci_irq_lookup
(
struct
pci_bus
*
bus
,
int
device
,
int
pin
)
{
struct
acpi_prt_entry
*
entry
=
NULL
;
int
segment
=
pci_domain_nr
(
bus
);
int
bus_nr
=
bus
->
number
;
ACPI_FUNCTION_TRACE
(
"acpi_pci_irq_lookup"
);
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"Searching for PRT entry for %02x:%02x:%02x[%c]
\n
"
,
segment
,
bus
,
device
,
(
'A'
+
pin
)));
segment
,
bus
_nr
,
device
,
(
'A'
+
pin
)));
entry
=
acpi_pci_irq_find_prt_entry
(
segment
,
bus
,
device
,
pin
);
entry
=
acpi_pci_irq_find_prt_entry
(
segment
,
bus
_nr
,
device
,
pin
);
if
(
!
entry
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"PRT entry not found
\n
"
));
return_VALUE
(
0
);
...
...
@@ -288,7 +286,8 @@ acpi_pci_irq_derive (
while
(
!
irq
&&
bridge
->
bus
->
self
)
{
pin
=
(
pin
+
PCI_SLOT
(
bridge
->
devfn
))
%
4
;
bridge
=
bridge
->
bus
->
self
;
irq
=
acpi_pci_irq_lookup
(
0
,
bridge
->
bus
->
number
,
PCI_SLOT
(
bridge
->
devfn
),
pin
);
irq
=
acpi_pci_irq_lookup
(
bridge
->
bus
,
PCI_SLOT
(
bridge
->
devfn
),
pin
);
}
if
(
!
irq
)
{
...
...
@@ -331,7 +330,7 @@ acpi_pci_irq_enable (
* First we check the PCI IRQ routing table (PRT) for an IRQ. PRT
* values override any BIOS-assigned IRQs set during boot.
*/
irq
=
acpi_pci_irq_lookup
(
0
,
dev
->
bus
->
number
,
PCI_SLOT
(
dev
->
devfn
),
pin
);
irq
=
acpi_pci_irq_lookup
(
dev
->
bus
,
PCI_SLOT
(
dev
->
devfn
),
pin
);
/*
* If no PRT entry was found, we'll try to derive an IRQ from the
...
...
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