]>
Commit | Line | Data |
---|---|---|
1965aae3 PA |
1 | #ifndef _ASM_X86_K8_H |
2 | #define _ASM_X86_K8_H | |
a32073bf AK |
3 | |
4 | #include <linux/pci.h> | |
5 | ||
6 | extern struct pci_device_id k8_nb_ids[]; | |
0420101c | 7 | struct bootnode; |
a32073bf AK |
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); | |
8ee2debc DR |
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); | |
a32073bf | 17 | |
afd9fcee | 18 | #ifdef CONFIG_K8_NB |
ade029e2 BP |
19 | extern int num_k8_northbridges; |
20 | ||
b206525a JSR |
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 | } | |
ade029e2 | 25 | |
afd9fcee | 26 | #else |
ade029e2 BP |
27 | #define num_k8_northbridges 0 |
28 | ||
b206525a JSR |
29 | static inline struct pci_dev *node_to_k8_nb_misc(int node) |
30 | { | |
31 | return NULL; | |
32 | } | |
afd9fcee AH |
33 | #endif |
34 | ||
35 | ||
1965aae3 | 36 | #endif /* _ASM_X86_K8_H */ |