![]() |
![]() |
#include <emac_drv.h>
Data Fields | |
| Bool | master_core_flag |
| Bool | mdio_flag |
| Uint32 | phy_addr |
| Bool | loop_back |
| Uint32 | num_of_tx_pkt_desc |
| Uint32 | num_of_rx_pkt_desc |
| Uint32 | max_pkt_size |
| Uint32 | num_of_chans |
| EMAC_CHAN_MAC_ADDR_T * | p_chan_mac_addr |
| EMAC_RX_PKT_CALLBACK_FN_T * | rx_pkt_cb |
| EMAC_ALLOC_PKT_CALLBACK_FN_T * | alloc_pkt_cb |
| EMAC_FREE_PKT_CALLBACK_FN_T * | free_pkt_cb |
True: master core configuration
True: configure MDIO
Physical layer transceiver address mapped to the EMAC port valid address range is 0 - (EMAC_MAX_NUM_PHY_ADDR-1). if a valid address is specified, EMAC driver will check the link status only on the application specifid phy address; if an invalid phy_addr is specified, EMAC driver will search the phy address that can be used by itself
True: packets loop back
Total # of pkt desc initialized for all the TX chans in TX queues
Total # of pkt desc initialized for all the RX chans in RX queues
Maximum size of the packet in bytes
Total number of TX/RX channels configured for this core
Application needs to provide the MAC address configurations; EMAC driver will allocate the channels if available and return the channel info to the application
EMAC RX call back function
EMAC allocate packet call back function
EMAC free packet call back function