From patchwork Wed Jun 14 17:45:50 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: 9787185 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 D0195602C9 for ; Wed, 14 Jun 2017 17:49:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9D6B27853 for ; Wed, 14 Jun 2017 17:49:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC96927F9F; Wed, 14 Jun 2017 17:49:05 +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 280D827853 for ; Wed, 14 Jun 2017 17:49:05 +0000 (UTC) Received: from localhost ([::1]:50268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLCPg-00084c-Es for patchwork-qemu-devel@patchwork.kernel.org; Wed, 14 Jun 2017 13:49:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLCMl-0005kI-S9 for qemu-devel@nongnu.org; Wed, 14 Jun 2017 13:46:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLCMk-00013v-Gy for qemu-devel@nongnu.org; Wed, 14 Jun 2017 13:46:03 -0400 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:36699) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLCMk-00013i-9c for qemu-devel@nongnu.org; Wed, 14 Jun 2017 13:46:02 -0400 Received: by mail-lf0-x243.google.com with SMTP id x81so956324lfb.3 for ; Wed, 14 Jun 2017 10:46:02 -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=S/ADx430q+FUb1LRld5B5GFrZWfaGJv58ka/JZuskq8=; b=aKsCINGXMZHdGqOmmhn8ro7881ZOtxVM+mtklktGRfoUuq2JpHZrRJl0IcfWOhpCKo /8c3kVoTzZ7owgYfaiIIhWO/2qPiJm60xoAl1PptdxPowOpMwiDuGYNSAgZ5Ya7svKj2 MfAqnGEkMZiCBGl5GIB3hKISrXo48TNzGgNRurjBG81Hz2XD3u6Rt96hhuoOEfn+eihy 0GQX1B42HuT4lbdBhKNfyJtyZggZAaRebLVpiY9Cu40fUdhWQ0acSZOHQkMZrwEzGz+B PabyaTeu4317qoBG6hAZU98QrqQrv/lsGQ/oxKpZMeFqBSLa9iRc6qV6zvp/ZhGK9jZa cWgA== 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=S/ADx430q+FUb1LRld5B5GFrZWfaGJv58ka/JZuskq8=; b=tUprymVt6RH8b3o6rV8GWA05FCTIMrAsX0dTnt8N4DsFcQT3IizDpEPOivZh+11a26 ir38xLNEWRmmiYdfMq445UO+u+44kLO0hXbMSqExTaoIwO2t+5nr/mC1QhncP5weZY6G CO7bazNO3h56OU1y5HtqEobdMS32lkqs42JHchUxU+SnFM6s/74jZQo+eqzHY3tgJTZf VPoUeGhu9ErplxbuvbcHYa5bEYDGBuaCZsooEUkw1rPqWZS3FY/Ynuwv4+7DrcsrDIYw ApS9ttPlSK+Wzxe1TqDgcPp9vn2aopCVrhKq/tqQ1/U5Uvpbm8Y/s7CrRusjJWS6xKns xUHw== X-Gm-Message-State: AKS2vOxNQmG08QR82HGUqzG1Hz5O2YjMEDBLBQSbMim1n8/xfR/eSbJ8 n4YyjaY2SeekWbWG X-Received: by 10.46.20.9 with SMTP id u9mr452258ljd.54.1497462360843; Wed, 14 Jun 2017 10:46:00 -0700 (PDT) Received: from localhost (81-231-233-234-no56.tbcn.telia.com. [81.231.233.234]) by smtp.gmail.com with ESMTPSA id 76sm165594lfq.10.2017.06.14.10.45.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Jun 2017 10:45:59 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Wed, 14 Jun 2017 19:45:50 +0200 Message-Id: <1497462353-3432-5-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497462353-3432-1-git-send-email-edgar.iglesias@gmail.com> References: <1497462353-3432-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::243 Subject: [Qemu-devel] [PULL v1 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, rth@twiddle.net, fred.konrad@greensocs.com 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 --- 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 d206fc9..0e9b492 100644 --- a/include/hw/qdev-properties.h +++ b/include/hw/qdev-properties.h @@ -171,6 +171,8 @@ extern PropertyInfo qdev_prop_arraylen; DEFINE_PROP_DEFAULT(_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() \ {}