5.17. Renesas SHEth - emllSHEth
The parameters to the Renesas SuperH Ethernet Link Layer are setup-specific.
The function CreateLinkParmsFromCmdLineSHEth()
in EcSelectLinkLayer.cpp
demonstrates how to initialize the Link Layer instance.
-
struct EC_T_LINK_PARMS_SHETH
Public Members
-
EC_T_LINK_PARMS linkParms
Common link parameters. Signature must be set to EC_LINK_PARMS_SIGNATURE_SHETH
-
EC_T_SHETH_TYPE eType
System on Chip type
-
EC_T_LINK_PARMS linkParms
5.17.1. SHEth link status update
On some targets like Armadillo A800 eva the link status can’t be obtained directly by reading 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 be not called from the JobTask’s context.
dwRes = esIoControl(dwSimulatorInstanceId, EC_IOCTL_LINKLAYER | EC_LINKIOCTL_UPDATE_LINKSTATUS, EC_NULL);
ecLinkGetStatus()
always retuns the last known link status.
5.17.2. SHEth usage under Linux
Due to 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.