# _EMAC_Common_Config Struct Reference
[EMAC Data Structures]

EMAC_Common_Config. More...

`#include <csl_emac.h>`

## Data Fields

Uint8 | UseMdio
Uint32 | ModeFlags
Uint32 | MdioModeFlags
Uint32 | MdioPhyAddr
Uint8 | CoreNum
Uint32 | PktMTU

## Detailed Description

EMAC_Common_Config.

The EMAC_Common_Config structure defines configurations common to all the cors when the EMAC device is operating. It is passed to the device when the device is initialized one time by the master core (EMAC_commonInit()), and remains in effect until the device is de-initialized by the master core (EMAC_commonDeInit()).

The following is a short description of the configuration fields:

UseMdio - Uses MDIO configuration if required. In case of SGMII MAC to MAC communication MDIO is not required. If this field is one (1) configures MDIO zero (0) does not configure MDIO

ModeFlags - Specify the Fixed Operating Mode of the Device:

- EMAC_CONFIG_MODEFLG_CHPRIORITY - Treat TX channels as Priority Levels (Channel 7 is highest, 0 is lowest)
- EMAC_CONFIG_MODEFLG_MACLOOPBACK - Set MAC in Internal Loopback for Testing
- EMAC_CONFIG_MODEFLG_RXCRC - Include the 4 byte EtherCRC in RX frames
- EMAC_CONFIG_MODEFLG_TXCRC - Assume TX Frames Include 4 byte EtherCRC
- EMAC_CONFIG_MODEFLG_PASSERROR - Receive Error Frames for Testing
- EMAC_CONFIG_MODEFLG_PASSCONTROL - Receive Control Frames for Testing

MdioModeFlags - Specify the MDIO/PHY Operation (See csl_MDIO.H)

CoreNum - Specify the master core which does common initialization and de-initialization

PktMTU - Specify the maximal physical packet size

## Field Documentation

Uint8 _EMAC_Common_Config::CoreNum

This member is for core selction to does the EMAC configuration i.e user can select the specific core to configure EMAC one time

Uint32 _EMAC_Common_Config::MdioModeFlags

CSL_MDIO Mode Flags (see CSL_MDIO.H)

Uint32 _EMAC_Common_Config::MdioPhyAddr

PHY address (0-31) to be monitored by MDIO, specified by user when MDIO_MODEFLG_SPECPHYADDR is set in MdioModeFlags

Uint32 _EMAC_Common_Config::ModeFlags

Configuation Mode Flags

Uint32 _EMAC_Common_Config::PktMTU

Max physical packet size

Uint8 _EMAC_Common_Config::UseMdio

MDIO Configuation select. User has to pass one (1) if MDIO Configuration is needed, if not should pass zero (0)

The documentation for this struct was generated from the following file:

- csl_emac.h

Copyright 2012, Texas Instruments Incorporated