Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
mac.c File Reference
#include "tmacro.h"
#include "tether.h"
#include "mac.h"

Go to the source code of this file.

Functions

void MACvReadAllRegs (unsigned long dwIoBase, unsigned char *pbyMacRegs)
 
bool MACbIsRegBitsOn (unsigned long dwIoBase, unsigned char byRegOfs, unsigned char byTestBits)
 
bool MACbIsRegBitsOff (unsigned long dwIoBase, unsigned char byRegOfs, unsigned char byTestBits)
 
bool MACbIsIntDisable (unsigned long dwIoBase)
 
unsigned char MACbyReadMultiAddr (unsigned long dwIoBase, unsigned int uByteIdx)
 
void MACvWriteMultiAddr (unsigned long dwIoBase, unsigned int uByteIdx, unsigned char byData)
 
void MACvSetMultiAddrByHash (unsigned long dwIoBase, unsigned char byHashIdx)
 
void MACvResetMultiAddrByHash (unsigned long dwIoBase, unsigned char byHashIdx)
 
void MACvSetRxThreshold (unsigned long dwIoBase, unsigned char byThreshold)
 
void MACvGetRxThreshold (unsigned long dwIoBase, unsigned char *pbyThreshold)
 
void MACvSetTxThreshold (unsigned long dwIoBase, unsigned char byThreshold)
 
void MACvGetTxThreshold (unsigned long dwIoBase, unsigned char *pbyThreshold)
 
void MACvSetDmaLength (unsigned long dwIoBase, unsigned char byDmaLength)
 
void MACvGetDmaLength (unsigned long dwIoBase, unsigned char *pbyDmaLength)
 
void MACvSetShortRetryLimit (unsigned long dwIoBase, unsigned char byRetryLimit)
 
void MACvGetShortRetryLimit (unsigned long dwIoBase, unsigned char *pbyRetryLimit)
 
void MACvSetLongRetryLimit (unsigned long dwIoBase, unsigned char byRetryLimit)
 
void MACvGetLongRetryLimit (unsigned long dwIoBase, unsigned char *pbyRetryLimit)
 
void MACvSetLoopbackMode (unsigned long dwIoBase, unsigned char byLoopbackMode)
 
bool MACbIsInLoopbackMode (unsigned long dwIoBase)
 
void MACvSetPacketFilter (unsigned long dwIoBase, unsigned short wFilterType)
 
void MACvSaveContext (unsigned long dwIoBase, unsigned char *pbyCxtBuf)
 
void MACvRestoreContext (unsigned long dwIoBase, unsigned char *pbyCxtBuf)
 
bool MACbCompareContext (unsigned long dwIoBase, unsigned char *pbyCxtBuf)
 
bool MACbSoftwareReset (unsigned long dwIoBase)
 
bool MACbSafeSoftwareReset (unsigned long dwIoBase)
 
bool MACbSafeRxOff (unsigned long dwIoBase)
 
bool MACbSafeTxOff (unsigned long dwIoBase)
 
bool MACbSafeStop (unsigned long dwIoBase)
 
bool MACbShutdown (unsigned long dwIoBase)
 
void MACvInitialize (unsigned long dwIoBase)
 
void MACvSetCurrRx0DescAddr (unsigned long dwIoBase, unsigned long dwCurrDescAddr)
 
void MACvSetCurrRx1DescAddr (unsigned long dwIoBase, unsigned long dwCurrDescAddr)
 
void MACvSetCurrTx0DescAddrEx (unsigned long dwIoBase, unsigned long dwCurrDescAddr)
 
void MACvSetCurrAC0DescAddrEx (unsigned long dwIoBase, unsigned long dwCurrDescAddr)
 
void MACvSetCurrTXDescAddr (int iTxType, unsigned long dwIoBase, unsigned long dwCurrDescAddr)
 
void MACvTimer0MicroSDelay (unsigned long dwIoBase, unsigned int uDelay)
 
void MACvOneShotTimer0MicroSec (unsigned long dwIoBase, unsigned int uDelayTime)
 
void MACvOneShotTimer1MicroSec (unsigned long dwIoBase, unsigned int uDelayTime)
 
void MACvSetMISCFifo (unsigned long dwIoBase, unsigned short wOffset, unsigned long dwData)
 
bool MACbTxDMAOff (unsigned long dwIoBase, unsigned int idx)
 
void MACvClearBusSusInd (unsigned long dwIoBase)
 
void MACvEnableBusSusEn (unsigned long dwIoBase)
 
bool MACbFlushSYNCFifo (unsigned long dwIoBase)
 
bool MACbPSWakeup (unsigned long dwIoBase)
 
