aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/amd_nb.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/amd_nb.h')
-rw-r--r--arch/x86/include/asm/amd_nb.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/include/asm/amd_nb.h b/arch/x86/include/asm/amd_nb.h
index 2b33c4df979f..527fb966ab5c 100644
--- a/arch/x86/include/asm/amd_nb.h
+++ b/arch/x86/include/asm/amd_nb.h
@@ -13,7 +13,7 @@ extern const struct pci_device_id amd_nb_misc_ids[];
13extern const struct amd_nb_bus_dev_range amd_nb_bus_dev_ranges[]; 13extern const struct amd_nb_bus_dev_range amd_nb_bus_dev_ranges[];
14struct bootnode; 14struct bootnode;
15 15
16extern int early_is_amd_nb(u32 value); 16extern bool early_is_amd_nb(u32 value);
17extern int amd_cache_northbridges(void); 17extern int amd_cache_northbridges(void);
18extern void amd_flush_garts(void); 18extern void amd_flush_garts(void);
19extern int amd_numa_init(unsigned long start_pfn, unsigned long end_pfn); 19extern int amd_numa_init(unsigned long start_pfn, unsigned long end_pfn);
@@ -38,18 +38,18 @@ struct amd_northbridge_info {
38}; 38};
39extern struct amd_northbridge_info amd_northbridges; 39extern struct amd_northbridge_info amd_northbridges;
40 40
41#define AMD_NB_GART 0x1 41#define AMD_NB_GART BIT(0)
42#define AMD_NB_L3_INDEX_DISABLE 0x2 42#define AMD_NB_L3_INDEX_DISABLE BIT(1)
43#define AMD_NB_L3_PARTITIONING 0x4 43#define AMD_NB_L3_PARTITIONING BIT(2)
44 44
45#ifdef CONFIG_AMD_NB 45#ifdef CONFIG_AMD_NB
46 46
47static inline int amd_nb_num(void) 47static inline u16 amd_nb_num(void)
48{ 48{
49 return amd_northbridges.num; 49 return amd_northbridges.num;
50} 50}
51 51
52static inline int amd_nb_has_feature(int feature) 52static inline bool amd_nb_has_feature(unsigned feature)
53{ 53{
54 return ((amd_northbridges.flags & feature) == feature); 54 return ((amd_northbridges.flags & feature) == feature);
55} 55}