summaryrefslogtreecommitdiffstats
path: root/include/hw/arm
diff options
context:
space:
mode:
authorNiek Linnenbank2020-03-11 23:18:45 +0100
committerPeter Maydell2020-03-12 17:27:33 +0100
commit29d08975d1cc2ec668d9eb430c507a4fee515ea5 (patch)
treed0328fd17f7acd8abbdea593a9a0083a3b690924 /include/hw/arm
parenthw/arm/allwinner: add SD/MMC host controller (diff)
downloadqemu-29d08975d1cc2ec668d9eb430c507a4fee515ea5.tar.gz
qemu-29d08975d1cc2ec668d9eb430c507a4fee515ea5.tar.xz
qemu-29d08975d1cc2ec668d9eb430c507a4fee515ea5.zip
hw/arm/allwinner-h3: add EMAC ethernet device
The Allwinner Sun8i System on Chip family includes an Ethernet MAC (EMAC) which provides 10M/100M/1000M Ethernet connectivity. This commit adds support for the Allwinner EMAC from the Sun8i family (H2+, H3, A33, etc), including emulation for the following functionality: * DMA transfers * MII interface * Transmit CRC calculation Signed-off-by: Niek Linnenbank <nieklinnenbank@gmail.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-id: 20200311221854.30370-10-nieklinnenbank@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/arm')
-rw-r--r--include/hw/arm/allwinner-h3.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/arm/allwinner-h3.h b/include/hw/arm/allwinner-h3.h
index d71a4917ab..f9b9a02373 100644
--- a/include/hw/arm/allwinner-h3.h
+++ b/include/hw/arm/allwinner-h3.h
@@ -44,6 +44,7 @@
#include "hw/misc/allwinner-h3-sysctrl.h"
#include "hw/misc/allwinner-sid.h"
#include "hw/sd/allwinner-sdhost.h"
+#include "hw/net/allwinner-sun8i-emac.h"
#include "target/arm/cpu.h"
/**
@@ -77,6 +78,7 @@ enum {
AW_H3_UART1,
AW_H3_UART2,
AW_H3_UART3,
+ AW_H3_EMAC,
AW_H3_GIC_DIST,
AW_H3_GIC_CPU,
AW_H3_GIC_HYP,
@@ -120,6 +122,7 @@ typedef struct AwH3State {
AwH3SysCtrlState sysctrl;
AwSidState sid;
AwSdHostState mmc0;
+ AwSun8iEmacState emac;
GICState gic;
MemoryRegion sram_a1;
MemoryRegion sram_a2;