18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_SH_REBOOT_H 38c2ecf20Sopenharmony_ci#define __ASM_SH_REBOOT_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <linux/kdebug.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cistruct pt_regs; 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cistruct machine_ops { 108c2ecf20Sopenharmony_ci void (*restart)(char *cmd); 118c2ecf20Sopenharmony_ci void (*halt)(void); 128c2ecf20Sopenharmony_ci void (*power_off)(void); 138c2ecf20Sopenharmony_ci void (*shutdown)(void); 148c2ecf20Sopenharmony_ci void (*crash_shutdown)(struct pt_regs *); 158c2ecf20Sopenharmony_ci}; 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciextern struct machine_ops machine_ops; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci/* arch/sh/kernel/machine_kexec.c */ 208c2ecf20Sopenharmony_civoid native_machine_crash_shutdown(struct pt_regs *regs); 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#endif /* __ASM_SH_REBOOT_H */ 23