diff options
Diffstat (limited to 'arch/x86/pci/bus_numa.h')
-rw-r--r-- | arch/x86/pci/bus_numa.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/x86/pci/bus_numa.h b/arch/x86/pci/bus_numa.h new file mode 100644 index 000000000000..804a4b40c31a --- /dev/null +++ b/arch/x86/pci/bus_numa.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef __BUS_NUMA_H | ||
2 | #define __BUS_NUMA_H | ||
3 | /* | ||
4 | * sub bus (transparent) will use entres from 3 to store extra from | ||
5 | * root, so need to make sure we have enough slot there. | ||
6 | */ | ||
7 | #define RES_NUM 16 | ||
8 | struct pci_root_info { | ||
9 | char name[12]; | ||
10 | unsigned int res_num; | ||
11 | struct resource res[RES_NUM]; | ||
12 | int bus_min; | ||
13 | int bus_max; | ||
14 | int node; | ||
15 | int link; | ||
16 | }; | ||
17 | |||
18 | /* 4 at this time, it may become to 32 */ | ||
19 | #define PCI_ROOT_NR 4 | ||
20 | extern int pci_root_num; | ||
21 | extern struct pci_root_info pci_root_info[PCI_ROOT_NR]; | ||
22 | |||
23 | extern void update_res(struct pci_root_info *info, resource_size_t start, | ||
24 | resource_size_t end, unsigned long flags, int merge); | ||
25 | #endif | ||