patch-pre2.0.9 linux/include/linux/mc146818rtc.h
Next file: linux/kernel/ksyms.c
Previous file: linux/include/asm-ppc/posix_types.h
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Tue May 28 07:39:19 1996
- Orig file:
pre2.0.8/linux/include/linux/mc146818rtc.h
- Orig date:
Tue May 7 16:22:38 1996
diff -u --recursive --new-file pre2.0.8/linux/include/linux/mc146818rtc.h linux/include/linux/mc146818rtc.h
@@ -107,25 +107,7 @@
#endif
/*
- * ioctl calls that are permitted to the /dev/rtc interface, if
- * CONFIG_RTC was enabled.
- */
-
-#define RTC_AIE_ON 0x01 /* Alarm int. enable on */
-#define RTC_AIE_OFF 0x02 /* ... off */
-#define RTC_UIE_ON 0x03 /* Update int. enable on */
-#define RTC_UIE_OFF 0x04 /* ... off */
-#define RTC_PIE_ON 0x05 /* Periodic int. enable on */
-#define RTC_PIE_OFF 0x06 /* ... off */
-#define RTC_ALM_SET 0x07 /* Set alarm (struct tm) */
-#define RTC_ALM_READ 0x08 /* Read alarm (struct tm) */
-#define RTC_RD_TIME 0x09 /* Read RTC time (struct tm) */
-#define RTC_SET_TIME 0x0a /* Set time of RTC (not used) */
-#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
+ * 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.
*/
@@ -141,5 +123,25 @@
int tm_yday;
int tm_isdst;
};
+
+/*
+ * ioctl calls that are permitted to the /dev/rtc interface, if
+ * CONFIG_RTC was enabled.
+ */
+
+#define RTC_AIE_ON _IO('p', 0x01) /* Alarm int. enable on */
+#define RTC_AIE_OFF _IO('p', 0x02) /* ... off */
+#define RTC_UIE_ON _IO('p', 0x03) /* Update int. enable on */
+#define RTC_UIE_OFF _IO('p', 0x04) /* ... off */
+#define RTC_PIE_ON _IO('p', 0x05) /* Periodic int. enable on */
+#define RTC_PIE_OFF _IO('p', 0x06) /* ... off */
+
+#define RTC_ALM_SET _IOW('p', 0x07, struct rtc_time) /* Set alarm time */
+#define RTC_ALM_READ _IOR('p', 0x08, struct rtc_time) /* Read alarm time */
+#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 */
+#define RTC_IRQP_READ _IOR('p', 0x0b, unsigned long) /* Read IRQ rate */
+#define RTC_IRQP_SET _IOW('p', 0x0c, unsigned long) /* Set IRQ rate */
+
#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