patch-1.3.99 linux/include/linux/mc146818rtc.h

Next file: linux/include/linux/mroute.h
Previous file: linux/include/linux/math_emu.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.98/linux/include/linux/mc146818rtc.h linux/include/linux/mc146818rtc.h
@@ -124,4 +124,22 @@
 #define RTC_IRQP_READ	0x0b		/* Read periodic IRQ rate (Hz)	*/
 #define RTC_IRQP_SET	0x0c		/* Set periodic IRQ rate (Hz)	*/
 
+/*
+ * The struct used to pass data via the above 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;
+};
+
 #endif /* _MC146818RTC_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this