H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_K8_H |
| 2 | #define _ASM_X86_K8_H |
Andi Kleen | a32073b | 2006-06-26 13:56:40 +0200 | [diff] [blame] | 3 | |
| 4 | #include <linux/pci.h> |
| 5 | |
| 6 | extern struct pci_device_id k8_nb_ids[]; |
Randy Dunlap | 0420101 | 2009-10-28 16:09:55 -0700 | [diff] [blame] | 7 | struct bootnode; |
Andi Kleen | a32073b | 2006-06-26 13:56:40 +0200 | [diff] [blame] | 8 | |
| 9 | extern int early_is_k8_nb(u32 value); |
| 10 | extern struct pci_dev **k8_northbridges; |
| 11 | extern int num_k8_northbridges; |
| 12 | extern int cache_k8_northbridges(void); |
| 13 | extern void k8_flush_garts(void); |
David Rientjes | 8ee2deb | 2009-09-25 15:20:00 -0700 | [diff] [blame] | 14 | extern int k8_get_nodes(struct bootnode *nodes); |
| 15 | extern int k8_numa_init(unsigned long start_pfn, unsigned long end_pfn); |
| 16 | extern int k8_scan_nodes(void); |
Andi Kleen | a32073b | 2006-06-26 13:56:40 +0200 | [diff] [blame] | 17 | |
Andreas Herrmann | afd9fce | 2009-04-09 15:16:17 +0200 | [diff] [blame] | 18 | #ifdef CONFIG_K8_NB |
Borislav Petkov | ade029e | 2010-04-24 09:56:53 +0200 | [diff] [blame] | 19 | extern int num_k8_northbridges; |
| 20 | |
Jaswinder Singh Rajput | b206525 | 2009-04-14 23:04:37 +0530 | [diff] [blame] | 21 | static inline struct pci_dev *node_to_k8_nb_misc(int node) |
| 22 | { |
| 23 | return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL; |
| 24 | } |
Borislav Petkov | ade029e | 2010-04-24 09:56:53 +0200 | [diff] [blame] | 25 | |
Andreas Herrmann | afd9fce | 2009-04-09 15:16:17 +0200 | [diff] [blame] | 26 | #else |
Borislav Petkov | ade029e | 2010-04-24 09:56:53 +0200 | [diff] [blame] | 27 | #define num_k8_northbridges 0 |
| 28 | |
Jaswinder Singh Rajput | b206525 | 2009-04-14 23:04:37 +0530 | [diff] [blame] | 29 | static inline struct pci_dev *node_to_k8_nb_misc(int node) |
| 30 | { |
| 31 | return NULL; |
| 32 | } |
Andreas Herrmann | afd9fce | 2009-04-09 15:16:17 +0200 | [diff] [blame] | 33 | #endif |
| 34 | |
| 35 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 36 | #endif /* _ASM_X86_K8_H */ |