2010-09-17 18:03:43 +02:00
|
|
|
#ifndef _ASM_X86_AMD_NB_H
|
|
|
|
#define _ASM_X86_AMD_NB_H
|
2006-06-26 13:56:40 +02:00
|
|
|
|
|
|
|
#include <linux/pci.h>
|
|
|
|
|
2010-10-29 17:14:30 +02:00
|
|
|
extern struct pci_device_id amd_nb_ids[];
|
2009-10-28 16:09:55 -07:00
|
|
|
struct bootnode;
|
2006-06-26 13:56:40 +02:00
|
|
|
|
2010-10-29 17:14:30 +02:00
|
|
|
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);
|
2006-06-26 13:56:40 +02:00
|
|
|
|
2010-10-29 17:14:30 +02:00
|
|
|
struct amd_northbridge_info {
|
2010-09-17 18:02:54 +02:00
|
|
|
u16 num;
|
|
|
|
u8 gart_supported;
|
|
|
|
struct pci_dev **nb_misc;
|
|
|
|
};
|
2010-10-29 17:14:30 +02:00
|
|
|
extern struct amd_northbridge_info amd_northbridges;
|
2010-09-17 18:02:54 +02:00
|
|
|
|
2010-09-17 18:03:43 +02:00
|
|
|
#ifdef CONFIG_AMD_NB
|
2010-04-24 09:56:53 +02:00
|
|
|
|
2010-10-29 17:14:30 +02:00
|
|
|
static inline struct pci_dev *node_to_amd_nb_misc(int node)
|
2009-04-14 23:04:37 +05:30
|
|
|
{
|
2010-10-29 17:14:30 +02:00
|
|
|
return (node < amd_northbridges.num) ? amd_northbridges.nb_misc[node] : NULL;
|
2009-04-14 23:04:37 +05:30
|
|
|
}
|
2010-04-24 09:56:53 +02:00
|
|
|
|
2009-04-09 15:16:17 +02:00
|
|
|
#else
|
2010-04-24 09:56:53 +02:00
|
|
|
|
2010-10-29 17:14:30 +02:00
|
|
|
static inline struct pci_dev *node_to_amd_nb_misc(int node)
|
2009-04-14 23:04:37 +05:30
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
2009-04-09 15:16:17 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2010-09-17 18:03:43 +02:00
|
|
|
#endif /* _ASM_X86_AMD_NB_H */
|