aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pci_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/pci_32.h')
-rw-r--r--include/asm-x86/pci_32.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-x86/pci_32.h b/include/asm-x86/pci_32.h
index 4fcacc711385..0d91605cd1e2 100644
--- a/include/asm-x86/pci_32.h
+++ b/include/asm-x86/pci_32.h
@@ -5,12 +5,24 @@
5#ifdef __KERNEL__ 5#ifdef __KERNEL__
6 6
7struct pci_sysdata { 7struct pci_sysdata {
8 int domain; /* PCI domain */
8 int node; /* NUMA node */ 9 int node; /* NUMA node */
9}; 10};
10 11
11/* scan a bus after allocating a pci_sysdata for it */ 12/* scan a bus after allocating a pci_sysdata for it */
12extern struct pci_bus *pci_scan_bus_with_sysdata(int busno); 13extern struct pci_bus *pci_scan_bus_with_sysdata(int busno);
13 14
15static inline int pci_domain_nr(struct pci_bus *bus)
16{
17 struct pci_sysdata *sd = bus->sysdata;
18 return sd->domain;
19}
20
21static inline int pci_proc_domain(struct pci_bus *bus)
22{
23 return pci_domain_nr(bus);
24}
25
14#include <linux/mm.h> /* for struct page */ 26#include <linux/mm.h> /* for struct page */
15 27
16/* Can be used to override the logic in pci_scan_bus for skipping 28/* Can be used to override the logic in pci_scan_bus for skipping