Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * linux/include/asm/setup.h |
| 4 | * |
| 5 | * Copyright (C) 1997-1999 Russell King |
| 6 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | * Structure passed to kernel to tell it about the |
Mauro Carvalho Chehab | dc7a12b | 2019-04-14 15:51:10 -0300 | [diff] [blame] | 8 | * hardware it's running on. See Documentation/arm/setup.rst |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | * for more info. |
| 10 | */ |
| 11 | #ifndef __ASMARM_SETUP_H |
| 12 | #define __ASMARM_SETUP_H |
| 13 | |
David Howells | cb8db5d | 2012-10-12 13:05:52 +0100 | [diff] [blame] | 14 | #include <uapi/asm/setup.h> |
Adrian Bunk | 7d1362c | 2006-12-06 20:40:38 -0800 | [diff] [blame] | 15 | |
Adrian Bunk | 7d1362c | 2006-12-06 20:40:38 -0800 | [diff] [blame] | 16 | |
David Rientjes | b91d8a1 | 2007-05-11 16:18:55 -0700 | [diff] [blame] | 17 | #define __tag __used __attribute__((__section__(".taglist.init"))) |
Adrian Bunk | 7d1362c | 2006-12-06 20:40:38 -0800 | [diff] [blame] | 18 | #define __tagtable(tag, fn) \ |
Russell King | c1f2d99 | 2011-07-05 23:59:56 +0100 | [diff] [blame] | 19 | static const struct tagtable __tagtable_##fn __tag = { tag, fn } |
Adrian Bunk | 7d1362c | 2006-12-06 20:40:38 -0800 | [diff] [blame] | 20 | |
Magnus Damm | 6a5014a | 2013-10-22 17:53:16 +0100 | [diff] [blame] | 21 | extern int arm_add_memory(u64 start, u64 size); |
Grant Likely | 93c02ab | 2011-04-28 14:27:21 -0600 | [diff] [blame] | 22 | extern void early_print(const char *str, ...); |
| 23 | extern void dump_machine_table(void); |
Grant Likely | 9eb8f67 | 2011-04-28 14:27:20 -0600 | [diff] [blame] | 24 | |
Ivaylo Dimitrov | 6e0306a | 2016-01-01 12:46:27 +0100 | [diff] [blame] | 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 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | #endif |