reboot.h 393 B

12345678910111213141516171819
  1. #ifndef _ASM_REBOOT_H
  2. #define _ASM_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 machine_real_restart(unsigned char *code, int length);
  14. #endif /* _ASM_REBOOT_H */