time.h 480 B

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