Skip to contentSkip to conversation

hw/vfio/platform: calxeda xgmac device

PATCH New Eric Auger 1 participant 1 message Jun 9, 2015

lore
Share & tools
lore

Eric Auger

author
#0 lore raw

PATCH 1/1 hw/vfio/platform: calxeda xgmac device

The platform device class has become abstract. This patch introduces a calxeda xgmac device that derives from it.

---
v16 -> v17:
- properly attach vfio_platform_calxeda_xgmac_vmstate

v15 -> v16:
- added Vikram's T-b

v10 -> v11:
- add Alex Reviewed-by
- move virt modifications in a separate patch

v8 -> v9:
- renamed calxeda_xgmac.c into calxeda-xgmac.c

v7 -> v8:
- add a comment in the header about the MMIO regions and IRQ which are exposed by the device

v5 -> v6
- back again following Alex Graf advises
- fix a bug related to compat override

v4 -> v5:
removed since device tree was moved to hw/arm/dyn_sysbus_devtree.c

v4: creation for device tree specialization

---
 hw/vfio/Makefile.objs                |  1 +
 hw/vfio/calxeda-xgmac.c              | 55 ++++++++++++++++++++++++++++++++++++
 include/hw/vfio/vfio-calxeda-xgmac.h | 46 ++++++++++++++++++++++++++++++
 3 files changed, 102 insertions(+)
 create mode 100644 hw/vfio/calxeda-xgmac.c
 create mode 100644 include/hw/vfio/vfio-calxeda-xgmac.h
hw/vfio/Makefile.objs +1 -0
index c5c76fe..d540c9d 100644
@@ -2,4 +2,5 @@ ifeq ($(CONFIG_LINUX), y)
 obj-$(CONFIG_SOFTMMU) += common.o
 obj-$(CONFIG_PCI) += pci.o
 obj-$(CONFIG_SOFTMMU) += platform.o
+obj-$(CONFIG_SOFTMMU) += calxeda-xgmac.o
 endif
hw/vfio/calxeda-xgmac.c new file +55 -0

55 lines not on this page · raw message

include/hw/vfio/vfio-calxeda-xgmac.h new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
1.8.3.2