162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __ASM_SH_BIOS_H
362306a36Sopenharmony_ci#define __ASM_SH_BIOS_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#ifdef CONFIG_SH_STANDARD_BIOS
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci/*
862306a36Sopenharmony_ci * Copyright (C) 2000 Greg Banks, Mitch Davis
962306a36Sopenharmony_ci * C API to interface to the standard LinuxSH BIOS
1062306a36Sopenharmony_ci * usually from within the early stages of kernel boot.
1162306a36Sopenharmony_ci */
1262306a36Sopenharmony_ciextern void sh_bios_console_write(const char *buf, unsigned int len);
1362306a36Sopenharmony_ciextern void sh_bios_gdb_detach(void);
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciextern void sh_bios_get_node_addr(unsigned char *node_addr);
1662306a36Sopenharmony_ciextern void sh_bios_shutdown(unsigned int how);
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciextern void sh_bios_vbr_init(void);
1962306a36Sopenharmony_ciextern void sh_bios_vbr_reload(void);
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#else
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_cistatic inline void sh_bios_vbr_init(void) { }
2462306a36Sopenharmony_cistatic inline void sh_bios_vbr_reload(void) { }
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci#endif /* CONFIG_SH_STANDARD_BIOS */
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#endif /* __ASM_SH_BIOS_H */
29