18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _SH_SETUP_H
38c2ecf20Sopenharmony_ci#define _SH_SETUP_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <uapi/asm/setup.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci/*
88c2ecf20Sopenharmony_ci * This is set up by the setup-routine at boot-time
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci#define PARAM	((unsigned char *)empty_zero_page)
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define MOUNT_ROOT_RDONLY (*(unsigned long *) (PARAM+0x000))
138c2ecf20Sopenharmony_ci#define RAMDISK_FLAGS (*(unsigned long *) (PARAM+0x004))
148c2ecf20Sopenharmony_ci#define ORIG_ROOT_DEV (*(unsigned long *) (PARAM+0x008))
158c2ecf20Sopenharmony_ci#define LOADER_TYPE (*(unsigned long *) (PARAM+0x00c))
168c2ecf20Sopenharmony_ci#define INITRD_START (*(unsigned long *) (PARAM+0x010))
178c2ecf20Sopenharmony_ci#define INITRD_SIZE (*(unsigned long *) (PARAM+0x014))
188c2ecf20Sopenharmony_ci/* ... */
198c2ecf20Sopenharmony_ci#define COMMAND_LINE ((char *) (PARAM+0x100))
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_civoid sh_mv_setup(void);
228c2ecf20Sopenharmony_civoid check_for_initrd(void);
238c2ecf20Sopenharmony_civoid per_cpu_trap_init(void);
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif /* _SH_SETUP_H */
26