amd_nb.h 831 字节
Newer Older
1 2
#ifndef _ASM_X86_AMD_NB_H
#define _ASM_X86_AMD_NB_H
3 4 5 6

#include <linux/pci.h>

extern struct pci_device_id k8_nb_ids[];
R
Randy Dunlap 已提交
7
struct bootnode;
8 9 10 11

extern int early_is_k8_nb(u32 value);
extern int cache_k8_northbridges(void);
extern void k8_flush_garts(void);
D
David Rientjes 已提交
12 13 14
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);
15

16 17 18 19 20 21 22
struct k8_northbridge_info {
	u16 num;
	u8 gart_supported;
	struct pci_dev **nb_misc;
};
extern struct k8_northbridge_info k8_northbridges;

23
#ifdef CONFIG_AMD_NB
24

25 26
static inline struct pci_dev *node_to_k8_nb_misc(int node)
{
27
	return (node < k8_northbridges.num) ? k8_northbridges.nb_misc[node] : NULL;
28
}
29

30
#else
31

32 33 34 35
static inline struct pci_dev *node_to_k8_nb_misc(int node)
{
	return NULL;
}
36 37 38
#endif


39
#endif /* _ASM_X86_AMD_NB_H */