--- hurd/pioctl.defs | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 hurd/pioctl.defs
diff --git a/hurd/pioctl.defs b/hurd/pioctl.defs new file mode 100644 index 00000000..144ed14b --- /dev/null +++ b/hurd/pioctl.defs @@ -0,0 +1,34 @@ +/* Definitions for /dev/rtc ioctls */ + +/* Ioctl group 'p'; the subsystem is derived from calculations in + hurd/ioctls.defs. */ +subsystem pioctl 140000; + +#include <hurd/ioctl_types.defs> + +import <hurd/rtc.h>; + +#ifdef PIOCTL_IMPORTS +PIOCTL_IMPORTS +#endif + +INTR_INTERFACE + +/* This is the arg for a struct rtc_time as specified by the + definition of _IOT_rtc_time in $(hurd)/rtc/rtc.h. */ +type rtc_time_t = struct[9] of int; + +/* TODO: adding other ioctl calls for /dev/rtc in mc146818rtc.h */ +skip; skip; skip; skip; /* 0 1 2 3 */ +skip; skip; skip; skip; /* 4 5 6 7 */ +skip; /* 8 */ + +/* 9 RTC_RD_TIME */ +routine pioctl_rtc_rd_time ( + reqport: io_t; + out time: rtc_time_t); + +/* 10 RTC_SET_TIME */ +routine pioctl_rtc_set_time ( + reqport: io_t; + time: rtc_time_t); -- 2.47.0