\r
// First check that auto-negotiation is supported\r
PhyStatus = IndirectPHYRead32 (PHY_INDEX_BASIC_STATUS);\r
\r
// First check that auto-negotiation is supported\r
PhyStatus = IndirectPHYRead32 (PHY_INDEX_BASIC_STATUS);\r
// Check that link is up first\r
if ((PhyStatus & PHYSTS_LINK_STS) == 0) {\r
// Wait until it is up or until Time Out\r
// Check that link is up first\r
if ((PhyStatus & PHYSTS_LINK_STS) == 0) {\r
// Wait until it is up or until Time Out\r
while ((IndirectPHYRead32 (PHY_INDEX_BASIC_STATUS) & PHYSTS_LINK_STS) == 0) {\r
MemoryFence();\r
gBS->Stall (LAN9118_STALL);\r
while ((IndirectPHYRead32 (PHY_INDEX_BASIC_STATUS) & PHYSTS_LINK_STS) == 0) {\r
MemoryFence();\r
gBS->Stall (LAN9118_STALL);\r