patch-2.3.99-pre6 linux/include/linux/rtc.h
Next file: linux/include/linux/sched.h
Previous file: linux/include/linux/raid/md_u.h
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Fri Apr 21 15:21:18 2000
- Orig file:
v2.3.99-pre5/linux/include/linux/rtc.h
- Orig date:
Thu Feb 10 17:11:22 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/include/linux/rtc.h linux/include/linux/rtc.h
@@ -28,6 +28,17 @@
};
/*
+ * This data structure is inspired by the EFI (v0.92) wakeup
+ * alarm API.
+ */
+struct rtc_wkalrm {
+ unsigned char enabled; /* 0 = alarm disable, 1 = alarm disabled */
+ unsigned char pending; /* 0 = alarm pending, 1 = alarm not pending */
+ struct rtc_time time; /* time the alarm is set to */
+};
+
+
+/*
* ioctl calls that are permitted to the /dev/rtc interface, if
* CONFIG_RTC/CONFIG_EFI_RTC was enabled.
*/
@@ -47,5 +58,8 @@
#define RTC_IRQP_SET _IOW('p', 0x0c, unsigned long) /* Set IRQ rate */
#define RTC_EPOCH_READ _IOR('p', 0x0d, unsigned long) /* Read epoch */
#define RTC_EPOCH_SET _IOW('p', 0x0e, unsigned long) /* Set epoch */
+
+#define RTC_WKALM_SET _IOW('p', 0x0f, struct rtc_wkalrm)/* Set wakeup alarm*/
+#define RTC_WKALM_RD _IOR('p', 0x10, struct rtc_wkalrm)/* Get wakeup alarm*/
#endif /* _LINUX_RTC_H_ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)