k8.h 739 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _ASM_X86_K8_H
  2. #define _ASM_X86_K8_H
  3. #include <linux/pci.h>
  4. extern struct pci_device_id k8_nb_ids[];
  5. struct bootnode;
  6. extern int early_is_k8_nb(u32 value);
  7. extern struct pci_dev **k8_northbridges;
  8. extern int num_k8_northbridges;
  9. extern int cache_k8_northbridges(void);
  10. extern void k8_flush_garts(void);
  11. extern int k8_get_nodes(struct bootnode *nodes);
  12. extern int k8_numa_init(unsigned long start_pfn, unsigned long end_pfn);
  13. extern int k8_scan_nodes(void);
  14. #ifdef CONFIG_K8_NB
  15. static inline struct pci_dev *node_to_k8_nb_misc(int node)
  16. {
  17. return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL;
  18. }
  19. #else
  20. static inline struct pci_dev *node_to_k8_nb_misc(int node)
  21. {
  22. return NULL;
  23. }
  24. #endif
  25. #endif /* _ASM_X86_K8_H */