Merge branch 'tracing-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6] / arch / x86 / include / asm / k8.h
1 #ifndef _ASM_X86_K8_H
2 #define _ASM_X86_K8_H
3
4 #include <linux/pci.h>
5
6 extern struct pci_device_id k8_nb_ids[];
7
8 extern int early_is_k8_nb(u32 value);
9 extern struct pci_dev **k8_northbridges;
10 extern int num_k8_northbridges;
11 extern int cache_k8_northbridges(void);
12 extern void k8_flush_garts(void);
13 extern int k8_scan_nodes(unsigned long start, unsigned long end);
14
15 #ifdef CONFIG_K8_NB
16 static inline struct pci_dev *node_to_k8_nb_misc(int node)
17 {
18         return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL;
19 }
20 #else
21 static inline struct pci_dev *node_to_k8_nb_misc(int node)
22 {
23         return NULL;
24 }
25 #endif
26
27
28 #endif /* _ASM_X86_K8_H */