reboot.h 393 B

1234567891011121314151617181920
  1. #ifndef _ASM_REBOOT_H
  2. #define _ASM_REBOOT_H
  3. struct pt_regs;
  4. struct machine_ops
  5. {
  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 machine_real_restart(unsigned char *code, int length);
  15. #endif /* _ASM_REBOOT_H */