reboot.h 642 字节
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 18
	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;

19
void native_machine_crash_shutdown(struct pt_regs *regs);
20
void native_machine_shutdown(void);
J
Jan Beulich 已提交
21
void machine_real_restart(const unsigned char *code, int length);
22

23 24 25
typedef void (*nmi_shootdown_cb)(int, struct die_args*);
void nmi_shootdown_cpus(nmi_shootdown_cb callback);

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