Defines | Typedefs | Functions | Variables

sw-host/tapdev.h File Reference

(r4864/r228)

#include "xexception_l.h"
#include "xbasic_types.h"
#include "xpseudo_asm.h"
#include "xparameters.h"
#include "xtemac.h"
#include "stdio.h"
Include dependency graph for tapdev.h:
This graph shows which files directly or indirectly include this file:

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

Define Documentation

#define TEMAC_DEVICE_ID   XPAR_PLB_TEMAC_0_DEVICE_ID

Definition at line 23 of file tapdev.h.

#define TEMAC_PHY_DELAY_SEC   4

Definition at line 25 of file tapdev.h.


Typedef Documentation

typedef Xint16 s16_t

Definition at line 15 of file tapdev.h.

typedef Xint32 s32_t

Definition at line 16 of file tapdev.h.

typedef Xint8 s8_t

Definition at line 14 of file tapdev.h.

typedef Xuint16 u16_t

Definition at line 12 of file tapdev.h.

typedef Xuint32 u32_t

Definition at line 13 of file tapdev.h.

typedef Xuint8 u8_t

Definition at line 11 of file tapdev.h.


Function Documentation

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 
)

Variable Documentation

Xuint16 TemacInitReg0
XTemac TemacInstance

Definition at line 31 of file tapdev.h.

unsigned TemacLostFrames
char TemacMAC[]