1 /*
2  * Copyright (c) 2006-2022, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2017-08-24     chinesebear  first version
9  */
10 
11 #ifndef SYNOP_GMAC_HOST_H
12 #define SYNOP_GMAC_HOST_H 1
13 
14 #include "synopGMAC_plat.h"
15 #include "synopGMAC_Dev.h"
16 #include "mii.h"
17 #include "synopGMAC_network_interface.h"
18 
19 typedef struct
20 {
21     uint32_t u32TxDescSize;
22     uint32_t u32RxDescSize;
23 
24     DmaDesc *psRXDescs;
25     PKT_FRAME_T *psRXFrames;
26     DmaDesc *psTXDescs;
27     PKT_FRAME_T *psTXFrames;
28 } GMAC_MEMMGR_T;
29 
30 typedef struct
31 {
32     /*Device Dependent Data structur*/
33     synopGMACdevice *m_gmacdev;
34     GMAC_MEMMGR_T  *m_gmacmemmgr;
35     struct mii_if_info m_mii;
36 } synopGMACNetworkAdapter;
37 
38 #endif
39