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

#include <linux/pci.h>

6
extern struct pci_device_id amd_nb_ids[];
R
Randy Dunlap 已提交
7
struct bootnode;
8

9 10 11 12 13 14
extern int early_is_amd_nb(u32 value);
extern int cache_amd_northbridges(void);
extern void amd_flush_garts(void);
extern int amd_get_nodes(struct bootnode *nodes);
extern int amd_numa_init(unsigned long start_pfn, unsigned long end_pfn);
extern int amd_scan_nodes(void);
15

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

23
#ifdef CONFIG_AMD_NB
24

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

30
#else
31

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


39
#endif /* _ASM_X86_AMD_NB_H */