]>
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); | |
a32073bf AK |
10 | extern int cache_k8_northbridges(void); |
11 | extern void k8_flush_garts(void); | |
8ee2debc DR |
12 | extern int k8_get_nodes(struct bootnode *nodes); |
13 | extern int k8_numa_init(unsigned long start_pfn, unsigned long end_pfn); | |
14 | extern int k8_scan_nodes(void); | |
a32073bf | 15 | |
900f9ac9 AH |
16 | struct k8_northbridge_info { |
17 | u16 num; | |
18 | u8 gart_supported; | |
19 | struct pci_dev **nb_misc; | |
20 | }; | |
21 | extern struct k8_northbridge_info k8_northbridges; | |
22 | ||
afd9fcee | 23 | #ifdef CONFIG_K8_NB |
ade029e2 | 24 | |
b206525a JSR |
25 | static inline struct pci_dev *node_to_k8_nb_misc(int node) |
26 | { | |
900f9ac9 | 27 | return (node < k8_northbridges.num) ? k8_northbridges.nb_misc[node] : NULL; |
b206525a | 28 | } |
ade029e2 | 29 | |
afd9fcee | 30 | #else |
ade029e2 | 31 | |
b206525a JSR |
32 | static inline struct pci_dev *node_to_k8_nb_misc(int node) |
33 | { | |
34 | return NULL; | |
35 | } | |
afd9fcee AH |
36 | #endif |
37 | ||
38 | ||
1965aae3 | 39 | #endif /* _ASM_X86_K8_H */ |