From patchwork Fri Apr 1 15:49:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 64867 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp811037lbc; Fri, 1 Apr 2016 08:50:50 -0700 (PDT) X-Received: by 10.66.190.168 with SMTP id gr8mr32021135pac.23.1459525849955; Fri, 01 Apr 2016 08:50:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gp8si18232527pac.23.2016.04.01.08.50.49; Fri, 01 Apr 2016 08:50:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759310AbcDAPu2 (ORCPT + 7 others); Fri, 1 Apr 2016 11:50:28 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:33799 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759312AbcDAPuX (ORCPT ); Fri, 1 Apr 2016 11:50:23 -0400 Received: by mail-pa0-f47.google.com with SMTP id fe3so93890308pab.1 for ; Fri, 01 Apr 2016 08:50: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=45bVV5JXDgjL2WKfd8tQqo+wK3kmdOMBdDMtXtQa++s=; b=kEITB0KUxJAOGKI4fEYMoGt8SmrFXBdHCiW+drqR6nR/+KCeXfj+l7Rhbd/KkoOcPL zYatYHmcUmUCKY88/yyw4EFvYi+nPQlzpiyzNKo1b8Bi3uj0pLfZEZwtmZxpIjg2DQtP Nvx0YWKCpl5lvrCrk1ENjDU8XAyUXKvuG5luc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=45bVV5JXDgjL2WKfd8tQqo+wK3kmdOMBdDMtXtQa++s=; b=Y3a/6fTvancB/6CV6ga3TQtvZTP5Oz34LoOe0yNWwECV9QcZp+fRwt71IFmalOyyoc G9D1InBcYXlJ1aLn52f8eePLIVVc8Ntk12/sv4m2e37troFtffpfK/Gif0wU7BFSb3rA uEap6p0K9nlGefwTdAYqYcOr6zUkPX0IYE8d0nDO6laF1luduX3NEAG613FPXDcqo19o 2cXWcusAcvEpoSIvfqCcyH7ILMmIP6ovEC2Q6TQOYbidMF0rBXcAT2JfsEomIlkqOANM 5j0rU8us89XFMyYPNxHN3WyKtJfHG3pYWGuLg9d2IgovZDsxskKA/q0mwh4wemQrbonB fg/Q== X-Gm-Message-State: AD7BkJLxzY/n6KGG7PPlJYQdw7Rskt8wPqm3i20h5t4wT1e/hnvbELwY7X8oomsbCMeWO4u/ X-Received: by 10.66.101.35 with SMTP id fd3mr31822949pab.7.1459525822438; Fri, 01 Apr 2016 08:50:22 -0700 (PDT) Received: from localhost.localdomain ([167.160.116.218]) by smtp.gmail.com with ESMTPSA id yj1sm22536791pac.16.2016.04.01.08.50.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Apr 2016 08:50:21 -0700 (PDT) From: Shannon Zhao To: linux-arm-kernel@lists.infradead.org, stefano.stabellini@citrix.com Cc: david.vrabel@citrix.com, devicetree@vger.kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will.deacon@arm.com, julien.grall@arm.com, peter.huangpeng@huawei.com, xen-devel@lists.xen.org, zhaoshenglong@huawei.com, shannon.zhao@linaro.org Subject: [PATCH v10 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio Date: Fri, 1 Apr 2016 23:49:03 +0800 Message-Id: <1459525755-36968-6-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1459525755-36968-1-git-send-email-shannon.zhao@linaro.org> References: <1459525755-36968-1-git-send-email-shannon.zhao@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a new type of Xen map space for Dom0 to map device's MMIO region. Signed-off-by: Shannon Zhao --- include/xen/interface/memory.h | 1 + 1 file changed, 1 insertion(+) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/xen/interface/memory.h b/include/xen/interface/memory.h index 2ecfe4f..9aa8988 100644 --- a/include/xen/interface/memory.h +++ b/include/xen/interface/memory.h @@ -160,6 +160,7 @@ DEFINE_GUEST_HANDLE_STRUCT(xen_machphys_mapping_t); #define XENMAPSPACE_gmfn_foreign 4 /* GMFN from another dom, * XENMEM_add_to_physmap_range only. */ +#define XENMAPSPACE_dev_mmio 5 /* device mmio region */ /* * Sets the GPFN at which a particular page appears in the specified guest's