blob: 562d4fd31ba89abdfba10d1069621c19608ac983 [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_REBOOT_H
2#define _ASM_X86_REBOOT_H
Jeremy Fitzhardinge07f33312007-05-02 19:27:11 +02003
Eduardo Habkostc370e5e2008-11-12 11:34:41 -02004#include <linux/kdebug.h>
5
Jeremy Fitzhardinge07f33312007-05-02 19:27:11 +02006struct pt_regs;
7
Joe Perches78db4c62008-03-23 01:03:18 -07008struct machine_ops {
Jeremy Fitzhardinge07f33312007-05-02 19:27:11 +02009 void (*restart)(char *cmd);
10 void (*halt)(void);
11 void (*power_off)(void);
12 void (*shutdown)(void);
13 void (*crash_shutdown)(struct pt_regs *);
14 void (*emergency_restart)(void);
15};
16
17extern struct machine_ops machine_ops;
18
Glauber Costaed23dc62008-03-17 16:08:38 -030019void native_machine_crash_shutdown(struct pt_regs *regs);
Glauber Costa3c62c622008-03-17 16:08:39 -030020void native_machine_shutdown(void);
Jan Beulichebdd5612008-05-12 15:43:38 +020021void machine_real_restart(const unsigned char *code, int length);
Jeremy Fitzhardinge07f33312007-05-02 19:27:11 +020022
Eduardo Habkostc370e5e2008-11-12 11:34:41 -020023typedef void (*nmi_shootdown_cb)(int, struct die_args*);
24void nmi_shootdown_cpus(nmi_shootdown_cb callback);
25
H. Peter Anvin1965aae2008-10-22 22:26:29 -070026#endif /* _ASM_X86_REBOOT_H */