aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/platform.h2
-rw-r--r--include/rtc_.h37
2 files changed, 19 insertions, 20 deletions
diff --git a/include/platform.h b/include/platform.h
index 5d6a18107..13dfcbd32 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -371,4 +371,4 @@ static ALWAYS_INLINE char* strchrnul(const char *s, char c)
371#endif 371#endif
372#endif 372#endif
373 373
374#endif /* platform.h */ 374#endif /* platform.h */
diff --git a/include/rtc_.h b/include/rtc_.h
index 867edb3db..ae17ee7d4 100644
--- a/include/rtc_.h
+++ b/include/rtc_.h
@@ -44,27 +44,26 @@ struct linux_rtc_wkalrm {
44 * ioctl calls that are permitted to the /dev/rtc interface, if 44 * ioctl calls that are permitted to the /dev/rtc interface, if
45 * any of the RTC drivers are enabled. 45 * any of the RTC drivers are enabled.
46 */ 46 */
47#define RTC_AIE_ON _IO('p', 0x01) /* Alarm int. enable on */
48#define RTC_AIE_OFF _IO('p', 0x02) /* ... off */
49#define RTC_UIE_ON _IO('p', 0x03) /* Update int. enable on */
50#define RTC_UIE_OFF _IO('p', 0x04) /* ... off */
51#define RTC_PIE_ON _IO('p', 0x05) /* Periodic int. enable on */
52#define RTC_PIE_OFF _IO('p', 0x06) /* ... off */
53#define RTC_WIE_ON _IO('p', 0x0f) /* Watchdog int. enable on */
54#define RTC_WIE_OFF _IO('p', 0x10) /* ... off */
47 55
48#define RTC_AIE_ON _IO('p', 0x01) /* Alarm int. enable on */ 56#define RTC_ALM_SET _IOW('p', 0x07, struct linux_rtc_time) /* Set alarm time */
49#define RTC_AIE_OFF _IO('p', 0x02) /* ... off */ 57#define RTC_ALM_READ _IOR('p', 0x08, struct linux_rtc_time) /* Read alarm time */
50#define RTC_UIE_ON _IO('p', 0x03) /* Update int. enable on */ 58#define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */
51#define RTC_UIE_OFF _IO('p', 0x04) /* ... off */ 59#define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */
52#define RTC_PIE_ON _IO('p', 0x05) /* Periodic int. enable on */ 60#define RTC_IRQP_READ _IOR('p', 0x0b, unsigned long) /* Read IRQ rate */
53#define RTC_PIE_OFF _IO('p', 0x06) /* ... off */ 61#define RTC_IRQP_SET _IOW('p', 0x0c, unsigned long) /* Set IRQ rate */
54#define RTC_WIE_ON _IO('p', 0x0f) /* Watchdog int. enable on */ 62#define RTC_EPOCH_READ _IOR('p', 0x0d, unsigned long) /* Read epoch */
55#define RTC_WIE_OFF _IO('p', 0x10) /* ... off */ 63#define RTC_EPOCH_SET _IOW('p', 0x0e, unsigned long) /* Set epoch */
56 64
57#define RTC_ALM_SET _IOW('p', 0x07, struct linux_rtc_time) /* Set alarm time */ 65#define RTC_WKALM_SET _IOW('p', 0x0f, struct linux_rtc_wkalrm)/* Set wakeup alarm*/
58#define RTC_ALM_READ _IOR('p', 0x08, struct linux_rtc_time) /* Read alarm time */ 66#define RTC_WKALM_RD _IOR('p', 0x10, struct linux_rtc_wkalrm)/* Get wakeup alarm*/
59#define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */
60#define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */
61#define RTC_IRQP_READ _IOR('p', 0x0b, unsigned long) /* Read IRQ rate */
62#define RTC_IRQP_SET _IOW('p', 0x0c, unsigned long) /* Set IRQ rate */
63#define RTC_EPOCH_READ _IOR('p', 0x0d, unsigned long) /* Read epoch */
64#define RTC_EPOCH_SET _IOW('p', 0x0e, unsigned long) /* Set epoch */
65
66#define RTC_WKALM_SET _IOW('p', 0x0f, struct linux_rtc_wkalrm)/* Set wakeup alarm*/
67#define RTC_WKALM_RD _IOR('p', 0x10, struct linux_rtc_wkalrm)/* Get wakeup alarm*/
68 67
69/* interrupt flags */ 68/* interrupt flags */
70#define RTC_IRQF 0x80 /* any of the following is active */ 69#define RTC_IRQF 0x80 /* any of the following is active */