^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __ASM_SH_REBOOT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __ASM_SH_REBOOT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <linux/kdebug.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) struct pt_regs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) struct machine_ops {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) void (*restart)(char *cmd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) void (*halt)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) void (*power_off)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) void (*shutdown)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) void (*crash_shutdown)(struct pt_regs *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) extern struct machine_ops machine_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) /* arch/sh/kernel/machine_kexec.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) void native_machine_crash_shutdown(struct pt_regs *regs);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #endif /* __ASM_SH_REBOOT_H */