Commit | Line | Data |
---|---|---|
284f933d YL |
1 | #ifndef __BUS_NUMA_H |
2 | #define __BUS_NUMA_H | |
99935a7a YL |
3 | /* |
4 | * sub bus (transparent) will use entres from 3 to store extra from | |
2fe2abf8 | 5 | * root, so need to make sure we have enough slot there. |
99935a7a | 6 | */ |
d28e5ac2 YL |
7 | struct pci_root_res { |
8 | struct list_head list; | |
9 | struct resource res; | |
10 | }; | |
11 | ||
99935a7a | 12 | struct pci_root_info { |
d28e5ac2 | 13 | struct list_head list; |
99935a7a | 14 | char name[12]; |
d28e5ac2 | 15 | struct list_head resources; |
a10bb128 | 16 | struct resource busn; |
99935a7a YL |
17 | int node; |
18 | int link; | |
19 | }; | |
20 | ||
d28e5ac2 YL |
21 | extern struct list_head pci_root_infos; |
22 | struct pci_root_info *alloc_pci_root_info(int bus_min, int bus_max, | |
23 | int node, int link); | |
b74fd238 YL |
24 | extern void update_res(struct pci_root_info *info, resource_size_t start, |
25 | resource_size_t end, unsigned long flags, int merge); | |
99935a7a | 26 | #endif |