# Renesas SHEth - emllSHEth The parameters to the Renesas Real-time Ethernet Driver SuperH are setup-specific. The function `CreateLinkParmsFromCmdLineSHEth()` in [`EcSelectLinkLayer.cpp`](_downloads/bf62c71a4a7e317930818b9da4a9815c/EcSelectLinkLayer.cpp) demonstrates how to initialize the Real-time Ethernet Driver instance. ### struct EC_T_LINK_PARMS_SHETH ### Public Members ### [EC_T_LINK_PARMS](emll_init.html.md#_CPPv415EC_T_LINK_PARMS) linkParms Common link parameters. Signature must be set to EC_LINK_PARMS_SIGNATURE_SHETH. ### [EC_T_SHETH_TYPE](#_CPPv415EC_T_SHETH_TYPE) eType System on Chip type ### [EC_T_BYTE](toc_api.html.md#_CPPv49EC_T_BYTE) abyStationAddress[6] MAC address ### [EC_T_DWORD](toc_api.html.md#_CPPv410EC_T_DWORD) dwBaseAddr Physical address of register block ### [EC_T_BYTE](toc_api.html.md#_CPPv49EC_T_BYTE) byPhyAddr PHY address ### [EC_T_BOOL](toc_api.html.md#_CPPv49EC_T_BOOL) bNotUseDmaBuffers EC_FALSE: Use buffers from DMA for receive (default), EC_TRUE: use buffers from heap for receive. EcLinkAllocSendFrame is not supported if bNotUseDmaBuffers = EC_TRUE. ### [EC_T_DWORD](toc_api.html.md#_CPPv410EC_T_DWORD) dwTxDmaDesCnt Transmit DMA descriptor buffer count. Must be a power of 2, maximum 256. ### [EC_T_DWORD](toc_api.html.md#_CPPv410EC_T_DWORD) dwRxDmaDesCnt Receive DMA descriptor buffer count. Must be a power of 2, maximum 256. ### enum EC_T_SHETH_TYPE *Values:* ### enumerator eSHEth_R8A777X Renesas R8A777X ### enumerator eSHEth_R8A779X Renesas R8A779X ### enumerator eSHEth_SH7724 Renesas SH7724 ### enumerator eSHEth_SH7757 Renesas SH7757 ### enumerator eSHEth_SH7757_GIGA Renesas SH7757_GIGA ### enumerator eSHEth_SH7734 Renesas SH7734 ### enumerator eSHEth_SH7763 Renesas SH7763 ### enumerator eSHEth_R8A7740 Renesas R8A7740 ### enumerator eSHEth_R7S72100 Renesas R7S72100 ### enumerator eSHEth_SH7619 Renesas SH7619 ### enumerator eSHEth_SH771X Renesas SH771X ### enumerator eSHEth_R8A77400 Renesas R8A77400 ### enumerator eSHEth_R8A77435 Renesas R8A77435 ### enumerator eSHEth_R8A77430 Renesas R8A77430 ### enumerator eSHEth_R8A77450 Renesas R8A77450 ### enumerator eSHEth_RX72N Renesas RX72N ### enumerator eSHEth_RZG2L Renesas RZG2L ## SHEth link status update On some targets like Armadillo A800 eva the link status can’t be obtained directly by reading the MAC PHY status register without access to the MII bus. Accessing the bus would violate timing constraints and is therefore not possible. The following IOCTL updates the link status and accesses the PHY. The IOCTL is blocking and may therefore not be called from the JobTask’s context. ```cpp dwRes = emIoCtl((EC_IOCTL_LINKLAYER | EC_LINKIOCTL_UPDATE_LINKSTATUS), EC_NULL); ``` `ecLinkGetStatus()` always retuns the last known link status. ## SHEth usage under Linux Due to the lacking unbind-feature of the SuperH driver, the target’s Kernel must not load the SuperH driver when starting. If the SuperH was built as a module, it can be renamed to ensure it never gets loaded. If it was compiled into the Kernel, the Kernel needs to be recompiled without it.