summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorEric Auger2016-02-19 17:42:31 +0100
committerAlex Williamson2016-02-19 17:42:31 +0100
commitcf5a13e370afad57f1cfab0a8871ed839f5eda48 (patch)
tree79f8ec87629c329d3f1885aa0555e811822b444d /include/exec
parenthw/arm/sysbus-fdt: helpers for clock node generation (diff)
downloadqemu-cf5a13e370afad57f1cfab0a8871ed839f5eda48.tar.gz
qemu-cf5a13e370afad57f1cfab0a8871ed839f5eda48.tar.xz
qemu-cf5a13e370afad57f1cfab0a8871ed839f5eda48.zip
hw/arm/sysbus-fdt: enable amd-xgbe dynamic instantiation
This patch allows the instantiation of the vfio-amd-xgbe device from the QEMU command line (-device vfio-amd-xgbe,host="<device>"). The guest is exposed with a device tree node that combines the description of both XGBE and PHY (representation supported from 4.2 onwards kernel): Documentation/devicetree/bindings/net/amd-xgbe.txt. There are 5 register regions, 6 interrupts including 4 optional edge-sensitive per-channel interrupts. Some property values are inherited from host device tree. Host device tree must feature a combined XGBE/PHY representation (>= 4.2 host kernel). 2 clock nodes (dma and ptp) also are created. It is checked those clocks are fixed on host side. AMD XGBE node creation function has a dependency on vfio Linux header and more generally node creation function for VFIO platform devices only make sense with CONFIG_LINUX so let's protect this code with #ifdef CONFIG_LINUX. Signed-off-by: Eric Auger <eric.auger@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions