* [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls
@ 2019-11-13 16:41 Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 1/6] linux-user: Add support for enabling/disabling rtc features using ioctls Filip Bozuta
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Filip Bozuta @ 2019-11-13 16:41 UTC (permalink / raw)
To: qemu-devel; +Cc: laurent, Filip.Bozuta
Add ioctls for all rtc features that are currently supported in linux kernell.
Filip Bozuta (6):
linux-user: Add support for enabling/disabling rtc features using
ioctls
linux-user: Add set and read for rtc time and alarm using ioctls
linux-user: Add read and set for rtc periodic interrupt and epoch
using ioctls
linux-user: Add get and set for rtc wakeup alarm using ioctls
linux-user: Add get and set for rtc pll correction using ioctls
linux-user: Add rtc voltage low detector read and clear using ioctls
linux-user/ioctls.h | 23 +++++++++++++++++++++++
linux-user/syscall.c | 1 +
linux-user/syscall_defs.h | 36 ++++++++++++++++++++++++++++++++++++
linux-user/syscall_types.h | 25 +++++++++++++++++++++++++
4 files changed, 85 insertions(+)
--
2.7.4
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH for 5.0 1/6] linux-user: Add support for enabling/disabling rtc features using ioctls
2019-11-13 16:41 [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls Filip Bozuta
@ 2019-11-13 16:41 ` Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 2/6] linux-user: Add set and read for rtc time and alarm " Filip Bozuta
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Filip Bozuta @ 2019-11-13 16:41 UTC (permalink / raw)
To: qemu-devel; +Cc: laurent, Filip.Bozuta
Signed-off-by: Filip Bozuta <Filip.Bozuta@rt-rk.com>
---
linux-user/ioctls.h | 9 +++++++++
linux-user/syscall.c | 1 +
linux-user/syscall_defs.h | 10 ++++++++++
3 files changed, 20 insertions(+)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index c6b9d6a..97741c7 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -69,6 +69,15 @@
IOCTL(KDSETLED, 0, TYPE_INT)
IOCTL_SPECIAL(KDSIGACCEPT, 0, do_ioctl_kdsigaccept, TYPE_INT)
+ IOCTL(RTC_AIE_ON, 0, TYPE_NULL)
+ IOCTL(RTC_AIE_OFF, 0, TYPE_NULL)
+ IOCTL(RTC_UIE_ON, 0, TYPE_NULL)
+ IOCTL(RTC_UIE_OFF, 0, TYPE_NULL)
+ IOCTL(RTC_PIE_ON, 0, TYPE_NULL)
+ IOCTL(RTC_PIE_OFF, 0, TYPE_NULL)
+ IOCTL(RTC_WIE_ON, 0, TYPE_NULL)
+ IOCTL(RTC_WIE_OFF, 0, TYPE_NULL)
+
IOCTL(BLKROSET, IOC_W, MK_PTR(TYPE_INT))
IOCTL(BLKROGET, IOC_R, MK_PTR(TYPE_INT))
IOCTL(BLKRRPART, 0, TYPE_NULL)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index ce399a5..74c3c08 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -107,6 +107,7 @@
#include <netpacket/packet.h>
#include <linux/netlink.h>
#include <linux/if_alg.h>
+#include <linux/rtc.h>
#include "linux_loop.h"
#include "uname.h"
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 98c2119..f91579a 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -763,6 +763,16 @@ struct target_pollfd {
#define TARGET_KDSETLED 0x4B32 /* set led state [lights, not flags] */
#define TARGET_KDSIGACCEPT 0x4B4E
+/* real time clock ioctls */
+#define TARGET_RTC_AIE_ON TARGET_IO('p', 0x01)
+#define TARGET_RTC_AIE_OFF TARGET_IO('p', 0x02)
+#define TARGET_RTC_UIE_ON TARGET_IO('p', 0x03)
+#define TARGET_RTC_UIE_OFF TARGET_IO('p', 0x04)
+#define TARGET_RTC_PIE_ON TARGET_IO('p', 0x05)
+#define TARGET_RTC_PIE_OFF TARGET_IO('p', 0x06)
+#define TARGET_RTC_WIE_ON TARGET_IO('p', 0x0f)
+#define TARGET_RTC_WIE_OFF TARGET_IO('p', 0x10)
+
#if defined(TARGET_ALPHA) || defined(TARGET_MIPS) || defined(TARGET_SH4) || \
defined(TARGET_XTENSA)
#define TARGET_FIOGETOWN TARGET_IOR('f', 123, int)
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH for 5.0 2/6] linux-user: Add set and read for rtc time and alarm using ioctls
2019-11-13 16:41 [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 1/6] linux-user: Add support for enabling/disabling rtc features using ioctls Filip Bozuta
@ 2019-11-13 16:41 ` Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 3/6] linux-user: Add read and set for rtc periodic interrupt and epoch " Filip Bozuta
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Filip Bozuta @ 2019-11-13 16:41 UTC (permalink / raw)
To: qemu-devel; +Cc: laurent, Filip.Bozuta
Signed-off-by: Filip Bozuta <Filip.Bozuta@rt-rk.com>
---
linux-user/ioctls.h | 4 ++++
linux-user/syscall_defs.h | 4 ++++
linux-user/syscall_types.h | 11 +++++++++++
3 files changed, 19 insertions(+)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index 97741c7..ff1cdd2 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -77,6 +77,10 @@
IOCTL(RTC_PIE_OFF, 0, TYPE_NULL)
IOCTL(RTC_WIE_ON, 0, TYPE_NULL)
IOCTL(RTC_WIE_OFF, 0, TYPE_NULL)
+ IOCTL(RTC_ALM_SET, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtc_time)))
+ IOCTL(RTC_ALM_READ, IOC_R, MK_PTR(MK_STRUCT(STRUCT_rtc_time)))
+ IOCTL(RTC_RD_TIME, IOC_R, MK_PTR(MK_STRUCT(STRUCT_rtc_time)))
+ IOCTL(RTC_SET_TIME, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtc_time)))
IOCTL(BLKROSET, IOC_W, MK_PTR(TYPE_INT))
IOCTL(BLKROGET, IOC_R, MK_PTR(TYPE_INT))
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index f91579a..2298547 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -772,6 +772,10 @@ struct target_pollfd {
#define TARGET_RTC_PIE_OFF TARGET_IO('p', 0x06)
#define TARGET_RTC_WIE_ON TARGET_IO('p', 0x0f)
#define TARGET_RTC_WIE_OFF TARGET_IO('p', 0x10)
+#define TARGET_RTC_ALM_SET TARGET_IOW('p', 0x07, struct rtc_time)
+#define TARGET_RTC_ALM_READ TARGET_IOR('p', 0x08, struct rtc_time)
+#define TARGET_RTC_RD_TIME TARGET_IOR('p', 0x09, struct rtc_time)
+#define TARGET_RTC_SET_TIME TARGET_IOW('p', 0x0a, struct rtc_time)
#if defined(TARGET_ALPHA) || defined(TARGET_MIPS) || defined(TARGET_SH4) || \
defined(TARGET_XTENSA)
diff --git a/linux-user/syscall_types.h b/linux-user/syscall_types.h
index 4e36983..a35072a 100644
--- a/linux-user/syscall_types.h
+++ b/linux-user/syscall_types.h
@@ -255,6 +255,17 @@ STRUCT(blkpg_partition,
MK_ARRAY(TYPE_CHAR, BLKPG_DEVNAMELTH), /* devname */
MK_ARRAY(TYPE_CHAR, BLKPG_VOLNAMELTH)) /* volname */
+STRUCT(rtc_time,
+ TYPE_INT, /* tm_sec */
+ TYPE_INT, /* tm_min */
+ TYPE_INT, /* tm_hour */
+ TYPE_INT, /* tm_mday */
+ TYPE_INT, /* tm_mon */
+ TYPE_INT, /* tm_year */
+ TYPE_INT, /* tm_wday */
+ TYPE_INT, /* tm_yday */
+ TYPE_INT) /* tm_isdst */
+
STRUCT(blkpg_ioctl_arg,
TYPE_INT, /* op */
TYPE_INT, /* flags */
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH for 5.0 3/6] linux-user: Add read and set for rtc periodic interrupt and epoch using ioctls
2019-11-13 16:41 [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 1/6] linux-user: Add support for enabling/disabling rtc features using ioctls Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 2/6] linux-user: Add set and read for rtc time and alarm " Filip Bozuta
@ 2019-11-13 16:41 ` Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 4/6] linux-user: Add get and set for rtc wakeup alarm " Filip Bozuta
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Filip Bozuta @ 2019-11-13 16:41 UTC (permalink / raw)
To: qemu-devel; +Cc: laurent, Filip.Bozuta
Signed-off-by: Filip Bozuta <Filip.Bozuta@rt-rk.com>
---
linux-user/ioctls.h | 4 ++++
linux-user/syscall_defs.h | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index ff1cdd2..7d76a9f 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -81,6 +81,10 @@
IOCTL(RTC_ALM_READ, IOC_R, MK_PTR(MK_STRUCT(STRUCT_rtc_time)))
IOCTL(RTC_RD_TIME, IOC_R, MK_PTR(MK_STRUCT(STRUCT_rtc_time)))
IOCTL(RTC_SET_TIME, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtc_time)))
+ IOCTL(RTC_IRQP_READ, IOC_R, MK_PTR(TYPE_ULONG))
+ IOCTL(RTC_IRQP_SET, IOC_W, MK_PTR(TYPE_ULONG))
+ IOCTL(RTC_EPOCH_READ, IOC_R, MK_PTR(TYPE_ULONG))
+ IOCTL(RTC_EPOCH_SET, IOC_W, MK_PTR(TYPE_ULONG))
IOCTL(BLKROSET, IOC_W, MK_PTR(TYPE_INT))
IOCTL(BLKROGET, IOC_R, MK_PTR(TYPE_INT))
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 2298547..e69071f 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -776,6 +776,10 @@ struct target_pollfd {
#define TARGET_RTC_ALM_READ TARGET_IOR('p', 0x08, struct rtc_time)
#define TARGET_RTC_RD_TIME TARGET_IOR('p', 0x09, struct rtc_time)
#define TARGET_RTC_SET_TIME TARGET_IOW('p', 0x0a, struct rtc_time)
+#define TARGET_RTC_IRQP_READ TARGET_IOR('p', 0x0b, abi_ulong)
+#define TARGET_RTC_IRQP_SET TARGET_IOW('p', 0x0c, abi_ulong)
+#define TARGET_RTC_EPOCH_READ TARGET_IOR('p', 0x0d, abi_ulong)
+#define TARGET_RTC_EPOCH_SET TARGET_IOW('p', 0x0e, abi_ulong)
#if defined(TARGET_ALPHA) || defined(TARGET_MIPS) || defined(TARGET_SH4) || \
defined(TARGET_XTENSA)
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH for 5.0 4/6] linux-user: Add get and set for rtc wakeup alarm using ioctls
2019-11-13 16:41 [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls Filip Bozuta
` (2 preceding siblings ...)
2019-11-13 16:41 ` [PATCH for 5.0 3/6] linux-user: Add read and set for rtc periodic interrupt and epoch " Filip Bozuta
@ 2019-11-13 16:41 ` Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 5/6] linux-user: Add get and set for rtc pll correction " Filip Bozuta
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Filip Bozuta @ 2019-11-13 16:41 UTC (permalink / raw)
To: qemu-devel; +Cc: laurent, Filip.Bozuta
Signed-off-by: Filip Bozuta <Filip.Bozuta@rt-rk.com>
---
linux-user/ioctls.h | 2 ++
linux-user/syscall_defs.h | 2 ++
linux-user/syscall_types.h | 5 +++++
3 files changed, 9 insertions(+)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index 7d76a9f..5830315 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -85,6 +85,8 @@
IOCTL(RTC_IRQP_SET, IOC_W, MK_PTR(TYPE_ULONG))
IOCTL(RTC_EPOCH_READ, IOC_R, MK_PTR(TYPE_ULONG))
IOCTL(RTC_EPOCH_SET, IOC_W, MK_PTR(TYPE_ULONG))
+ IOCTL(RTC_WKALM_SET, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtc_wkalrm)))
+ IOCTL(RTC_WKALM_RD, IOC_R, MK_PTR(MK_STRUCT(STRUCT_rtc_wkalrm)))
IOCTL(BLKROSET, IOC_W, MK_PTR(TYPE_INT))
IOCTL(BLKROGET, IOC_R, MK_PTR(TYPE_INT))
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index e69071f..3a0eb6b 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -780,6 +780,8 @@ struct target_pollfd {
#define TARGET_RTC_IRQP_SET TARGET_IOW('p', 0x0c, abi_ulong)
#define TARGET_RTC_EPOCH_READ TARGET_IOR('p', 0x0d, abi_ulong)
#define TARGET_RTC_EPOCH_SET TARGET_IOW('p', 0x0e, abi_ulong)
+#define TARGET_RTC_WKALM_SET TARGET_IOW('p', 0x0f, struct rtc_wkalrm)
+#define TARGET_RTC_WKALM_RD TARGET_IOR('p', 0x10, struct rtc_wkalrm)
#if defined(TARGET_ALPHA) || defined(TARGET_MIPS) || defined(TARGET_SH4) || \
defined(TARGET_XTENSA)
diff --git a/linux-user/syscall_types.h b/linux-user/syscall_types.h
index a35072a..820bc8e 100644
--- a/linux-user/syscall_types.h
+++ b/linux-user/syscall_types.h
@@ -266,6 +266,11 @@ STRUCT(rtc_time,
TYPE_INT, /* tm_yday */
TYPE_INT) /* tm_isdst */
+STRUCT(rtc_wkalrm,
+ TYPE_CHAR, /* enabled */
+ TYPE_CHAR, /* pending */
+ MK_STRUCT(STRUCT_rtc_time)) /* time */
+
STRUCT(blkpg_ioctl_arg,
TYPE_INT, /* op */
TYPE_INT, /* flags */
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH for 5.0 5/6] linux-user: Add get and set for rtc pll correction using ioctls
2019-11-13 16:41 [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls Filip Bozuta
` (3 preceding siblings ...)
2019-11-13 16:41 ` [PATCH for 5.0 4/6] linux-user: Add get and set for rtc wakeup alarm " Filip Bozuta
@ 2019-11-13 16:41 ` Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 6/6] linux-user: Add rtc voltage low detector read and clear " Filip Bozuta
2019-11-13 17:03 ` [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls Laurent Vivier
6 siblings, 0 replies; 8+ messages in thread
From: Filip Bozuta @ 2019-11-13 16:41 UTC (permalink / raw)
To: qemu-devel; +Cc: laurent, Filip.Bozuta
Signed-off-by: Filip Bozuta <Filip.Bozuta@rt-rk.com>
---
linux-user/ioctls.h | 2 ++
linux-user/syscall_defs.h | 14 ++++++++++++++
linux-user/syscall_types.h | 9 +++++++++
3 files changed, 25 insertions(+)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index 5830315..eea65e1 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -87,6 +87,8 @@
IOCTL(RTC_EPOCH_SET, IOC_W, MK_PTR(TYPE_ULONG))
IOCTL(RTC_WKALM_SET, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtc_wkalrm)))
IOCTL(RTC_WKALM_RD, IOC_R, MK_PTR(MK_STRUCT(STRUCT_rtc_wkalrm)))
+ IOCTL(RTC_PLL_GET, IOC_R, MK_PTR(MK_STRUCT(STRUCT_rtc_pll_info)))
+ IOCTL(RTC_PLL_SET, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtc_pll_info)))
IOCTL(BLKROSET, IOC_W, MK_PTR(TYPE_INT))
IOCTL(BLKROGET, IOC_R, MK_PTR(TYPE_INT))
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 3a0eb6b..367e9bd 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -763,6 +763,16 @@ struct target_pollfd {
#define TARGET_KDSETLED 0x4B32 /* set led state [lights, not flags] */
#define TARGET_KDSIGACCEPT 0x4B4E
+struct target_rtc_pll_info {
+ int pll_ctrl;
+ int pll_value;
+ int pll_max;
+ int pll_min;
+ int pll_posmult;
+ int pll_negmult;
+ abi_long pll_clock;
+};
+
/* real time clock ioctls */
#define TARGET_RTC_AIE_ON TARGET_IO('p', 0x01)
#define TARGET_RTC_AIE_OFF TARGET_IO('p', 0x02)
@@ -782,6 +792,10 @@ struct target_pollfd {
#define TARGET_RTC_EPOCH_SET TARGET_IOW('p', 0x0e, abi_ulong)
#define TARGET_RTC_WKALM_SET TARGET_IOW('p', 0x0f, struct rtc_wkalrm)
#define TARGET_RTC_WKALM_RD TARGET_IOR('p', 0x10, struct rtc_wkalrm)
+#define TARGET_RTC_PLL_GET TARGET_IOR('p', 0x11, \
+ struct target_rtc_pll_info)
+#define TARGET_RTC_PLL_SET TARGET_IOW('p', 0x12, \
+ struct target_rtc_pll_info)
#if defined(TARGET_ALPHA) || defined(TARGET_MIPS) || defined(TARGET_SH4) || \
defined(TARGET_XTENSA)
diff --git a/linux-user/syscall_types.h b/linux-user/syscall_types.h
index 820bc8e..baf43ee 100644
--- a/linux-user/syscall_types.h
+++ b/linux-user/syscall_types.h
@@ -271,6 +271,15 @@ STRUCT(rtc_wkalrm,
TYPE_CHAR, /* pending */
MK_STRUCT(STRUCT_rtc_time)) /* time */
+STRUCT(rtc_pll_info,
+ TYPE_INT, /* pll_ctrl */
+ TYPE_INT, /* pll_value */
+ TYPE_INT, /* pll_max */
+ TYPE_INT, /* pll_min */
+ TYPE_INT, /* pll_posmult */
+ TYPE_INT, /* pll_negmult */
+ TYPE_ULONG) /* pll_clock */
+
STRUCT(blkpg_ioctl_arg,
TYPE_INT, /* op */
TYPE_INT, /* flags */
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH for 5.0 6/6] linux-user: Add rtc voltage low detector read and clear using ioctls
2019-11-13 16:41 [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls Filip Bozuta
` (4 preceding siblings ...)
2019-11-13 16:41 ` [PATCH for 5.0 5/6] linux-user: Add get and set for rtc pll correction " Filip Bozuta
@ 2019-11-13 16:41 ` Filip Bozuta
2019-11-13 17:03 ` [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls Laurent Vivier
6 siblings, 0 replies; 8+ messages in thread
From: Filip Bozuta @ 2019-11-13 16:41 UTC (permalink / raw)
To: qemu-devel; +Cc: laurent, Filip.Bozuta
Signed-off-by: Filip Bozuta <Filip.Bozuta@rt-rk.com>
---
linux-user/ioctls.h | 2 ++
linux-user/syscall_defs.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index eea65e1..330e502 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -89,6 +89,8 @@
IOCTL(RTC_WKALM_RD, IOC_R, MK_PTR(MK_STRUCT(STRUCT_rtc_wkalrm)))
IOCTL(RTC_PLL_GET, IOC_R, MK_PTR(MK_STRUCT(STRUCT_rtc_pll_info)))
IOCTL(RTC_PLL_SET, IOC_W, MK_PTR(MK_STRUCT(STRUCT_rtc_pll_info)))
+ IOCTL(RTC_VL_READ, IOC_R, TYPE_INT)
+ IOCTL(RTC_VL_CLR, 0, TYPE_NULL)
IOCTL(BLKROSET, IOC_W, MK_PTR(TYPE_INT))
IOCTL(BLKROGET, IOC_R, MK_PTR(TYPE_INT))
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 367e9bd..6ad827b 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -796,6 +796,8 @@ struct target_rtc_pll_info {
struct target_rtc_pll_info)
#define TARGET_RTC_PLL_SET TARGET_IOW('p', 0x12, \
struct target_rtc_pll_info)
+#define TARGET_RTC_VL_READ TARGET_IOR('p', 0x13, int)
+#define TARGET_RTC_VL_CLR TARGET_IO('p', 0x14)
#if defined(TARGET_ALPHA) || defined(TARGET_MIPS) || defined(TARGET_SH4) || \
defined(TARGET_XTENSA)
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls
2019-11-13 16:41 [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls Filip Bozuta
` (5 preceding siblings ...)
2019-11-13 16:41 ` [PATCH for 5.0 6/6] linux-user: Add rtc voltage low detector read and clear " Filip Bozuta
@ 2019-11-13 17:03 ` Laurent Vivier
6 siblings, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2019-11-13 17:03 UTC (permalink / raw)
To: Filip Bozuta, qemu-devel; +Cc: laurent
Hi Filip,
Le 13/11/2019 à 17:41, Filip Bozuta a écrit :
> Add ioctls for all rtc features that are currently supported in linux kernell.
>
> Filip Bozuta (6):
> linux-user: Add support for enabling/disabling rtc features using
> ioctls
> linux-user: Add set and read for rtc time and alarm using ioctls
> linux-user: Add read and set for rtc periodic interrupt and epoch
> using ioctls
> linux-user: Add get and set for rtc wakeup alarm using ioctls
> linux-user: Add get and set for rtc pll correction using ioctls
> linux-user: Add rtc voltage low detector read and clear using ioctls
>
> linux-user/ioctls.h | 23 +++++++++++++++++++++++
> linux-user/syscall.c | 1 +
> linux-user/syscall_defs.h | 36 ++++++++++++++++++++++++++++++++++++
> linux-user/syscall_types.h | 25 +++++++++++++++++++++++++
> 4 files changed, 85 insertions(+)
>
Could you add in the description of each patch the name the ioctls it
implements, their purpose (you can cut&paste from man(rtc)) and how you
have tested them?
Thanks,
Laurent
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-11-13 17:06 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-13 16:41 [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 1/6] linux-user: Add support for enabling/disabling rtc features using ioctls Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 2/6] linux-user: Add set and read for rtc time and alarm " Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 3/6] linux-user: Add read and set for rtc periodic interrupt and epoch " Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 4/6] linux-user: Add get and set for rtc wakeup alarm " Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 5/6] linux-user: Add get and set for rtc pll correction " Filip Bozuta
2019-11-13 16:41 ` [PATCH for 5.0 6/6] linux-user: Add rtc voltage low detector read and clear " Filip Bozuta
2019-11-13 17:03 ` [PATCH for 5.0 0/6] linux-user: Add support for real time clock ioctls Laurent Vivier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).