reboot.h 811 字节
Newer Older
H
H. Peter Anvin 已提交
1 2
#ifndef _ASM_X86_REBOOT_H
#define _ASM_X86_REBOOT_H
3

4 5
#include <linux/kdebug.h>

6 7
struct pt_regs;

8
struct machine_ops {
9 10 11 12 13 14 15 16 17
	void (*restart)(char *cmd);
	void (*halt)(void);
	void (*power_off)(void);
	void (*shutdown)(void);
	void (*crash_shutdown)(struct pt_regs *);
	void (*emergency_restart)(void);
};

extern struct machine_ops machine_ops;
18
extern int crashing_cpu;
19

20
void native_machine_crash_shutdown(struct pt_regs *regs);
21
void native_machine_shutdown(void);
22 23
void __noreturn machine_real_restart(unsigned int type);
/* These must match dispatch in arch/x86/realmore/rm/reboot.S */
24 25
#define MRR_BIOS	0
#define MRR_APM		1
26

27
typedef void (*nmi_shootdown_cb)(int, struct pt_regs*);
28
void nmi_shootdown_cpus(nmi_shootdown_cb callback);
29
void run_crash_ipi_callback(struct pt_regs *regs);
30

H
H. Peter Anvin 已提交
31
#endif /* _ASM_X86_REBOOT_H */