reboot.h 505 B

123456789101112131415161718192021
  1. #ifndef ASM_X86__REBOOT_H
  2. #define ASM_X86__REBOOT_H
  3. struct pt_regs;
  4. struct machine_ops {
  5. void (*restart)(char *cmd);
  6. void (*halt)(void);
  7. void (*power_off)(void);
  8. void (*shutdown)(void);
  9. void (*crash_shutdown)(struct pt_regs *);
  10. void (*emergency_restart)(void);
  11. };
  12. extern struct machine_ops machine_ops;
  13. void native_machine_crash_shutdown(struct pt_regs *regs);
  14. void native_machine_shutdown(void);
  15. void machine_real_restart(const unsigned char *code, int length);
  16. #endif /* ASM_X86__REBOOT_H */