From nobody Mon Feb 9 09:52:52 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1573663850; cv=none; d=zoho.com; s=zohoarc; b=HumtkbmOOHNHj5e2AiVFMbegTRe+VfGXUjTU2kWTUWAFyQ4icZbJpCdgoHvefJopWUkI9DMFQNnqsAvVJYeguly97WMaT4QNLB8ZWdSR+LLS6HV4MifC5XUTCI+CE8pkULXRworRK7i6kQxk8wuZsT1qAiw1X4K429vw1LGynpQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573663850; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=OFvZSsWN4UViT/WyOPcJfVA8uLpuJ9ekODeyOgfzkco=; b=W4NkWzaRTbMMh3ycsX6UHxwIxO/gFz1El5y+bSfYCY+SULdbwbXy7lb/UOkBHHmarh+cVujIg0yIkLtaeHo15wrisTX4iqGm53Rlv94SCyC524Da4tEJxdcg/xhA2sRj6qBRtIL9nxeXpq0o+f4wPVsmomVwJl4FgITOeH9c0Vw= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1573663850930910.9871467967249; Wed, 13 Nov 2019 08:50:50 -0800 (PST) Received: from localhost ([::1]:47430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUvqy-0000EM-Iw for importer@patchew.org; Wed, 13 Nov 2019 11:50:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44999) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUviw-0000x2-OW for qemu-devel@nongnu.org; Wed, 13 Nov 2019 11:42:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUviv-0005ls-Lx for qemu-devel@nongnu.org; Wed, 13 Nov 2019 11:42:30 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:36123 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iUvit-0005kZ-N7 for qemu-devel@nongnu.org; Wed, 13 Nov 2019 11:42:27 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id B62FE1A229B; Wed, 13 Nov 2019 17:41:20 +0100 (CET) Received: from rtrkw493-lin.domain.local (rtrkw493-lin.domain.local [10.10.14.93]) by mail.rt-rk.com (Postfix) with ESMTPSA id 743B31A22BB; Wed, 13 Nov 2019 17:41:20 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Filip Bozuta To: qemu-devel@nongnu.org Subject: [PATCH for 5.0 6/6] linux-user: Add rtc voltage low detector read and clear using ioctls Date: Wed, 13 Nov 2019 17:41:11 +0100 Message-Id: <1573663271-31519-7-git-send-email-Filip.Bozuta@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573663271-31519-1-git-send-email-Filip.Bozuta@rt-rk.com> References: <1573663271-31519-1-git-send-email-Filip.Bozuta@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@viver.eu, Filip.Bozuta@rt-rk.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Filip Bozuta --- 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) =20 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) =20 #if defined(TARGET_ALPHA) || defined(TARGET_MIPS) || defined(TARGET_SH4) |= | \ defined(TARGET_XTENSA) --=20 2.7.4