Message ID | 1503910570-24427-2-git-send-email-bhupinder.thakur@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4547975qge; Mon, 28 Aug 2017 01:58:44 -0700 (PDT) X-Received: by 10.36.39.77 with SMTP id g74mr5747651ita.89.1503910724076; Mon, 28 Aug 2017 01:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503910724; cv=none; d=google.com; s=arc-20160816; b=XsaYy1IVND5FPVf3XtScCm/dfPmLcRKCYWECH8I2wnf6iNmaeHtpSqmQCbpZ4wTpKI srJCcfu81IRNV+8b0od2rD/8UX/eEghgMO6ReXKhvYFJhhecGN7aoDdpXjDpxDNUU12S hqXtmdn0RylOeA+Zvnr9+56e/GXw1OzXTxOwaYv7t+dIymcTDjUajBLPyRt5Lc9l1ec+ sSS4PeTfuvp49tzJ4vuoUFjcCzArd2GrPsb9q1aZ/9Z9IOupVZW10EwiDEDdtKde+vs9 CQ0YBN205u7M1WOMsq0sMG2IYDsZ/5CH/YiSPoB9zpcGwFD8H1EaTOsLB+zK/loY6L0A caHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:dkim-signature:arc-authentication-results; bh=h2Lgi14r56Z7LAI2sE2QMZenSofcYUDVfI3wXyIoGr8=; b=Iue2jJC/z3KNwZ1Dsw/PqNlD6dtzUhlEnJvemeRI5dd5Y35l2zvGE0uM8bmpT28SdD HFnVVUSsCXEibh2HmcT/2kHdQI4BQjnBeCXnBfmGdnWSopDLAcrtG2MX7X7xZlRHu3q5 6IlmiJ6v0LPPJw41orFY6Yy71NcGTIyYUnvbW2ey7p7MrwcxMg4pVG0wNHJnEEgG+9wq GJtL9fNF0T/oe0e2mvnwaORaIafguavo2mlvYotb2g+hAnqHT0+CIsLoMkleby9iyS1z 3xOc6AgKZMS57DsQlMcKSAYQqBg0wh16rfsvvPxzRatZ7+U5mNLasJ8rnKC8decBdJds WGnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DUPNhwmF; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <xen-devel-bounces@lists.xen.org> Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id m186si7876889ith.33.2017.08.28.01.58.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Aug 2017 01:58:44 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DUPNhwmF; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1dmFqM-0004et-4O; Mon, 28 Aug 2017 08:56:26 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <bhupinder.thakur@linaro.org>) id 1dmFqJ-0004eh-V1 for xen-devel@lists.xenproject.org; Mon, 28 Aug 2017 08:56:24 +0000 Received: from [85.158.143.35] by server-3.bemta-6.messagelabs.com id 2D/3A-03044-7BAD3A95; Mon, 28 Aug 2017 08:56:23 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDIsWRWlGSWpSXmKPExsVyMfTABt1ttxZ HGqx9r2fxfctkJgdGj8MfrrAEMEaxZuYl5VcksGbce/mTqaBVoOLIVL8Gxga+LkYuDiGBmYwS 7b+3MYE4LALzmCV+TrzODOJICPSzSnxe/5exi5ETyEmTeH7/IBuEXSbx9tleMFtIQEvi6KnZr BCj9jNJnP5yFKibg4NNwERiVocESI2IgJLEvVWTwTYwC1xglJj59zlYs7BAksTUC8eZQGwWAV WJn3MnsoLYvALeEiuONkItk5O4ea6TGcTmFPCR2LH2LjvEYm+JrtcfWCcwCixgZFjFqFGcWlS WWqRraKCXVJSZnlGSm5iZA+SZ6eWmFhcnpqfmJCYV6yXn525iBIYWAxDsYDz+Pu4QoyQHk5Io 786KxZFCfEn5KZUZicUZ8UWlOanFhxhlODiUJHjP3ATKCRalpqdWpGXmAIMcJi3BwaMkwvvjB lCat7ggMbc4Mx0idYrRkuPKlXVfmDg2rF4PJKcc2P6FSYglLz8vVUqc1wdkngBIQ0ZpHtw4WC ReYpSVEuZlBDpQiKcgtSg3swRV/hWjOAejkjCvN8gUnsy8Eritr4AOYgI6SFFwIchBJYkIKak GxlRmiVWs4tM7/rfbJv6IWfGj7S9LxUSvUyfOF04/G872wnfd6V3PlSR1JcLW9O1mbLuj83o5 W1jcOo75LyVOJYjvijv7pZn7xq7DNy++vPsgseCy8uWs+FdWEwKWcTCY9XmWShxxa2t/IpksN TG++WLzIQGL2ia7+boRtlzvM/4HrU/088suVWIpzkg01GIuKk4EAK3kkZ2/AgAA X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-8.tower-21.messagelabs.com!1503910581!79756814!1 X-Originating-IP: [209.85.192.176] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 28775 invoked from network); 28 Aug 2017 08:56:22 -0000 Received: from mail-pf0-f176.google.com (HELO mail-pf0-f176.google.com) (209.85.192.176) by server-8.tower-21.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 28 Aug 2017 08:56:22 -0000 Received: by mail-pf0-f176.google.com with SMTP id h75so14497990pfh.1 for <xen-devel@lists.xenproject.org>; Mon, 28 Aug 2017 01:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hEkKGCPm47FMsgYwL/NrMZbix4eTUybWDHit8lEDoDc=; b=DUPNhwmF9ZXyjvWAkIVDs9nQ9qlmQ3t+vt3a18InUd0XuZuUFr3kJpSC2i1glQMKuw xBGw2+tsRcolyra5BdmkFoKT6oE5OJFDL/YtOBDoH2MmUuB33DuvkzP+mts9cRScswet e9YFFh/HXKI0iAwBhGiQlBbZUDRZ9G04BGd+I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hEkKGCPm47FMsgYwL/NrMZbix4eTUybWDHit8lEDoDc=; b=AWhJvFYFLezJpHErmfYj1RlJbuO6hecYGunADEJgPOXFNYt3s9yy6cAu9vusEU/+U0 R03/f0ZOy9y8nyiPlSXXQz4U60bpi7vEZwJ0IdF/BlP0bNddgWgzgblQO3yKA/t5U7eG zs8M8kQpwLuDvX514dqT4OZiesBAg0+oxWxjihrHyXkgL+IQ8b93Tw/sVxWDg85VVEvR 1033kR1py5J4D12F5xxOZuSiM6486bPBWpux/JdlEAibYC7X2ixniMU3fUb8dAqjHCel ZOXtPMwrMNc6LoxGCHKOyFbnp7uyBTVc6DOmA4FYuRsCH6xgWTAD0Gdy/TWf3SMRUyma SpqQ== X-Gm-Message-State: AHYfb5gDYDwTstsviD7W9E2aCRa/wpAguxp+hrmu17c4COiQLuyVNUxJ 69iRRcK4lD1LkNJWc8uhGQ== X-Received: by 10.99.47.66 with SMTP id v63mr6656102pgv.4.1503910581072; Mon, 28 Aug 2017 01:56:21 -0700 (PDT) Received: from blr-ubuntu-linaro.wlan.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id d88sm21713569pfl.158.2017.08.28.01.56.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Aug 2017 01:56:20 -0700 (PDT) From: Bhupinder Thakur <bhupinder.thakur@linaro.org> To: xen-devel@lists.xenproject.org Date: Mon, 28 Aug 2017 14:25:44 +0530 Message-Id: <1503910570-24427-2-git-send-email-bhupinder.thakur@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503910570-24427-1-git-send-email-bhupinder.thakur@linaro.org> References: <1503910570-24427-1-git-send-email-bhupinder.thakur@linaro.org> Cc: Wei Liu <wei.liu2@citrix.com>, Julien Grall <julien.grall@arm.com>, Stefano Stabellini <sstabellini@kernel.org>, Ian Jackson <ian.jackson@eu.citrix.com> Subject: [Xen-devel] [PATCH 01/27 v8] xen/arm: vpl011: Define common ring buffer helper functions in console.h X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> |
Series |
SBSA UART emulation support in Xen
|
expand
|
diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index 7e474bb..e8033d2 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -21,6 +21,7 @@ #include "utils.h" #include "io.h" +#include <string.h> #include <xenevtchn.h> #include <xengnttab.h> #include <xenstore.h> @@ -29,7 +30,6 @@ #include <stdlib.h> #include <errno.h> -#include <string.h> #include <poll.h> #include <fcntl.h> #include <unistd.h> diff --git a/xen/include/public/io/console.h b/xen/include/public/io/console.h index e2cd97f..5e45e1c 100644 --- a/xen/include/public/io/console.h +++ b/xen/include/public/io/console.h @@ -27,6 +27,8 @@ #ifndef __XEN_PUBLIC_IO_CONSOLE_H__ #define __XEN_PUBLIC_IO_CONSOLE_H__ +#include "ring.h" + typedef uint32_t XENCONS_RING_IDX; #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1)) @@ -38,6 +40,8 @@ struct xencons_interface { XENCONS_RING_IDX out_cons, out_prod; }; +DEFINE_XEN_FLEX_RING(xencons); + #endif /* __XEN_PUBLIC_IO_CONSOLE_H__ */ /*