H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_K8_H |
| 2 | #define _ASM_X86_K8_H |
Andi Kleen | a32073b | 2006-06-26 13:56:40 +0200 | [diff] [blame] | 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); |
Thomas Gleixner | c9ff034 | 2008-01-30 13:30:16 +0100 | [diff] [blame] | 13 | extern int k8_scan_nodes(unsigned long start, unsigned long end); |
Andi Kleen | a32073b | 2006-06-26 13:56:40 +0200 | [diff] [blame] | 14 | |
Andreas Herrmann | afd9fce | 2009-04-09 15:16:17 +0200 | [diff] [blame] | 15 | #ifdef CONFIG_K8_NB |
Jaswinder Singh Rajput | b206525 | 2009-04-14 23:04:37 +0530 | [diff] [blame] | 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 | } |
Andreas Herrmann | afd9fce | 2009-04-09 15:16:17 +0200 | [diff] [blame] | 20 | #else |
Jaswinder Singh Rajput | b206525 | 2009-04-14 23:04:37 +0530 | [diff] [blame] | 21 | static inline struct pci_dev *node_to_k8_nb_misc(int node) |
| 22 | { |
| 23 | return NULL; |
| 24 | } |
Andreas Herrmann | afd9fce | 2009-04-09 15:16:17 +0200 | [diff] [blame] | 25 | #endif |
| 26 | |
| 27 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 28 | #endif /* _ASM_X86_K8_H */ |