From 1335fe3eb2a2a53e1f9cbbd3ef53ea2e013cadbe Mon Sep 17 00:00:00 2001 From: Cédric Le Goater Date: Fri, 14 Apr 2017 10:35:01 +0200 Subject: net/ftgmac100: add a 'aspeed' property The Aspeed SoCs have a different definition of the end of the ring buffer bit. Add a property to specify which set of bits should be used by the NIC. Signed-off-by: Cédric Le Goater Signed-off-by: Jason Wang --- include/hw/net/ftgmac100.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/hw/net/ftgmac100.h b/include/hw/net/ftgmac100.h index 962a718f43..d9bc589fbf 100644 --- a/include/hw/net/ftgmac100.h +++ b/include/hw/net/ftgmac100.h @@ -55,6 +55,10 @@ typedef struct FTGMAC100State { uint32_t phy_advertise; uint32_t phy_int; uint32_t phy_int_mask; + + bool aspeed; + uint32_t txdes0_edotr; + uint32_t rxdes0_edorr; } FTGMAC100State; #endif -- cgit v1.2.3-55-g7522