Message ID | 1500296815-10243-2-git-send-email-bhupinder.thakur@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp4494945qge; Mon, 17 Jul 2017 06:09:21 -0700 (PDT) X-Received: by 10.107.148.135 with SMTP id w129mr18922384iod.234.1500296961030; Mon, 17 Jul 2017 06:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500296961; cv=none; d=google.com; s=arc-20160816; b=0sGY7un0NbKz09vVxk1r4XD+6pKUYiBdgqnoRQrVzPubAbMQIws7u0hh5cIlv0zCbk Q0g9UbQ1jpVDxnpOtqoQZRgp/rsUPP4Gqwu0RWXzrFpBn3Xn1YpuACVcOrApQj2jQhf+ /91zetV6XFCL9kUF1cufx6osrHVcFF2yjhAHyik3iy7QkvsykSxlysCX1gN1oJ3VxDsX rF/63pumV8XLKBtLnxcJI/t9A1MmfqAvHVL5OD+5ZVORhN+OCRChDdOgV5o18O0gY78R 16Lr0WfhmwoNYphq9mMp1+aDq1A0cu+qAb9FeAxGCtysgYeCDHVqbj4etHTEEUzA1yE9 IohA== 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=YNFc0j298QkY4YurCpxHociBErhivLtYglP/V6PUGwQF9hLaTarQxsRoRmkukrD4zE 1AXVHcs6tLIqozu4jHgWpDeRzAMm1zsEE8j1Fo4iPHgKWSU7VbBRbs9uDdQhWsNi1wbg a7p/C9GmxurV4rgHeF3FZ7XSVjJN52tDjtKcRKkkHN8oPfOSwiPDhX3Mt+2zFrBuiT7q T7pevPwKJPebo8F7H85Q70y+jitUy2RFGhmzW+tZJ4yWt5Zp+/FcfOwF8qGbvATgY1NO i5vl/NAFwKj1HgBbdPFfK9jxhlyQ70KoNlY94rsNjp7Tf7DVl8hpQJotPWTlNHW7rLNZ y5ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=FLLD+A3m; 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 k18si16970101ioi.265.2017.07.17.06.09.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2017 06:09:21 -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.b=FLLD+A3m; 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 1dX5jy-00047P-Eb; Mon, 17 Jul 2017 13:07:10 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <bhupinder.thakur@linaro.org>) id 1dX5jx-00047D-9O for xen-devel@lists.xenproject.org; Mon, 17 Jul 2017 13:07:09 +0000 Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id FC/D6-01735-C76BC695; Mon, 17 Jul 2017 13:07:08 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRWlGSWpSXmKPExsVyMfTAOt3qbTm RButu61l83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBn3Xv5kKmgVqDgy1a+BsYGvi5GLQ0hgBqPE rm2N7CAOi8A8Zokpi1uZuhg5OSQE+lkljv3W7WLkALLTJG78ioYIV0i8+/WXFcQWEtCSOHpqN ivEoFYmicufl7KC1LMJmEjM6pAAqRERUJK4t2oyE0gNs8AFRomZf5+zgSSEBZIkVk54zQRSzy KgKnHqsBFImFfAW2Jhz0p2iF1yEjfPdTKD2JwCPhJnNqxmgtjrLXHzyESmCYwCCxgZVjFqFKc WlaUW6Roa6iUVZaZnlOQmZuboGhqY6uWmFhcnpqfmJCYV6yXn525iBAYVAxDsYFzZ7nyIUZKD SUmU9yJbdqQQX1J+SmVGYnFGfFFpTmrxIUYZDg4lCV73rTmRQoJFqempFWmZOcDwhklLcPAoi fAygqR5iwsSc4sz0yFSpxjtOa5cWfeFiWPD6vVAcsqB7UDy1YT/35iEWPLy81KlxHn1QNoEQN oySvPghsLi8RKjrJQwLyPQmUI8BalFuZklqPKvGMU5GJWEeT9tAZrCk5lXArf7FdBZTEBnCfu CnVWSiJCSamCsXznxmEoc2xO7j3djeif/v3FL+s0djukGX9ZdVnv18Vrys/xlOxfM0XIM1r8g Wson2X4/8hHj5GNNXkvzN6+21fFeHxMWzL7Y6ZVnl1yI6JGEELM0EdkzS5o95sYWJ+fVuL7n+ 6DtqfxhSWL8lx/f+L2D7+TeTBB/X3iO13pmwWaBvX3/Th9VYinOSDTUYi4qTgQA41n1EMICAA A= X-Env-Sender: bhupinder.thakur@linaro.org X-Msg-Ref: server-16.tower-206.messagelabs.com!1500296826!87352006!1 X-Originating-IP: [209.85.192.174] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 21472 invoked from network); 17 Jul 2017 13:07:07 -0000 Received: from mail-pf0-f174.google.com (HELO mail-pf0-f174.google.com) (209.85.192.174) by server-16.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 17 Jul 2017 13:07:07 -0000 Received: by mail-pf0-f174.google.com with SMTP id e26so8413843pfd.0 for <xen-devel@lists.xenproject.org>; Mon, 17 Jul 2017 06:07:07 -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=FLLD+A3msfMYDRFdEk9l7Hzyi4YQVi9KkBejo5URLwxjtrKQnYKuELzU5b5BSqn9QU ubuR0ISZZWvMUqxLqPb6lbm3WY3gM6CjXIrTpFQiDmhQr+Dtj1Uafg9K13KvPHOzUk3w JXuJjJtx/1Y7uAyVOE8P/2moYRZnq20ugogag= 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=txEXg348U9CZKdydU1Ago+FSgDZbgdTbmthJOVbu7RCGTZIp+6X0JI6nBiK4VzZk+i XFKy23s687E3s8oko0t69WP9WsEUTy5krDpmgjOVibO2phuwYlwVQ7yeTB6vL3weOS3E P99qbwaWxqfN1jR0cDJgiLAA6H0MVBP79+DSCcufajNziHymNlliYMi9YnTtRYpt/+BQ EY8yNfra3e7FJZceAcMhwvfieb7RoqTFGetCT1vF+oY3H2fJZgYdJBuRO2OKL3E8UxjF nif7GwjENrjroIn73aWToR5E+GSLvfsHakSp6HFuhBdReKJdFygUgurFVpSRLzRoed7c XmNA== X-Gm-Message-State: AIVw111mew8pNWfx7ViV6kYjfdsbR1wo905/hzoEHiofl7+kxPgRWBxG 001tRngGKA4y7rLm7RaswQ== X-Received: by 10.98.38.68 with SMTP id m65mr10482267pfm.47.1500296826020; Mon, 17 Jul 2017 06:07:06 -0700 (PDT) Received: from blr-ubuntu-linaro.wlan.qualcomm.com ([103.5.19.18]) by smtp.gmail.com with ESMTPSA id z69sm15705665pgz.42.2017.07.17.06.07.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 06:07:05 -0700 (PDT) From: Bhupinder Thakur <bhupinder.thakur@linaro.org> To: xen-devel@lists.xenproject.org Date: Mon, 17 Jul 2017 18:36:31 +0530 Message-Id: <1500296815-10243-2-git-send-email-bhupinder.thakur@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500296815-10243-1-git-send-email-bhupinder.thakur@linaro.org> References: <1500296815-10243-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/25 v6] 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__ */ /*