Go to the documentation of this file.
32 #define TRACE_LEVEL NIC_TRACE_LEVEL
66 if(interface->phyAddr >= 32)
73 if(interface->smiDriver != NULL)
75 interface->smiDriver->init();
79 if(interface->extIntDriver != NULL)
81 interface->extIntDriver->init();
106 interface->phyEvent =
TRUE;
136 if(interface->extIntDriver == NULL)
144 if(linkState && !interface->linkState)
147 interface->phyEvent =
TRUE;
152 else if(!linkState && interface->linkState)
155 interface->phyEvent =
TRUE;
171 if(interface->extIntDriver != NULL)
173 interface->extIntDriver->enableIrq();
186 if(interface->extIntDriver != NULL)
188 interface->extIntDriver->disableIrq();
235 interface->linkState =
TRUE;
238 interface->nicDriver->updateMacConfig(interface);
243 interface->linkState =
FALSE;
263 if(interface->smiDriver != NULL)
288 if(interface->smiDriver != NULL)
314 for(i = 0; i < 32; i++)
317 TRACE_DEBUG(
"%02" PRIu8
": 0x%04" PRIX16
"\r\n", i,
void nicNotifyLinkChange(NetInterface *interface)
Process link state change notification.
#define DP83848_BMCR_RESET
error_t dp83848Init(NetInterface *interface)
DP83848 PHY transceiver initialization.
void dp83848Tick(NetInterface *interface)
DP83848 timer handler.
#define DP83848_PHYSTS_LINK_STATUS
#define DP83848_PHYSTS_DUPLEX_STATUS
void dp83848DumpPhyReg(NetInterface *interface)
Dump PHY registers for debugging purpose.
#define DP83848_MICR_INTEN
void dp83848EventHandler(NetInterface *interface)
DP83848 event handler.
#define DP83848_MISR_LINK_INT_EN
DP83848 Ethernet PHY driver.
#define DP83848_MICR_INT_OE
const PhyDriver dp83848PhyDriver
DP83848 Ethernet PHY driver.
void dp83848WritePhyReg(NetInterface *interface, uint8_t address, uint16_t data)
Write PHY register.
uint16_t dp83848ReadPhyReg(NetInterface *interface, uint8_t address)
Read PHY register.
void dp83848EnableIrq(NetInterface *interface)
Enable interrupts.
#define DP83848_PHYSTS_SPEED_STATUS
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
#define DP83848_MISR_LINK_INT
void dp83848DisableIrq(NetInterface *interface)
Disable interrupts.
#define DP83848_BMSR_LINK_STATUS
__weak_func void dp83848InitHook(NetInterface *interface)
DP83848 custom configuration.