Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __BUS_NUMA_H
0003 #define __BUS_NUMA_H
0004 /*
0005  * sub bus (transparent) will use entres from 3 to store extra from
0006  * root, so need to make sure we have enough slot there.
0007  */
0008 struct pci_root_res {
0009     struct list_head list;
0010     struct resource res;
0011 };
0012 
0013 struct pci_root_info {
0014     struct list_head list;
0015     char name[12];
0016     struct list_head resources;
0017     struct resource busn;
0018     int node;
0019     int link;
0020 };
0021 
0022 extern struct list_head pci_root_infos;
0023 struct pci_root_info *alloc_pci_root_info(int bus_min, int bus_max,
0024                         int node, int link);
0025 extern void update_res(struct pci_root_info *info, resource_size_t start,
0026               resource_size_t end, unsigned long flags, int merge);
0027 #endif