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.
12 #include "qom/object.h"
14 #define TYPE_FTGMAC100 "ftgmac100"
15 OBJECT_DECLARE_SIMPLE_TYPE(FTGMAC100State, FTGMAC100)
17 #include "hw/sysbus.h"
21 * Max frame size for the receiving buffer
23 #define FTGMAC100_MAX_FRAME_SIZE 9220
25 struct FTGMAC100State {
27 SysBusDevice parent_obj;
35 uint8_t frame[FTGMAC100_MAX_FRAME_SIZE];
42 uint32_t rx_descriptor;
44 uint32_t tx_descriptor;
61 uint32_t phy_advertise;
63 uint32_t phy_int_mask;
66 uint32_t txdes0_edotr;
67 uint32_t rxdes0_edorr;
70 #define TYPE_ASPEED_MII "aspeed-mmi"
71 OBJECT_DECLARE_SIMPLE_TYPE(AspeedMiiState, ASPEED_MII)
74 * AST2600 MII controller
76 struct AspeedMiiState {
78 SysBusDevice parent_obj;