android_kernel_xiaomi_sdm845/arch/x86/include/asm/k8.h
Andreas Herrmann afd9fceec5 x86: cacheinfo: use cached K8 NB_MISC devices instead of scanning for it
Impact: avoid code duplication

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Mark Langsdorf <mark.langsdorf@amd.com>
LKML-Reference: <20090409131617.GI31527@alberich.amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-04-10 14:21:49 +02:00

24 lines
559 B
C

#ifndef _ASM_X86_K8_H
#define _ASM_X86_K8_H
#include <linux/pci.h>
extern struct pci_device_id k8_nb_ids[];
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);
extern int k8_scan_nodes(unsigned long start, unsigned long end);
#ifdef CONFIG_K8_NB
#define node_to_k8_nb_misc(node) \
(node < num_k8_northbridges) ? k8_northbridges[node] : NULL
#else
#define node_to_k8_nb_misc(node) NULL
#endif
#endif /* _ASM_X86_K8_H */