Data Structures | |
struct | XEmacLite_Config |
struct | XEmacLite |
Defines | |
#define | XEmacLite_mNextTransmitAddr(InstancePtr) |
#define | XEmacLite_mNextReceiveAddr(InstancePtr) |
#define | XEmacLite_mIsMdioConfigured(InstancePtr) |
#define | XEmacLite_mIsLoopbackConfigured(InstancePtr) |
Functions | |
int | XEmacLite_CfgInitialize (XEmacLite *InstancePtr, XEmacLite_Config *EmacLiteConfigPtr, u32 EffectiveAddr) |
void | XEmacLite_SetMacAddress (XEmacLite *InstancePtr, u8 *AddressPtr) |
int | XEmacLite_TxBufferAvailable (XEmacLite *InstancePtr) |
void | XEmacLite_FlushReceive (XEmacLite *InstancePtr) |
int | XEmacLite_Send (XEmacLite *InstancePtr, u8 *FramePtr, unsigned ByteCount) |
u16 | XEmacLite_Recv (XEmacLite *InstancePtr, u8 *FramePtr) |
int | XEmacLite_PhyRead (XEmacLite *InstancePtr, u32 PhyAddress, u32 RegNum, u16 *PhyDataPtr) |
int | XEmacLite_PhyWrite (XEmacLite *InstancePtr, u32 PhyAddress, u32 RegNum, u16 PhyData) |
void | XEmacLite_EnableLoopBack (XEmacLite *InstancePtr) |
void | XEmacLite_DisableLoopBack (XEmacLite *InstancePtr) |
XEmacLite_Config * | XEmacLite_LookupConfig (u16 DeviceId) |
int | XEmacLite_Initialize (XEmacLite *InstancePtr, u16 DeviceId) |
int | XEmacLite_EnableInterrupts (XEmacLite *InstancePtr) |
void | XEmacLite_DisableInterrupts (XEmacLite *InstancePtr) |
void | XEmacLite_InterruptHandler (void *InstancePtr) |
void | XEmacLite_SetRecvHandler (XEmacLite *InstancePtr, void *CallBackRef, XEmacLite_Handler FuncPtr) |
void | XEmacLite_SetSendHandler (XEmacLite *InstancePtr, void *CallBackRef, XEmacLite_Handler FuncPtr) |
int | XEmacLite_SelfTest (XEmacLite *InstancePtr) |
|
This macro determines if the device is currently configured for internal loopback.
|
|
This macro determines if the device is currently configured for MDIO.
|
|
Return the next expected Receive Buffer's address.
|
|
Return the next expected Transmit Buffer's address .
|
|
Initialize a specific XEmacLite instance/driver. The initialization entails:
The driver defaults to polled mode operation.
|
|
Disables the interrupts from the device (the higher layer software is responsible for disabling interrupts at the interrupt controller). To start using the device again, _EnableInterrupts must be called.
|
|
Disable Internal loop back functionality.
|
|
Enable the EmacLite Interrupts. This function must be called before other functions to send or receive data in interrupt driven mode. The user should have connected the interrupt handler of the driver to an interrupt source such as an interrupt controller or the processor interrupt prior to this function being called.
|
|
Enable Internal loop back functionality.
|
|
Flush the Receive buffers. All data will be lost.
|
|
Initialize a specific XEmacLite instance/driver. The initialization entails:
The driver defaults to polled mode operation.
|
|
Interrupt handler for the EmacLite driver. It performs the following processing:
|
|
Lookup the device configuration based on the unique device ID. The table XEmacLite_ConfigTable contains the configuration info for each device in the system.
|
|
Read the specified PHY register.
|
|
Write the given data to the specified register in the PHY device.
|
|
Receive a frame. Intended to be called from the interrupt context or with a wrapper which waits for the receive frame to be available.
|
|
Performs a SelfTest on the EmacLite device as follows:
|
|
Send an Ethernet frame. The ByteCount is the total frame size, including header.
|
|
Set the MAC address for this device. The address is a 48-bit value.
|
|
Sets the callback function for handling received frames in interrupt mode. The upper layer software should call this function during initialization. The callback is called when a frame is received. The callback function should communicate the data to a thread such that the processing is not performed in an interrupt context. The callback is invoked by the driver within interrupt context, so it needs to do its job quickly. If there are other potentially slow operations within the callback, these should be done at task-level.
|
|
Sets the callback function for handling transmitted frames in interrupt mode. The upper layer software should call this function during initialization. The callback is called when a frame is transmitted. The callback function should communicate the data to a thread such that the processing is not performed in an interrupt context. The callback is invoked by the driver within interrupt context, so it needs to do its job quickly. If there are other potentially slow operations within the callback, these should be done at task-level.
|
|
Determine if there is a transmit buffer available.
|
Copyright © 1995-2009 Xilinx, Inc. All rights reserved.