2008-10-22 23:26:29 -06:00
|
|
|
#ifndef _ASM_X86_K8_H
|
|
|
|
#define _ASM_X86_K8_H
|
2006-06-26 05:56:40 -06:00
|
|
|
|
|
|
|
#include <linux/pci.h>
|
|
|
|
|
|
|
|
extern struct pci_device_id k8_nb_ids[];
|
2009-10-28 17:09:55 -06:00
|
|
|
struct bootnode;
|
2006-06-26 05:56:40 -06:00
|
|
|
|
|
|
|
extern int early_is_k8_nb(u32 value);
|
|
|
|
extern struct pci_dev **k8_northbridges;
|
|
|
|
extern int num_k8_northbridges;
|
|
|
|
extern int cache_k8_northbridges(void);
|
|
|
|
extern void k8_flush_garts(void);
|
2009-09-25 16:20:00 -06:00
|
|
|
extern int k8_get_nodes(struct bootnode *nodes);
|
|
|
|
extern int k8_numa_init(unsigned long start_pfn, unsigned long end_pfn);
|
|
|
|
extern int k8_scan_nodes(void);
|
2006-06-26 05:56:40 -06:00
|
|
|
|
2009-04-09 07:16:17 -06:00
|
|
|
#ifdef CONFIG_K8_NB
|
2009-04-14 11:34:37 -06:00
|
|
|
static inline struct pci_dev *node_to_k8_nb_misc(int node)
|
|
|
|
{
|
|
|
|
return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL;
|
|
|
|
}
|
2009-04-09 07:16:17 -06:00
|
|
|
#else
|
2009-04-14 11:34:37 -06:00
|
|
|
static inline struct pci_dev *node_to_k8_nb_misc(int node)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
2009-04-09 07:16:17 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2008-10-22 23:26:29 -06:00
|
|
|
#endif /* _ASM_X86_K8_H */
|