remove [64] cleanup TODO
[trinity.git] / ioctls / rtc.c
blob7ca8cf4853a967644fc46598232168789b70724d
1 #include <linux/ioctl.h>
2 #include <linux/rtc.h>
4 #include "ioctls.h"
5 #include "utils.h"
7 static const struct ioctl rtc_ioctls[] = {
8 IOCTL(RTC_AIE_ON),
9 IOCTL(RTC_AIE_OFF),
10 IOCTL(RTC_UIE_ON),
11 IOCTL(RTC_UIE_OFF),
12 IOCTL(RTC_PIE_ON),
13 IOCTL(RTC_PIE_OFF),
14 IOCTL(RTC_WIE_ON),
15 IOCTL(RTC_WIE_OFF),
16 IOCTL(RTC_ALM_SET),
17 IOCTL(RTC_ALM_READ),
18 IOCTL(RTC_RD_TIME),
19 IOCTL(RTC_SET_TIME),
20 IOCTL(RTC_IRQP_READ),
21 IOCTL(RTC_IRQP_SET),
22 IOCTL(RTC_EPOCH_READ),
23 IOCTL(RTC_EPOCH_SET),
24 IOCTL(RTC_WKALM_SET),
25 IOCTL(RTC_WKALM_RD),
26 IOCTL(RTC_PLL_GET),
27 IOCTL(RTC_PLL_SET),
28 #ifdef RTC_VL_READ
29 IOCTL(RTC_VL_READ),
30 #endif
31 #ifdef RTC_VL_CLR
32 IOCTL(RTC_VL_CLR),
33 #endif
36 static const char *const rtc_devs[] = {
37 "rtc",
40 static const struct ioctl_group rtc_grp = {
41 .devtype = DEV_CHAR,
42 .devs = rtc_devs,
43 .devs_cnt = ARRAY_SIZE(rtc_devs),
44 .sanitise = pick_random_ioctl,
45 .ioctls = rtc_ioctls,
46 .ioctls_cnt = ARRAY_SIZE(rtc_ioctls),
49 REG_IOCTL_GROUP(rtc_grp)