reboot.h 712 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _ASM_X86_REBOOT_H
  2. #define _ASM_X86_REBOOT_H
  3. #include <linux/kdebug.h>
  4. struct pt_regs;
  5. struct machine_ops {
  6. void (*restart)(char *cmd);
  7. void (*halt)(void);
  8. void (*power_off)(void);
  9. void (*shutdown)(void);
  10. void (*crash_shutdown)(struct pt_regs *);
  11. void (*emergency_restart)(void);
  12. };
  13. extern struct machine_ops machine_ops;
  14. void native_machine_crash_shutdown(struct pt_regs *regs);
  15. void native_machine_shutdown(void);
  16. void machine_real_restart(unsigned int type);
  17. /* These must match dispatch_table in reboot_32.S */
  18. #define MRR_BIOS 0
  19. #define MRR_APM 1
  20. typedef void (*nmi_shootdown_cb)(int, struct pt_regs*);
  21. void nmi_shootdown_cpus(nmi_shootdown_cb callback);
  22. #endif /* _ASM_X86_REBOOT_H */