void MACvSetKeyEntry (unsigned long dwIoBase, unsigned short wKeyCtl, unsigned int uEntryIdx, unsigned int uKeyIdx, unsigned char *pbyAddr, unsigned long *pdwKey, unsigned char byLocalID)
 
void MACvDisableKeyEntry (unsigned long dwIoBase, unsigned int uEntryIdx)
 
void MACvSetDefaultKeyEntry (unsigned long dwIoBase, unsigned int uKeyLen, unsigned int uKeyIdx, unsigned long *pdwKey, unsigned char byLocalID)
 
void MACvDisableDefaultKey (unsigned long dwIoBase)
 
void MACvSetDefaultTKIPKeyEntry (unsigned long dwIoBase, unsigned int uKeyLen, unsigned int uKeyIdx, unsigned long *pdwKey, unsigned char byLocalID)
 
void MACvSetDefaultKeyCtl (unsigned long dwIoBase, unsigned short wKeyCtl, unsigned int uEntryIdx, unsigned char byLocalID)
 

Variables

unsigned short TxRate_iwconfig
 

Function Documentation

bool MACbCompareContext ( unsigned long  dwIoBase,
unsigned char pbyCxtBuf 
)

Definition at line 731 of file mac.c.

bool MACbFlushSYNCFifo ( unsigned long  dwIoBase)

Definition at line 1394 of file mac.c.

bool MACbIsInLoopbackMode ( unsigned long  dwIoBase)

Definition at line 562 of file mac.c.

bool MACbIsIntDisable ( unsigned long  dwIoBase)

Definition at line 187 of file mac.c.

bool MACbIsRegBitsOff ( unsigned long  dwIoBase,
unsigned char  byRegOfs,
unsigned char  byTestBits 
)

Definition at line 166 of file mac.c.

bool MACbIsRegBitsOn ( unsigned long  dwIoBase,
unsigned char  byRegOfs,
unsigned char  byTestBits 
)

Definition at line 143 of file mac.c.

bool MACbPSWakeup ( unsigned long  dwIoBase)

Definition at line 1418 of file mac.c.

bool MACbSafeRxOff ( unsigned long  dwIoBase)

Definition at line 842 of file mac.c.

bool MACbSafeSoftwareReset ( unsigned long  dwIoBase)

Definition at line 809 of file mac.c.

bool MACbSafeStop ( unsigned long  dwIoBase)

Definition at line 967 of file mac.c.

bool MACbSafeTxOff ( unsigned long  dwIoBase)

Definition at line 903 of file mac.c.

bool MACbShutdown ( unsigned long  dwIoBase)

Definition at line 1002 of file mac.c.

bool MACbSoftwareReset ( unsigned long  dwIoBase)

Definition at line 776 of file mac.c.

bool MACbTxDMAOff ( unsigned long  dwIoBase,
unsigned int  idx 
)

Definition at line 1322 of file mac.c.

unsigned char MACbyReadMultiAddr ( unsigned long  dwIoBase,
unsigned int  uByteIdx 
)

Definition at line 212 of file mac.c.

void MACvClearBusSusInd ( unsigned long  dwIoBase)

Definition at line 1350 of file mac.c.

void MACvDisableDefaultKey ( unsigned long  dwIoBase)

Definition at line 1639 of file mac.c.

void MACvDisableKeyEntry ( unsigned long  dwIoBase,
unsigned int  uEntryIdx 
)

Definition at line 1525 of file mac.c.

void MACvEnableBusSusEn ( unsigned long  dwIoBase)

Definition at line 1372 of file mac.c.

void MACvGetDmaLength ( unsigned long  dwIoBase,
unsigned char pbyDmaLength 
)

Definition at line 437 of file mac.c.

void MACvGetLongRetryLimit ( unsigned long  dwIoBase,
unsigned char pbyRetryLimit 
)

Definition at line 516 of file mac.c.

void MACvGetRxThreshold ( unsigned long  dwIoBase,
unsigned char pbyThreshold 
)

Definition at line 345 of file mac.c.

void MACvGetShortRetryLimit ( unsigned long  dwIoBase,
unsigned char pbyRetryLimit 
)

Definition at line 477 of file mac.c.

void MACvGetTxThreshold ( unsigned long  dwIoBase,
unsigned char pbyThreshold 
)

Definition at line 391 of file mac.c.

void MACvInitialize ( unsigned long  dwIoBase)

Definition at line 1029 of file mac.c.

void MACvOneShotTimer0MicroSec ( unsigned long  dwIoBase,
unsigned int  uDelayTime 
)

Definition at line 1283 of file mac.c.

