init from v2.6.32.60
[mach-moxart.git] / arch / x86 / include / asm / k8.h
blob41845d21000f4209340889f2b6e322bf584433ed
1 #ifndef _ASM_X86_K8_H
2 #define _ASM_X86_K8_H
4 #include <linux/ioport.h>
5 #include <linux/pci.h>
7 extern struct pci_device_id k8_nb_ids[];
9 extern int early_is_k8_nb(u32 value);
10 extern struct resource *amd_get_mmconfig_range(struct resource *res);
11 extern struct pci_dev **k8_northbridges;
12 extern int num_k8_northbridges;
13 extern int cache_k8_northbridges(void);
14 extern void k8_flush_garts(void);
15 extern int k8_scan_nodes(unsigned long start, unsigned long end);
17 #ifdef CONFIG_K8_NB
18 extern int num_k8_northbridges;
20 static inline struct pci_dev *node_to_k8_nb_misc(int node)
22 return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL;
25 #else
26 #define num_k8_northbridges 0
28 static inline struct pci_dev *node_to_k8_nb_misc(int node)
30 return NULL;
32 #endif
35 #endif /* _ASM_X86_K8_H */