reboot.h 505 字节
Newer Older
V
Vegard Nossum 已提交
1 2
#ifndef ASM_X86__REBOOT_H
#define ASM_X86__REBOOT_H
3 4 5

struct pt_regs;

6
struct machine_ops {
7 8 9 10 11 12 13 14 15 16
	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;

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

V
Vegard Nossum 已提交
21
#endif /* ASM_X86__REBOOT_H */