Yinghai Lu | 99935a7 | 2009-10-04 21:54:24 -0700 | [diff] [blame] | 1 | #ifdef CONFIG_X86_64 |
| 2 | |
| 3 | /* |
| 4 | * sub bus (transparent) will use entres from 3 to store extra from |
Bjorn Helgaas | 2fe2abf | 2010-02-23 10:24:36 -0700 | [diff] [blame^] | 5 | * root, so need to make sure we have enough slot there. |
Yinghai Lu | 99935a7 | 2009-10-04 21:54:24 -0700 | [diff] [blame] | 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]; |
Yinghai Lu | 67f241f | 2009-11-11 22:27:40 -0800 | [diff] [blame] | 22 | extern int found_all_numa_early; |
Yinghai Lu | 99935a7 | 2009-10-04 21:54:24 -0700 | [diff] [blame] | 23 | |
| 24 | extern void update_res(struct pci_root_info *info, size_t start, |
| 25 | size_t end, unsigned long flags, int merge); |
| 26 | #endif |