bus_numa.h 670 B

123456789101112131415161718192021222324252627
  1. #ifdef CONFIG_X86_64
  2. /*
  3. * sub bus (transparent) will use entres from 3 to store extra from
  4. * root, so need to make sure we have enough slot there, Should we
  5. * increase PCI_BUS_NUM_RESOURCES?
  6. */
  7. #define RES_NUM 16
  8. struct pci_root_info {
  9. char name[12];
  10. unsigned int res_num;
  11. struct resource res[RES_NUM];
  12. int bus_min;
  13. int bus_max;
  14. int node;
  15. int link;
  16. };
  17. /* 4 at this time, it may become to 32 */
  18. #define PCI_ROOT_NR 4
  19. extern int pci_root_num;
  20. extern struct pci_root_info pci_root_info[PCI_ROOT_NR];
  21. extern int found_all_numa_early;
  22. extern void update_res(struct pci_root_info *info, size_t start,
  23. size_t end, unsigned long flags, int merge);
  24. #endif