18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef SUN3X_TIME_H 38c2ecf20Sopenharmony_ci#define SUN3X_TIME_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciextern int sun3x_hwclk(int set, struct rtc_time *t); 68c2ecf20Sopenharmony_civoid sun3x_sched_init(irq_handler_t vector); 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_cistruct mostek_dt { 98c2ecf20Sopenharmony_ci volatile unsigned char csr; 108c2ecf20Sopenharmony_ci volatile unsigned char sec; 118c2ecf20Sopenharmony_ci volatile unsigned char min; 128c2ecf20Sopenharmony_ci volatile unsigned char hour; 138c2ecf20Sopenharmony_ci volatile unsigned char wday; 148c2ecf20Sopenharmony_ci volatile unsigned char mday; 158c2ecf20Sopenharmony_ci volatile unsigned char month; 168c2ecf20Sopenharmony_ci volatile unsigned char year; 178c2ecf20Sopenharmony_ci}; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#endif 20