XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
smsc951x.h File Reference
#include "uspi/usbfunction.h"
#include "uspi/usbendpoint.h"
#include "uspi/usbrequest.h"
#include "uspi/macaddress.h"
#include "uspi/types.h"
Include dependency graph for smsc951x.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TSMSC951xDevice
 

Macros

#define FRAME_BUFFER_SIZE   1600
 

Typedefs

typedef struct TSMSC951xDevice TSMSC951xDevice
 

Functions

void SMSC951xDevice (TSMSC951xDevice *pThis, TUSBFunction *pFunction)
 
void _SMSC951xDevice (TSMSC951xDevice *pThis)
 
boolean SMSC951xDeviceConfigure (TUSBFunction *pUSBFunction)
 
TMACAddressSMSC951xDeviceGetMACAddress (TSMSC951xDevice *pThis)
 
boolean SMSC951xDeviceSendFrame (TSMSC951xDevice *pThis, const void *pBuffer, unsigned nLength)
 
boolean SMSC951xDeviceReceiveFrame (TSMSC951xDevice *pThis, void *pBuffer, unsigned *pResultLength)
 
boolean SMSC951xDeviceIsLinkUp (TSMSC951xDevice *pThis)
 
boolean SMSC951xDevicePHYWrite (TSMSC951xDevice *pThis, u8 uchIndex, u16 usValue)
 
boolean SMSC951xDevicePHYRead (TSMSC951xDevice *pThis, u8 uchIndex, u16 *pValue)
 
boolean SMSC951xDevicePHYWaitNotBusy (TSMSC951xDevice *pThis)
 
boolean SMSC951xDeviceWriteReg (TSMSC951xDevice *pThis, u32 nIndex, u32 nValue)
 
boolean SMSC951xDeviceReadReg (TSMSC951xDevice *pThis, u32 nIndex, u32 *pValue)
 
void SMSC951xDeviceDumpReg (TSMSC951xDevice *pThis, const char *pName, u32 nIndex)
 
void SMSC951xDeviceDumpRegs (TSMSC951xDevice *pThis)
 

Macro Definition Documentation

◆ FRAME_BUFFER_SIZE

#define FRAME_BUFFER_SIZE   1600

Typedef Documentation

◆ TSMSC951xDevice

Function Documentation

◆ _SMSC951xDevice()

void _SMSC951xDevice ( TSMSC951xDevice pThis)

◆ SMSC951xDevice()

void SMSC951xDevice ( TSMSC951xDevice pThis,
TUSBFunction pFunction 
)

◆ SMSC951xDeviceConfigure()

boolean SMSC951xDeviceConfigure ( TUSBFunction pUSBFunction)

◆ SMSC951xDeviceDumpReg()

void SMSC951xDeviceDumpReg ( TSMSC951xDevice pThis,
const char *  pName,
u32  nIndex 
)

◆ SMSC951xDeviceDumpRegs()

void SMSC951xDeviceDumpRegs ( TSMSC951xDevice pThis)

◆ SMSC951xDeviceGetMACAddress()

TMACAddress * SMSC951xDeviceGetMACAddress ( TSMSC951xDevice pThis)

◆ SMSC951xDeviceIsLinkUp()

boolean SMSC951xDeviceIsLinkUp ( TSMSC951xDevice pThis)

◆ SMSC951xDevicePHYRead()

boolean SMSC951xDevicePHYRead ( TSMSC951xDevice pThis,
u8  uchIndex,
u16 pValue 
)

◆ SMSC951xDevicePHYWaitNotBusy()

boolean SMSC951xDevicePHYWaitNotBusy ( TSMSC951xDevice pThis)

◆ SMSC951xDevicePHYWrite()

boolean SMSC951xDevicePHYWrite ( TSMSC951xDevice pThis,
u8  uchIndex,
u16  usValue 
)

◆ SMSC951xDeviceReadReg()

boolean SMSC951xDeviceReadReg ( TSMSC951xDevice pThis,
u32  nIndex,
u32 pValue 
)

◆ SMSC951xDeviceReceiveFrame()

boolean SMSC951xDeviceReceiveFrame ( TSMSC951xDevice pThis,
void *  pBuffer,
unsigned *  pResultLength 
)

◆ SMSC951xDeviceSendFrame()

boolean SMSC951xDeviceSendFrame ( TSMSC951xDevice pThis,
const void *  pBuffer,
unsigned  nLength 
)

◆ SMSC951xDeviceWriteReg()

boolean SMSC951xDeviceWriteReg ( TSMSC951xDevice pThis,
u32  nIndex,
u32  nValue 
)