diff options
Diffstat (limited to 'arch/x86/include/asm/amd_nb.h')
-rw-r--r-- | arch/x86/include/asm/amd_nb.h | 12 |
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[]; | |||
13 | extern const struct amd_nb_bus_dev_range amd_nb_bus_dev_ranges[]; | 13 | extern const struct amd_nb_bus_dev_range amd_nb_bus_dev_ranges[]; |
14 | struct bootnode; | 14 | struct bootnode; |
15 | 15 | ||
16 | extern int early_is_amd_nb(u32 value); | 16 | extern bool early_is_amd_nb(u32 value); |
17 | extern int amd_cache_northbridges(void); | 17 | extern int amd_cache_northbridges(void); |
18 | extern void amd_flush_garts(void); | 18 | extern void amd_flush_garts(void); |
19 | extern int amd_numa_init(unsigned long start_pfn, unsigned long end_pfn); | 19 | extern int amd_numa_init(unsigned long start_pfn, unsigned long end_pfn); |
@@ -38,18 +38,18 @@ struct amd_northbridge_info { | |||
38 | }; | 38 | }; |
39 | extern struct amd_northbridge_info amd_northbridges; | 39 | extern 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 | ||
47 | static inline int amd_nb_num(void) | 47 | static inline u16 amd_nb_num(void) |
48 | { | 48 | { |
49 | return amd_northbridges.num; | 49 | return amd_northbridges.num; |
50 | } | 50 | } |
51 | 51 | ||
52 | static inline int amd_nb_has_feature(int feature) | 52 | static 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 | } |