18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  linux/include/asm/setup.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *  Copyright (C) 1997-1999 Russell King
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci *  Structure passed to kernel to tell it about the
88c2ecf20Sopenharmony_ci *  hardware it's running on.  See Documentation/arm/setup.rst
98c2ecf20Sopenharmony_ci *  for more info.
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci#ifndef __ASMARM_SETUP_H
128c2ecf20Sopenharmony_ci#define __ASMARM_SETUP_H
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#include <uapi/asm/setup.h>
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define __tag __used __section(".taglist.init")
188c2ecf20Sopenharmony_ci#define __tagtable(tag, fn) \
198c2ecf20Sopenharmony_cistatic const struct tagtable __tagtable_##fn __tag = { tag, fn }
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciextern int arm_add_memory(u64 start, u64 size);
228c2ecf20Sopenharmony_ciextern void early_print(const char *str, ...);
238c2ecf20Sopenharmony_ciextern void dump_machine_table(void);
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#ifdef CONFIG_ATAGS_PROC
268c2ecf20Sopenharmony_ciextern void save_atags(const struct tag *tags);
278c2ecf20Sopenharmony_ci#else
288c2ecf20Sopenharmony_cistatic inline void save_atags(const struct tag *tags) { }
298c2ecf20Sopenharmony_ci#endif
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#endif
32