blob: c2d1f3b58e5f1342607280be6a71d434796482dd [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_K8_H
2#define _ASM_X86_K8_H
Andi Kleena32073b2006-06-26 13:56:40 +02003
4#include <linux/pci.h>
5
6extern struct pci_device_id k8_nb_ids[];
7
8extern int early_is_k8_nb(u32 value);
9extern struct pci_dev **k8_northbridges;
10extern int num_k8_northbridges;
11extern int cache_k8_northbridges(void);
12extern void k8_flush_garts(void);
Thomas Gleixnerc9ff0342008-01-30 13:30:16 +010013extern int k8_scan_nodes(unsigned long start, unsigned long end);
Andi Kleena32073b2006-06-26 13:56:40 +020014
Andreas Herrmannafd9fce2009-04-09 15:16:17 +020015#ifdef CONFIG_K8_NB
Jaswinder Singh Rajputb2065252009-04-14 23:04:37 +053016static inline struct pci_dev *node_to_k8_nb_misc(int node)
17{
18 return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL;
19}
Andreas Herrmannafd9fce2009-04-09 15:16:17 +020020#else
Jaswinder Singh Rajputb2065252009-04-14 23:04:37 +053021static inline struct pci_dev *node_to_k8_nb_misc(int node)
22{
23 return NULL;
24}
Andreas Herrmannafd9fce2009-04-09 15:16:17 +020025#endif
26
27
H. Peter Anvin1965aae2008-10-22 22:26:29 -070028#endif /* _ASM_X86_K8_H */