bus_numa.h 665 B

123456789101112131415161718192021222324252627
  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. struct pci_root_info {
  12. struct list_head list;
  13. char name[12];
  14. struct list_head resources;
  15. struct resource busn;
  16. int node;
  17. int link;
  18. };
  19. extern struct list_head pci_root_infos;
  20. struct pci_root_info *alloc_pci_root_info(int bus_min, int bus_max,
  21. int node, int link);
  22. extern void update_res(struct pci_root_info *info, resource_size_t start,
  23. resource_size_t end, unsigned long flags, int merge);
  24. #endif