diff options
Diffstat (limited to 'arch/x86/include/asm/amd_nb.h')
-rw-r--r-- | arch/x86/include/asm/amd_nb.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/arch/x86/include/asm/amd_nb.h b/arch/x86/include/asm/amd_nb.h index 64dc82ee19f..527fb966ab5 100644 --- a/arch/x86/include/asm/amd_nb.h +++ b/arch/x86/include/asm/amd_nb.h | |||
@@ -9,15 +9,17 @@ struct amd_nb_bus_dev_range { | |||
9 | u8 dev_limit; | 9 | u8 dev_limit; |
10 | }; | 10 | }; |
11 | 11 | ||
12 | extern struct pci_device_id amd_nb_misc_ids[]; | 12 | 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); |
20 | extern int amd_scan_nodes(void); | 20 | extern int amd_scan_nodes(void); |
21 | extern int amd_get_subcaches(int); | ||
22 | extern int amd_set_subcaches(int, int); | ||
21 | 23 | ||
22 | #ifdef CONFIG_NUMA_EMU | 24 | #ifdef CONFIG_NUMA_EMU |
23 | extern void amd_fake_nodes(const struct bootnode *nodes, int nr_nodes); | 25 | extern void amd_fake_nodes(const struct bootnode *nodes, int nr_nodes); |
@@ -26,6 +28,7 @@ extern void amd_get_nodes(struct bootnode *nodes); | |||
26 | 28 | ||
27 | struct amd_northbridge { | 29 | struct amd_northbridge { |
28 | struct pci_dev *misc; | 30 | struct pci_dev *misc; |
31 | struct pci_dev *link; | ||
29 | }; | 32 | }; |
30 | 33 | ||
31 | struct amd_northbridge_info { | 34 | struct amd_northbridge_info { |
@@ -35,17 +38,18 @@ struct amd_northbridge_info { | |||
35 | }; | 38 | }; |
36 | extern struct amd_northbridge_info amd_northbridges; | 39 | extern struct amd_northbridge_info amd_northbridges; |
37 | 40 | ||
38 | #define AMD_NB_GART 0x1 | 41 | #define AMD_NB_GART BIT(0) |
39 | #define AMD_NB_L3_INDEX_DISABLE 0x2 | 42 | #define AMD_NB_L3_INDEX_DISABLE BIT(1) |
43 | #define AMD_NB_L3_PARTITIONING BIT(2) | ||
40 | 44 | ||
41 | #ifdef CONFIG_AMD_NB | 45 | #ifdef CONFIG_AMD_NB |
42 | 46 | ||
43 | static inline int amd_nb_num(void) | 47 | static inline u16 amd_nb_num(void) |
44 | { | 48 | { |
45 | return amd_northbridges.num; | 49 | return amd_northbridges.num; |
46 | } | 50 | } |
47 | 51 | ||
48 | static inline int amd_nb_has_feature(int feature) | 52 | static inline bool amd_nb_has_feature(unsigned feature) |
49 | { | 53 | { |
50 | return ((amd_northbridges.flags & feature) == feature); | 54 | return ((amd_northbridges.flags & feature) == feature); |
51 | } | 55 | } |