time.h 441 B

1234567891011121314151617181920
  1. #ifndef SUN3X_TIME_H
  2. #define SUN3X_TIME_H
  3. extern int sun3x_hwclk(int set, struct rtc_time *t);
  4. u32 sun3x_gettimeoffset(void);
  5. void sun3x_sched_init(irq_handler_t vector);
  6. struct mostek_dt {
  7. volatile unsigned char csr;
  8. volatile unsigned char sec;
  9. volatile unsigned char min;
  10. volatile unsigned char hour;
  11. volatile unsigned char wday;
  12. volatile unsigned char mday;
  13. volatile unsigned char month;
  14. volatile unsigned char year;
  15. };
  16. #endif