void MACvOneShotTimer1MicroSec ( unsigned long  dwIoBase,
unsigned int  uDelayTime 
)

Definition at line 1304 of file mac.c.

void MACvReadAllRegs ( unsigned long  dwIoBase,
unsigned char pbyMacRegs 
)

Definition at line 106 of file mac.c.

void MACvResetMultiAddrByHash ( unsigned long  dwIoBase,
unsigned char  byHashIdx 
)

Definition at line 289 of file mac.c.

void MACvRestoreContext ( unsigned long  dwIoBase,
unsigned char pbyCxtBuf 
)

Definition at line 679 of file mac.c.

void MACvSaveContext ( unsigned long  dwIoBase,
unsigned char pbyCxtBuf 
)

Definition at line 646 of file mac.c.

void MACvSetCurrAC0DescAddrEx ( unsigned long  dwIoBase,
unsigned long  dwCurrDescAddr 
)

Definition at line 1197 of file mac.c.

void MACvSetCurrRx0DescAddr ( unsigned long  dwIoBase,
unsigned long  dwCurrDescAddr 
)

Definition at line 1082 of file mac.c.

void MACvSetCurrRx1DescAddr ( unsigned long  dwIoBase,
unsigned long  dwCurrDescAddr 
)

Definition at line 1120 of file mac.c.

void MACvSetCurrTx0DescAddrEx ( unsigned long  dwIoBase,
unsigned long  dwCurrDescAddr 
)

Definition at line 1158 of file mac.c.

void MACvSetCurrTXDescAddr ( int  iTxType,
unsigned long  dwIoBase,
unsigned long  dwCurrDescAddr 
)

Definition at line 1224 of file mac.c.

void MACvSetDefaultKeyCtl ( unsigned long  dwIoBase,
unsigned short  wKeyCtl,
unsigned int  uEntryIdx,
unsigned char  byLocalID 
)

Definition at line 1726 of file mac.c.

void MACvSetDefaultKeyEntry ( unsigned long  dwIoBase,
unsigned int  uKeyLen,
unsigned int  uKeyIdx,
unsigned long pdwKey,
unsigned char  byLocalID 
)

Definition at line 1553 of file mac.c.

void MACvSetDefaultTKIPKeyEntry ( unsigned long  dwIoBase,
unsigned int  uKeyLen,
unsigned int  uKeyIdx,
unsigned long pdwKey,
unsigned char  byLocalID 
)

Definition at line 1669 of file mac.c.

void MACvSetDmaLength ( unsigned long  dwIoBase,
unsigned char  byDmaLength 
)

Definition at line 412 of file mac.c.

void MACvSetKeyEntry ( unsigned long  dwIoBase,
unsigned short  wKeyCtl,
unsigned int  uEntryIdx,
unsigned int  uKeyIdx,
unsigned char pbyAddr,
unsigned long pdwKey,
unsigned char  byLocalID 
)

Definition at line 1458 of file mac.c.

void MACvSetLongRetryLimit ( unsigned long  dwIoBase,
unsigned char  byRetryLimit 
)

Definition at line 497 of file mac.c.

void MACvSetLoopbackMode ( unsigned long  dwIoBase,
unsigned char  byLoopbackMode 
)

Definition at line 536 of file mac.c.

void MACvSetMISCFifo ( unsigned long  dwIoBase,
unsigned short  wOffset,
unsigned long  dwData 
)

Definition at line 1312 of file mac.c.

void MACvSetMultiAddrByHash ( unsigned long  dwIoBase,
unsigned char  byHashIdx 
)

Definition at line 258 of file mac.c.

void MACvSetPacketFilter ( unsigned long  dwIoBase,
unsigned short  wFilterType 
)

Definition at line 586 of file mac.c.

void MACvSetRxThreshold ( unsigned long  dwIoBase,
unsigned char  byThreshold 
)

Definition at line 320 of file mac.c.

void MACvSetShortRetryLimit ( unsigned long  dwIoBase,
unsigned char  byRetryLimit 
)

Definition at line 458 of file mac.c.

void MACvSetTxThreshold ( unsigned long  dwIoBase,
unsigned char  byThreshold 
)

Definition at line 366 of file mac.c.

void MACvTimer0MicroSDelay ( unsigned long  dwIoBase,
unsigned int  uDelay 
)

Definition at line 1247 of file mac.c.

void MACvWriteMultiAddr ( unsigned long  dwIoBase,
unsigned int  uByteIdx,
unsigned char  byData 
)

Definition at line 237 of file mac.c.

Variable Documentation

unsigned short TxRate_iwconfig

Definition at line 75 of file mac.c.