mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
fbb82b0365
This provides a machine_ops-based reboot interface loosely cloned from x86, and converts the native sh32 and sh64 cases over to it. Necessary both for tying in SMP support and also enabling platforms like SDK7786 to add support for their microcontroller-based power managers. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
22 lines
433 B
C
22 lines
433 B
C
#ifndef __ASM_SH_REBOOT_H
|
|
#define __ASM_SH_REBOOT_H
|
|
|
|
#include <linux/kdebug.h>
|
|
|
|
struct pt_regs;
|
|
|
|
struct machine_ops {
|
|
void (*restart)(char *cmd);
|
|
void (*halt)(void);
|
|
void (*power_off)(void);
|
|
void (*shutdown)(void);
|
|
void (*crash_shutdown)(struct pt_regs *);
|
|
};
|
|
|
|
extern struct machine_ops machine_ops;
|
|
|
|
/* arch/sh/kernel/machine_kexec.c */
|
|
void native_machine_crash_shutdown(struct pt_regs *regs);
|
|
|
|
#endif /* __ASM_SH_REBOOT_H */
|