OSDN Git Service

qdev: add MemoryRegion property
authorKONRAD Frederic <fred.konrad@greensocs.com>
Thu, 16 Feb 2017 14:06:24 +0000 (15:06 +0100)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Tue, 27 Jun 2017 13:09:15 +0000 (15:09 +0200)
We need to pass a pointer to a MemoryRegion for mmio_interface.
So this just adds that.

Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
include/hw/qdev-properties.h

index 1e5c928..39bf4b2 100644 (file)
@@ -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()               \
     {}