oak_setup.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. *
  3. * Copyright (c) 1999-2000 Grant Erickson <grant@lcse.umn.edu>
  4. *
  5. * Module name: oak_setup.h
  6. *
  7. * Description:
  8. * Architecture- / platform-specific boot-time initialization code for
  9. * the IBM PowerPC 403GCX "Oak" evaluation board. Adapted from original
  10. * code by Gary Thomas, Cort Dougan <cort@cs.nmt.edu>, and Dan Malek
  11. * <dan@netx4.com>.
  12. *
  13. */
  14. #ifndef __OAK_SETUP_H__
  15. #define __OAK_SETUP_H__
  16. #include <asm/ptrace.h>
  17. #include <asm/board.h>
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. extern unsigned char __res[sizeof(bd_t)];
  22. extern void oak_init(unsigned long r3,
  23. unsigned long ird_start,
  24. unsigned long ird_end,
  25. unsigned long cline_start,
  26. unsigned long cline_end);
  27. extern void oak_setup_arch(void);
  28. extern int oak_setup_residual(char *buffer);
  29. extern void oak_init_IRQ(void);
  30. extern int oak_get_irq(struct pt_regs *regs);
  31. extern void oak_restart(char *cmd);
  32. extern void oak_power_off(void);
  33. extern void oak_halt(void);
  34. extern void oak_time_init(void);
  35. extern int oak_set_rtc_time(unsigned long now);
  36. extern unsigned long oak_get_rtc_time(void);
  37. extern void oak_calibrate_decr(void);
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif /* __OAK_SETUP_H__ */