EMAC_OPEN_CONFIG_INFO_tag Struct Reference

EMAC open configuration data structure. More...

#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_Tp_chan_mac_addr
EMAC_RX_PKT_CALLBACK_FN_Trx_pkt_cb
EMAC_ALLOC_PKT_CALLBACK_FN_Talloc_pkt_cb
EMAC_FREE_PKT_CALLBACK_FN_Tfree_pkt_cb


Detailed Description

EMAC open configuration data structure.


Field Documentation

Bool EMAC_OPEN_CONFIG_INFO_tag::master_core_flag

True: master core configuration

Bool EMAC_OPEN_CONFIG_INFO_tag::mdio_flag

True: configure MDIO

Uint32 EMAC_OPEN_CONFIG_INFO_tag::phy_addr

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

Bool EMAC_OPEN_CONFIG_INFO_tag::loop_back

True: packets loop back

Uint32 EMAC_OPEN_CONFIG_INFO_tag::num_of_tx_pkt_desc

Total # of pkt desc initialized for all the TX chans in TX queues

Uint32 EMAC_OPEN_CONFIG_INFO_tag::num_of_rx_pkt_desc

Total # of pkt desc initialized for all the RX chans in RX queues

Uint32 EMAC_OPEN_CONFIG_INFO_tag::max_pkt_size

Maximum size of the packet in bytes

Uint32 EMAC_OPEN_CONFIG_INFO_tag::num_of_chans

Total number of TX/RX channels configured for this core

EMAC_CHAN_MAC_ADDR_T* EMAC_OPEN_CONFIG_INFO_tag::p_chan_mac_addr

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_PKT_CALLBACK_FN_T* EMAC_OPEN_CONFIG_INFO_tag::rx_pkt_cb

EMAC RX call back function

EMAC_ALLOC_PKT_CALLBACK_FN_T* EMAC_OPEN_CONFIG_INFO_tag::alloc_pkt_cb

EMAC allocate packet call back function

EMAC_FREE_PKT_CALLBACK_FN_T* EMAC_OPEN_CONFIG_INFO_tag::free_pkt_cb

EMAC free packet call back function


The documentation for this struct was generated from the following file:
Copyright 2012, Texas Instruments Incorporated