#include "xexception_l.h"
#include "xbasic_types.h"
#include "xpseudo_asm.h"
#include "xparameters.h"
#include "xtemac.h"
#include "stdio.h"
Go to the source code of this file.
Defines | |
#define | TEMAC_DEVICE_ID XPAR_PLB_TEMAC_0_DEVICE_ID |
#define | TEMAC_PHY_DELAY_SEC 4 |
Typedefs | |
typedef Xuint8 | u8_t |
typedef Xuint16 | u16_t |
typedef Xuint32 | u32_t |
typedef Xint8 | s8_t |
typedef Xint16 | s16_t |
typedef Xint32 | s32_t |
Functions | |
int | tapdev_init () |
int | TemacConfigurePhy (XTemac *TemacInstancePtr, Xuint16 reg0set) |
void | tapdev_write_to_fifo_partial (Xuint8 *buf, Xuint16 len) |
void | tapdev_write_to_fifo_end_of_packet (Xuint8 *buf, Xuint16 len) |
void | tapdev_send (Xuint16 len) |
void | tapdev_send_fullpacket (Xuint8 *buf, Xuint16 len) |
int | tapdev_tryread_full_packet (Xuint8 *pbuf, Xuint32 len) |
void | tapdev_read_from_fifo_new_packet (Xuint32 *RxFrameLenght) |
void | tapdev_read_from_fifo_partial (Xuint8 *buf, Xuint32 len) |
void | tapdev_read_from_fifo_flush_end_of_packet () |
Xuint32 | tapdev_freebytes () |
XStatus | TemacGetTxStatus () |
XStatus | TemacGetRxStatus () |
XStatus | TemacResetDevice () |
Xuint32 | TemacDetectPHY (XTemac *TemacInstancePtr) |
int | TemacReadoutPhyRegisters (XTemac *TemacInstancePtr) |
Xuint16 | TemacReadCtrlReg (unsigned reg, Xuint32 *retVal) |
Xuint16 | TemacWriteCtrlReg (unsigned reg, Xuint32 val) |
int | TemacPrintPhyRegisters () |
void | TemacPrintConfig () |
Variables | |
XTemac | TemacInstance |
char | TemacMAC [] |
int | TemacLinkSpeed |
Xuint16 | TemacInitReg0 |
unsigned | TemacLostFrames |
Xuint32 tapdev_freebytes | ( | ) |
int tapdev_init | ( | ) |
void tapdev_read_from_fifo_flush_end_of_packet | ( | ) |
void tapdev_read_from_fifo_new_packet | ( | Xuint32 * | RxFrameLenght | ) |
void tapdev_read_from_fifo_partial | ( | Xuint8 * | buf, | |
Xuint32 | len | |||
) |
void tapdev_send | ( | Xuint16 | len | ) |
void tapdev_send_fullpacket | ( | Xuint8 * | buf, | |
Xuint16 | len | |||
) |
int tapdev_tryread_full_packet | ( | Xuint8 * | pbuf, | |
Xuint32 | len | |||
) |
void tapdev_write_to_fifo_end_of_packet | ( | Xuint8 * | buf, | |
Xuint16 | len | |||
) |
void tapdev_write_to_fifo_partial | ( | Xuint8 * | buf, | |
Xuint16 | len | |||
) |
int TemacConfigurePhy | ( | XTemac * | TemacInstancePtr, | |
Xuint16 | reg0set | |||
) |
Xuint32 TemacDetectPHY | ( | XTemac * | TemacInstancePtr | ) |
XStatus TemacGetRxStatus | ( | ) |
XStatus TemacGetTxStatus | ( | ) |
void TemacPrintConfig | ( | ) |
int TemacPrintPhyRegisters | ( | ) |
Xuint16 TemacReadCtrlReg | ( | unsigned | reg, | |
Xuint32 * | retVal | |||
) |
int TemacReadoutPhyRegisters | ( | XTemac * | TemacInstancePtr | ) |
XStatus TemacResetDevice | ( | ) |
Xuint16 TemacWriteCtrlReg | ( | unsigned | reg, | |
Xuint32 | val | |||
) |
Xuint16 TemacInitReg0 |
XTemac TemacInstance |
int TemacLinkSpeed |
unsigned TemacLostFrames |
char TemacMAC[] |