18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
48c2ecf20Sopenharmony_ci * Copyright (C) 2007-2009 PetaLogix
58c2ecf20Sopenharmony_ci * Copyright (C) 2006 Atmark Techno, Inc.
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci#ifndef _ASM_MICROBLAZE_SETUP_H
88c2ecf20Sopenharmony_ci#define _ASM_MICROBLAZE_SETUP_H
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <uapi/asm/setup.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci# ifndef __ASSEMBLY__
138c2ecf20Sopenharmony_ciextern char cmd_line[COMMAND_LINE_SIZE];
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciextern char *klimit;
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#   ifdef CONFIG_MMU
188c2ecf20Sopenharmony_ciextern void mmu_reset(void);
198c2ecf20Sopenharmony_ci#   endif /* CONFIG_MMU */
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_civoid time_init(void);
228c2ecf20Sopenharmony_civoid init_IRQ(void);
238c2ecf20Sopenharmony_civoid machine_early_init(const char *cmdline, unsigned int ram,
248c2ecf20Sopenharmony_ci		unsigned int fdt, unsigned int msr, unsigned int tlb0,
258c2ecf20Sopenharmony_ci		unsigned int tlb1);
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_civoid machine_restart(char *cmd);
288c2ecf20Sopenharmony_civoid machine_shutdown(void);
298c2ecf20Sopenharmony_civoid machine_halt(void);
308c2ecf20Sopenharmony_civoid machine_power_off(void);
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciextern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci# endif /* __ASSEMBLY__ */
358c2ecf20Sopenharmony_ci#endif /* _ASM_MICROBLAZE_SETUP_H */
36