diff options
Diffstat (limited to 'include/asm-x86/pci_64.h')
-rw-r--r-- | include/asm-x86/pci_64.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-x86/pci_64.h b/include/asm-x86/pci_64.h index 5da8cb0c0599..0a123d6a820f 100644 --- a/include/asm-x86/pci_64.h +++ b/include/asm-x86/pci_64.h | |||
@@ -6,12 +6,24 @@ | |||
6 | #ifdef __KERNEL__ | 6 | #ifdef __KERNEL__ |
7 | 7 | ||
8 | struct pci_sysdata { | 8 | struct pci_sysdata { |
9 | int domain; /* PCI domain */ | ||
9 | int node; /* NUMA node */ | 10 | int node; /* NUMA node */ |
10 | void* iommu; /* IOMMU private data */ | 11 | void* iommu; /* IOMMU private data */ |
11 | }; | 12 | }; |
12 | 13 | ||
13 | extern struct pci_bus *pci_scan_bus_with_sysdata(int busno); | 14 | extern struct pci_bus *pci_scan_bus_with_sysdata(int busno); |
14 | 15 | ||
16 | static inline int pci_domain_nr(struct pci_bus *bus) | ||
17 | { | ||
18 | struct pci_sysdata *sd = bus->sysdata; | ||
19 | return sd->domain; | ||
20 | } | ||
21 | |||
22 | static inline int pci_proc_domain(struct pci_bus *bus) | ||
23 | { | ||
24 | return pci_domain_nr(bus); | ||
25 | } | ||
26 | |||
15 | #ifdef CONFIG_CALGARY_IOMMU | 27 | #ifdef CONFIG_CALGARY_IOMMU |
16 | static inline void* pci_iommu(struct pci_bus *bus) | 28 | static inline void* pci_iommu(struct pci_bus *bus) |
17 | { | 29 | { |