xref: /linux/arch/x86/pci/bus_numa.h (revision 26b0d14106954ae46d2f4f7eec3481828a210f7d)
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 struct pci_root_res {
8 	struct list_head list;
9 	struct resource res;
10 };
11 
12 struct pci_root_info {
13 	struct list_head list;
14 	char name[12];
15 	struct list_head resources;
16 	int bus_min;
17 	int bus_max;
18 	int node;
19 	int link;
20 };
21 
22 extern struct list_head pci_root_infos;
23 struct pci_root_info *alloc_pci_root_info(int bus_min, int bus_max,
24 						int node, int link);
25 extern void update_res(struct pci_root_info *info, resource_size_t start,
26 		      resource_size_t end, unsigned long flags, int merge);
27 #endif
28