mirror of
git://git.suckless.org/ubase
synced 2024-12-24 23:52:34 +00:00
21 lines
510 B
C
21 lines
510 B
C
/*
|
|
* The struct used to pass data via the following ioctl. Similar to the
|
|
* struct tm in <time.h>, but it needs to be here so that the kernel
|
|
* source is self contained, allowing cross-compiles, etc. etc.
|
|
*/
|
|
|
|
struct rtc_time {
|
|
int tm_sec;
|
|
int tm_min;
|
|
int tm_hour;
|
|
int tm_mday;
|
|
int tm_mon;
|
|
int tm_year;
|
|
int tm_wday;
|
|
int tm_yday;
|
|
int tm_isdst;
|
|
};
|
|
|
|
#define RTC_RD_TIME _IOR('p', 0x09, struct rtc_time) /* Read RTC time */
|
|
#define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time) /* Set RTC time */
|