xref: /OK3568_Linux_fs/kernel/arch/sh/include/asm/sh_bios.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __ASM_SH_BIOS_H
3*4882a593Smuzhiyun #define __ASM_SH_BIOS_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #ifdef CONFIG_SH_STANDARD_BIOS
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun /*
8*4882a593Smuzhiyun  * Copyright (C) 2000 Greg Banks, Mitch Davis
9*4882a593Smuzhiyun  * C API to interface to the standard LinuxSH BIOS
10*4882a593Smuzhiyun  * usually from within the early stages of kernel boot.
11*4882a593Smuzhiyun  */
12*4882a593Smuzhiyun extern void sh_bios_console_write(const char *buf, unsigned int len);
13*4882a593Smuzhiyun extern void sh_bios_gdb_detach(void);
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun extern void sh_bios_get_node_addr(unsigned char *node_addr);
16*4882a593Smuzhiyun extern void sh_bios_shutdown(unsigned int how);
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun extern void sh_bios_vbr_init(void);
19*4882a593Smuzhiyun extern void sh_bios_vbr_reload(void);
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun #else
22*4882a593Smuzhiyun 
sh_bios_vbr_init(void)23*4882a593Smuzhiyun static inline void sh_bios_vbr_init(void) { }
sh_bios_vbr_reload(void)24*4882a593Smuzhiyun static inline void sh_bios_vbr_reload(void) { }
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #endif /* CONFIG_SH_STANDARD_BIOS */
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif /* __ASM_SH_BIOS_H */
29