]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/rtc.h
rtc: add ioctl to get/clear battery low voltage status
[karo-tx-linux.git] / include / linux / rtc.h
index fcabfb4873c8dd6e8466233de9d557be4bf2101e..f071b3922c67f7a253c0b5f978b4bec1b7a690df 100644 (file)
@@ -91,6 +91,9 @@ struct rtc_pll_info {
 #define RTC_PLL_GET    _IOR('p', 0x11, struct rtc_pll_info)  /* Get PLL correction */
 #define RTC_PLL_SET    _IOW('p', 0x12, struct rtc_pll_info)  /* Set PLL correction */
 
+#define RTC_VL_READ    _IOR('p', 0x13, int)    /* Voltage low detector */
+#define RTC_VL_CLR     _IO('p', 0x14)          /* Clear voltage low information */
+
 /* interrupt flags */
 #define RTC_IRQF 0x80  /* Any of the following is active */
 #define RTC_PF 0x40    /* Periodic interrupt */