diff options
Diffstat (limited to 'arch/arm/include/asm/setup.h')
-rw-r--r-- | arch/arm/include/asm/setup.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h index 8d6a089dfb76..e0adb9f1bf94 100644 --- a/arch/arm/include/asm/setup.h +++ b/arch/arm/include/asm/setup.h | |||
@@ -21,34 +21,6 @@ | |||
21 | #define __tagtable(tag, fn) \ | 21 | #define __tagtable(tag, fn) \ |
22 | static const struct tagtable __tagtable_##fn __tag = { tag, fn } | 22 | static const struct tagtable __tagtable_##fn __tag = { tag, fn } |
23 | 23 | ||
24 | /* | ||
25 | * Memory map description | ||
26 | */ | ||
27 | #define NR_BANKS CONFIG_ARM_NR_BANKS | ||
28 | |||
29 | struct membank { | ||
30 | phys_addr_t start; | ||
31 | phys_addr_t size; | ||
32 | unsigned int highmem; | ||
33 | }; | ||
34 | |||
35 | struct meminfo { | ||
36 | int nr_banks; | ||
37 | struct membank bank[NR_BANKS]; | ||
38 | }; | ||
39 | |||
40 | extern struct meminfo meminfo; | ||
41 | |||
42 | #define for_each_bank(iter,mi) \ | ||
43 | for (iter = 0; iter < (mi)->nr_banks; iter++) | ||
44 | |||
45 | #define bank_pfn_start(bank) __phys_to_pfn((bank)->start) | ||
46 | #define bank_pfn_end(bank) __phys_to_pfn((bank)->start + (bank)->size) | ||
47 | #define bank_pfn_size(bank) ((bank)->size >> PAGE_SHIFT) | ||
48 | #define bank_phys_start(bank) (bank)->start | ||
49 | #define bank_phys_end(bank) ((bank)->start + (bank)->size) | ||
50 | #define bank_phys_size(bank) (bank)->size | ||
51 | |||
52 | extern int arm_add_memory(u64 start, u64 size); | 24 | extern int arm_add_memory(u64 start, u64 size); |
53 | extern void early_print(const char *str, ...); | 25 | extern void early_print(const char *str, ...); |
54 | extern void dump_machine_table(void); | 26 | extern void dump_machine_table(void); |