bus_numa.h 704 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __BUS_NUMA_H
  3. #define __BUS_NUMA_H
  4. /*
  5. * sub bus (transparent) will use entres from 3 to store extra from
  6. * root, so need to make sure we have enough slot there.
  7. */
  8. struct pci_root_res {
  9. struct list_head list;
  10. struct resource res;
  11. };
  12. struct pci_root_info {
  13. struct list_head list;
  14. char name[12];
  15. struct list_head resources;
  16. struct resource busn;
  17. int node;
  18. int link;
  19. };
  20. extern struct list_head pci_root_infos;
  21. struct pci_root_info *alloc_pci_root_info(int bus_min, int bus_max,
  22. int node, int link);
  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