From patchwork Tue Jun 27 15:37:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 9812809 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 46D7260351 for ; Tue, 27 Jun 2017 17:17:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26BB6281F9 for ; Tue, 27 Jun 2017 17:17:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19DDE2853A; Tue, 27 Jun 2017 17:17:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 968C6281F9 for ; Tue, 27 Jun 2017 17:16:59 +0000 (UTC) Received: from localhost ([::1]:57229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPu6k-0002fG-Il for patchwork-qemu-devel@patchwork.kernel.org; Tue, 27 Jun 2017 13:16:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPtlh-0000JY-Lp for qemu-devel@nongnu.org; Tue, 27 Jun 2017 12:55:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPsYO-0006Mu-Jt for qemu-devel@nongnu.org; Tue, 27 Jun 2017 11:37:25 -0400 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]:33794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPsYO-0006Ic-Cf for qemu-devel@nongnu.org; Tue, 27 Jun 2017 11:37:24 -0400 Received: by mail-lf0-x242.google.com with SMTP id g21so3065838lfk.1 for ; Tue, 27 Jun 2017 08:37:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ot0MVa1NO+SULyzvcNjSqIEw4W0lP9PdVIe/1/hT3H0=; b=b2OJAJ1wTh37Oec6QMZUYfhZyM8/ZNbR37QoYgyblsPnkW4ukCXZVpahTDKoJcrrVm xJmejG5FYC+7S2ilP0/sakjJgSuXMxl8zZOg8ydk+1y6rOOtrbwtSDILm/lhumJya/XE 6tMRj3p44VbIQbMuTWXBCsOS4ZR48OKuxXHVObWnd2Lt+KzF4asvuRwUuWde2e9suUUm dg9gXi1iGdcMRDc8sA7jcfymZOopdoE5BdRq72UfYhP4n91JwPO6ouYtJWjf8LfQCs7f xj+sRfYbcUaen6WS+MNJktYdzGO45AKSVuykFSInL1gFH3Nfp5gYPytX4bBVCgG34Tic PeIQ== 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=ot0MVa1NO+SULyzvcNjSqIEw4W0lP9PdVIe/1/hT3H0=; b=GFIgP9XaDm+Pzejq7i92/rALjiOTUNaE5uUd3hjD7BU3YqniwOqAv5FXdXeoUL+Cdy y8O2m+IuYiOHx0rND8xjdU4TvTJo5X/BiyvhUjZi1ZOsRPvAv5U2ARhSr2HKHvI85EY6 V2Qdf94OQvsrWtOyJEx+rz4jr1dJvP1VfWlh0PAE07e8TninHKZ3PUVIltnSrBHnjUFf o/37aQNnSS5WvQnM8syNSzOOwj6RoOR7KOvv66rzuS9VHDujL5/vB72fnKJ+Nj6R3iZs 9d7GiJJXYE2jueiWrCrJ6xLoV7p91f7Q/ywfVANssbLHX+iPwDIUuvAN+wPoNxQBZuHP Ks1A== X-Gm-Message-State: AKS2vOyvG0k8KY+23qu0EYmpDjsH+0JmEbxTe9s2Tbm1kQjSkrpOkMZm DZSWOlkAB4HJk6Mz X-Received: by 10.46.74.25 with SMTP id x25mr1823516lja.127.1498577842925; Tue, 27 Jun 2017 08:37:22 -0700 (PDT) Received: from localhost (81-231-233-234-no56.tbcn.telia.com. [81.231.233.234]) by smtp.gmail.com with ESMTPSA id x74sm943804lfd.64.2017.06.27.08.37.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 08:37:22 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Tue, 27 Jun 2017 17:37:13 +0200 Message-Id: <1498577836-25883-5-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498577836-25883-1-git-send-email-edgar.iglesias@gmail.com> References: <1498577836-25883-1-git-send-email-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::242 Subject: [Qemu-devel] [PULL v2 4/7] qdev: add MemoryRegion property X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, pbonzini@redhat.com, frederic.konrad@adacore.com, rth@twiddle.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: KONRAD Frederic We need to pass a pointer to a MemoryRegion for mmio_interface. So this just adds that. Reviewed-by: Edgar E. Iglesias Signed-off-by: KONRAD Frederic Signed-off-by: Edgar E. Iglesias --- include/hw/qdev-properties.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h index 1e5c928..39bf4b2 100644 --- a/include/hw/qdev-properties.h +++ b/include/hw/qdev-properties.h @@ -177,6 +177,8 @@ extern PropertyInfo qdev_prop_arraylen; DEFINE_PROP_UNSIGNED(_n, _s, _f, 0, qdev_prop_blocksize, uint16_t) #define DEFINE_PROP_PCI_HOST_DEVADDR(_n, _s, _f) \ DEFINE_PROP(_n, _s, _f, qdev_prop_pci_host_devaddr, PCIHostDeviceAddress) +#define DEFINE_PROP_MEMORY_REGION(_n, _s, _f) \ + DEFINE_PROP(_n, _s, _f, qdev_prop_ptr, MemoryRegion *) #define DEFINE_PROP_END_OF_LIST() \ {}