xref: /linux/arch/arm/include/asm/setup.h (revision db10cb9b)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  *  linux/include/asm/setup.h
4  *
5  *  Copyright (C) 1997-1999 Russell King
6  *
7  *  Structure passed to kernel to tell it about the
8  *  hardware it's running on.  See Documentation/arch/arm/setup.rst
9  *  for more info.
10  */
11 #ifndef __ASMARM_SETUP_H
12 #define __ASMARM_SETUP_H
13 
14 #include <uapi/asm/setup.h>
15 
16 
17 #define __tag __used __section(".taglist.init")
18 #define __tagtable(tag, fn) \
19 static const struct tagtable __tagtable_##fn __tag = { tag, fn }
20 
21 extern int arm_add_memory(u64 start, u64 size);
22 extern __printf(1, 2) void early_print(const char *str, ...);
23 extern void dump_machine_table(void);
24 
25 #ifdef CONFIG_ATAGS_PROC
26 extern void save_atags(const struct tag *tags);
27 #else
28 static inline void save_atags(const struct tag *tags) { }
29 #endif
30 
31 struct machine_desc;
32 void init_default_cache_policy(unsigned long);
33 void paging_init(const struct machine_desc *desc);
34 void early_mm_init(const struct machine_desc *);
35 void adjust_lowmem_bounds(void);
36 void setup_dma_zone(const struct machine_desc *desc);
37 
38 #endif
39