morpheus-base

morpheus base system
git clone git://git.2f30.org/morpheus-base.git
Log | Files | Refs

rtc.h (510B)


      1 /*
      2  * The struct used to pass data via the following ioctl. Similar to the
      3  * struct tm in <time.h>, but it needs to be here so that the kernel
      4  * source is self contained, allowing cross-compiles, etc. etc.
      5  */
      6 
      7 struct rtc_time {
      8 	int tm_sec;
      9 	int tm_min;
     10 	int tm_hour;
     11 	int tm_mday;
     12 	int tm_mon;
     13 	int tm_year;
     14 	int tm_wday;
     15 	int tm_yday;
     16 	int tm_isdst;
     17 };
     18 
     19 #define RTC_RD_TIME	_IOR('p', 0x09, struct rtc_time) /* Read RTC time   */
     20 #define RTC_SET_TIME	_IOW('p', 0x0a, struct rtc_time) /* Set RTC time    */