reboot.h 642 B

1234567891011121314151617181920212223242526
  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(const unsigned char *code, int length);
  17. typedef void (*nmi_shootdown_cb)(int, struct die_args*);
  18. void nmi_shootdown_cpus(nmi_shootdown_cb callback);
  19. #endif /* _ASM_X86_REBOOT_H */