2 * Faraday FTGMAC100 Gigabit Ethernet
4 * Copyright (C) 2016-2017, IBM Corporation.
6 * This code is licensed under the GPL version 2 or later. See the
7 * COPYING file in the top-level directory.
13 #define TYPE_FTGMAC100 "ftgmac100"
14 #define FTGMAC100(obj) OBJECT_CHECK(FTGMAC100State, (obj), TYPE_FTGMAC100)
16 #include "hw/sysbus.h"
20 * Max frame size for the receiving buffer
22 #define FTGMAC100_MAX_FRAME_SIZE 9220
24 typedef struct FTGMAC100State
{
26 SysBusDevice parent_obj
;
34 uint8_t frame
[FTGMAC100_MAX_FRAME_SIZE
];
41 uint32_t rx_descriptor
;
43 uint32_t tx_descriptor
;
60 uint32_t phy_advertise
;
62 uint32_t phy_int_mask
;
65 uint32_t txdes0_edotr
;
66 uint32_t rxdes0_edorr
;
69 #define TYPE_ASPEED_MII "aspeed-mmi"
70 #define ASPEED_MII(obj) OBJECT_CHECK(AspeedMiiState, (obj), TYPE_ASPEED_MII)
73 * AST2600 MII controller
75 typedef struct AspeedMiiState
{
77 SysBusDevice parent_obj
;