/linux-2.4.37.9/drivers/net/sk98lin/ |
D | skge.c | 195 static int SkGeBoardInit(struct SK_NET_DEVICE *dev, SK_AC *pAC); 196 static SK_BOOL BoardAllocMem(SK_AC *pAC); 197 static void BoardFreeMem(SK_AC *pAC); 198 static void BoardInitMem(SK_AC *pAC); 212 static void FreeTxDescriptors(SK_AC*pAC, TX_PORT*); 223 static int SkGeInitPCI(SK_AC *pAC); 224 static void StartDrvCleanupTimer(SK_AC *pAC); 225 static void StopDrvCleanupTimer(SK_AC *pAC); 230 static int SkDrvInitAdapter(SK_AC *pAC, int devNbr); 231 static int SkDrvDeInitAdapter(SK_AC *pAC, int devNbr); [all …]
|
D | skvpd.c | 38 SK_AC *pAC, 53 SK_AC *pAC, /* Adapters context */ in VpdWait() argument 60 SK_DBG_MSG(pAC,SK_DBGMOD_VPD, SK_DBGCAT_CTRL, in VpdWait() 62 start_time = SkOsGetTime(pAC); in VpdWait() 64 if (SkOsGetTime(pAC) - start_time > SK_TICKS_PER_SEC) { in VpdWait() 78 SK_DBG_MSG(pAC, SK_DBGMOD_VPD, SK_DBGCAT_FATAL | SK_DBGCAT_ERR, in VpdWait() 83 VPD_IN16(pAC, IoC, PCI_VPD_ADR_REG, &state); in VpdWait() 85 SK_DBG_MSG(pAC, SK_DBGMOD_VPD, SK_DBGCAT_CTRL, in VpdWait() 105 SK_AC *pAC, /* Adapters context */ in VpdReadDWord() argument 112 SK_DBG_MSG(pAC, SK_DBGMOD_VPD, SK_DBGCAT_CTRL, in VpdReadDWord() [all …]
|
D | skdim.c | 83 static unsigned int GetCurrentSystemLoad(SK_AC *pAC); 84 static SK_U64 GetIsrCalls(SK_AC *pAC); 85 static SK_BOOL IsIntModEnabled(SK_AC *pAC); 86 static void SetCurrIntCtr(SK_AC *pAC); 87 static void EnableIntMod(SK_AC *pAC); 88 static void DisableIntMod(SK_AC *pAC); 89 static void ResizeDimTimerDuration(SK_AC *pAC); 90 static void DisplaySelectedModerationType(SK_AC *pAC); 91 static void DisplaySelectedModerationMask(SK_AC *pAC); 92 static void DisplayDescrRatio(SK_AC *pAC); [all …]
|
D | skrlmt.c | 292 SK_AC *pAC, 296 SK_AC *pAC, 300 SK_AC *pAC, 338 SK_AC *pAC, /* Adapter Context */ in SkRlmtInit() argument 350 SK_DBG_MSG(pAC, SK_DBGMOD_RLMT, SK_DBGCAT_INIT, in SkRlmtInit() 355 SK_MEMSET((char *)&pAC->Rlmt, 0, sizeof(SK_RLMT)); in SkRlmtInit() 358 pAC->Rlmt.Port[i].PortState = SK_RLMT_PS_INIT; in SkRlmtInit() 359 pAC->Rlmt.Port[i].LinkDown = SK_TRUE; in SkRlmtInit() 360 pAC->Rlmt.Port[i].PortDown = SK_TRUE; in SkRlmtInit() 361 pAC->Rlmt.Port[i].PortStarted = SK_FALSE; in SkRlmtInit() [all …]
|
D | ski2c.c | 398 SK_AC *pAC, /* Adapter Context */ in SkI2cWait() argument 406 StartTime = SkOsGetTime(pAC); in SkI2cWait() 409 CurrentTime = SkOsGetTime(pAC); in SkI2cWait() 415 SK_ERR_LOG(pAC, SK_ERRCL_SW, SKERR_I2C_E002, SKERR_I2C_E002MSG); in SkI2cWait() 443 SK_AC *pAC, /* Adapter Context */ in SkI2cWaitIrq() argument 450 pSen = &pAC->I2c.SenTable[pAC->I2c.CurrSens]; in SkI2cWaitIrq() 456 StartTime = SkOsGetTime(pAC); in SkI2cWaitIrq() 459 if (SkOsGetTime(pAC) - StartTime > SK_TICKS_PER_SEC / 8) { in SkI2cWaitIrq() 463 SK_ERR_LOG(pAC, SK_ERRCL_SW, SKERR_I2C_E016, SKERR_I2C_E016MSG); in SkI2cWaitIrq() 483 SK_AC *pAC, /* Adapter Context */ in SkI2cWrite() argument [all …]
|
D | skaddr.c | 125 SK_AC *pAC, /* the adapter context */ in SkAddrInit() argument 137 SK_MEMSET((char *) &pAC->Addr, (SK_U8) 0, in SkAddrInit() 141 pAPort = &pAC->Addr.Port[i]; in SkAddrInit() 151 if (pAC->Addr.Port[i].NextExactMatchRlmt < in SkAddrInit() 163 pAC->Addr.Net[i].ActivePort = pAC->Rlmt.Net[i].ActivePort; in SkAddrInit() 168 if (pAC->Addr.Port[i].NextExactMatchRlmt < in SkAddrInit() 177 InAddr = (SK_U8 *) &pAC->Addr.Net[0].PermanentMacAddress.a[j]; in SkAddrInit() 181 if (!pAC->Addr.Net[0].CurrentMacAddressSet) { in SkAddrInit() 183 pAC->Addr.Net[0].CurrentMacAddress = in SkAddrInit() 184 pAC->Addr.Net[0].PermanentMacAddress; in SkAddrInit() [all …]
|
D | skgesirq.c | 110 SK_AC *pAC, /* adapter context */ in SkHWInitDefSense() argument 116 pPrt = &pAC->GIni.GP[Port]; in SkHWInitDefSense() 125 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkHWInitDefSense() 146 SK_AC *pAC, /* adapter context */ in SkHWSenseGetNext() argument 152 pPrt = &pAC->GIni.GP[Port]; in SkHWSenseGetNext() 180 SK_AC *pAC, /* adapter context */ in SkHWSenseSetNext() argument 187 pPrt = &pAC->GIni.GP[Port]; in SkHWSenseSetNext() 195 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkHWSenseSetNext() 215 SK_AC *pAC, /* adapter context */ in SkHWLinkDown() argument 221 pPrt = &pAC->GIni.GP[Port]; in SkHWLinkDown() [all …]
|
D | skgepnmi.c | 55 int SkPnmiInit(SK_AC *pAC, SK_IOC IoC, int level); 56 int SkPnmiGetVar(SK_AC *pAC, SK_IOC IoC, SK_U32 Id, void *pBuf, 58 int SkPnmiPreSetVar(SK_AC *pAC, SK_IOC IoC, SK_U32 Id, void *pBuf, 60 int SkPnmiSetVar(SK_AC *pAC, SK_IOC IoC, SK_U32 Id, void *pBuf, 62 int SkPnmiGetStruct(SK_AC *pAC, SK_IOC IoC, void *pBuf, 64 int SkPnmiPreSetStruct(SK_AC *pAC, SK_IOC IoC, void *pBuf, 66 int SkPnmiSetStruct(SK_AC *pAC, SK_IOC IoC, void *pBuf, 68 int SkPnmiEvent(SK_AC *pAC, SK_IOC IoC, SK_U32 Event, SK_EVPARA Param); 69 int SkPnmiGenIoctl(SK_AC *pAC, SK_IOC IoC, void * pBuf, 77 PNMI_STATIC SK_U8 CalculateLinkModeStatus(SK_AC *pAC, SK_IOC IoC, unsigned int [all …]
|
D | skgeinit.c | 73 SK_AC *pAC, /* adapter context */ in SkGePollRxD() argument 80 pPrt = &pAC->GIni.GP[Port]; in SkGePollRxD() 101 SK_AC *pAC, /* adapter context */ in SkGePollTxD() argument 109 pPrt = &pAC->GIni.GP[Port]; in SkGePollTxD() 137 SK_AC *pAC, /* adapter context */ in SkGeYellowLED() argument 171 SK_AC *pAC, /* adapter context */ in SkGeXmitLED() argument 180 LedIni = SK_XMIT_DUR * (SK_U32)pAC->GIni.GIHstClkFact / 100; in SkGeXmitLED() 229 SK_AC *pAC, /* adapter context */ in DoCalcAddr() argument 284 SK_AC *pAC, /* Adapter context */ in SkGeInitAssignRamToQueues() argument 295 if (ActivePort >= pAC->GIni.GIMacsFound) { in SkGeInitAssignRamToQueues() [all …]
|
D | skqueue.c | 54 SK_AC *pAC, /* Adapter context */ in SkEventInit() argument 60 pAC->Event.EvPut = pAC->Event.EvGet = pAC->Event.EvQueue; in SkEventInit() 71 SK_AC *pAC, /* Adapters context */ in SkEventQueue() argument 76 pAC->Event.EvPut->Class = Class; in SkEventQueue() 77 pAC->Event.EvPut->Event = Event; in SkEventQueue() 78 pAC->Event.EvPut->Para = Para; in SkEventQueue() 80 if (++pAC->Event.EvPut == &pAC->Event.EvQueue[SK_MAX_EVENT]) in SkEventQueue() 81 pAC->Event.EvPut = pAC->Event.EvQueue; in SkEventQueue() 83 if (pAC->Event.EvPut == pAC->Event.EvGet) { in SkEventQueue() 84 SK_ERR_LOG(pAC, SK_ERRCL_NORES, SKERR_Q_E001, SKERR_Q_E001MSG); in SkEventQueue() [all …]
|
D | skxmac2.c | 85 SK_AC *pAC, /* Adapter Context */ in SkXmPhyRead() argument 94 pPrt = &pAC->GIni.GP[Port]; in SkXmPhyRead() 124 SK_AC *pAC, /* Adapter Context */ in SkXmPhyWrite() argument 133 pPrt = &pAC->GIni.GP[Port]; in SkXmPhyWrite() 169 SK_AC *pAC, /* Adapter Context */ in SkGmPhyRead() argument 186 pPrt = &pAC->GIni.GP[Port]; in SkGmPhyRead() 236 SK_AC *pAC, /* Adapter Context */ in SkGmPhyWrite() argument 254 pPrt = &pAC->GIni.GP[Port]; in SkGmPhyWrite() 307 SK_AC *pAC, /* Adapter Context */ in SkGePhyRead() argument 313 void (*r_func)(SK_AC *pAC, SK_IOC IoC, int Port, int Reg, SK_U16 *pVal); in SkGePhyRead() [all …]
|
D | skgehwt.c | 48 #define SK_HWT_FAC (1000 * (SK_U32)pAC->GIni.GIHstClkFact / 100) 56 SK_AC *pAC, /* Adapters context */ in SkHwtInit() argument 59 pAC->Hwt.TStart = 0 ; in SkHwtInit() 60 pAC->Hwt.TStop = 0 ; in SkHwtInit() 61 pAC->Hwt.TActive = SK_FALSE; in SkHwtInit() 63 SkHwtStop(pAC, Ioc); in SkHwtInit() 72 SK_AC *pAC, /* Adapters context */ in SkHwtStart() argument 81 pAC->Hwt.TStart = Time; in SkHwtStart() 82 pAC->Hwt.TStop = 0L; in SkHwtStart() 98 pAC->Hwt.TActive = SK_TRUE; in SkHwtStart() [all …]
|
D | sktimer.c | 47 static void timer_done(SK_AC *pAC,SK_IOC Ioc,int Restart); 56 SK_AC *pAC, /* Adapters context */ in SkTimerInit() argument 62 pAC->Tim.StQueue = 0; in SkTimerInit() 65 SkHwtInit(pAC, Ioc); in SkTimerInit() 66 SkTimerDone(pAC, Ioc); in SkTimerInit() 78 SK_AC *pAC, /* Adapters context */ in SkTimerStop() argument 90 if (pAC->Tim.StQueue == pTimer && !pTimer->TmNext) { in SkTimerStop() 91 SkHwtStop(pAC, Ioc); in SkTimerStop() 94 for (ppTimPrev = &pAC->Tim.StQueue; (pTm = *ppTimPrev); in SkTimerStop() 118 SK_AC *pAC, /* Adapters context */ in SkTimerStart() argument [all …]
|
D | skproc.c | 95 SK_AC *pAC; in sk_gen_browse() local 108 pAC = pNet->pAC; in sk_gen_browse() 109 next = pAC->Next; in sk_gen_browse() 110 pPnmiStruct = &pAC->PnmiStruct; in sk_gen_browse() 113 for (t=pAC->GIni.GIMacsFound; t > 0; t--) { in sk_gen_browse() 114 if ((pAC->GIni.GIMacsFound == 2) && pAC->RlmtNets == 1) in sk_gen_browse() 117 spin_lock_irqsave(&pAC->SlowPathLock, Flags); in sk_gen_browse() 120 if (pAC->BoardLevel == SK_INIT_DATA) { in sk_gen_browse() 121 SK_MEMCPY(&(pAC->PnmiStruct), &(pAC->PnmiBackup), sizeof(SK_PNMI_STRUCT_DATA)); in sk_gen_browse() 122 if (pAC->DiagModeActive == DIAG_NOTACTIVE) { in sk_gen_browse() [all …]
|
D | sklm80.c | 36 #define BREAK_OR_WAIT(pAC,IoC,Event) SkI2cWait(pAC,IoC,Event) argument 38 #define BREAK_OR_WAIT(pAC,IoC,Event) break argument 120 SK_AC *pAC, /* Adapter Context */ in SkLm80ReadSensor() argument 132 BREAK_OR_WAIT(pAC, IoC, I2C_READ); in SkLm80ReadSensor() 180 BREAK_OR_WAIT(pAC, IoC, I2C_READ); in SkLm80ReadSensor() 204 SK_ERR_LOG(pAC, SK_ERRCL_SW, SKERR_I2C_E007, SKERR_I2C_E007MSG); in SkLm80ReadSensor()
|
/linux-2.4.37.9/drivers/net/sk98lin/h/ |
D | skvpd.h | 71 #define VPD_STOP(pAC,IoC) VPD_OUT16(pAC,IoC,PCI_VPD_ADR_REG,VPD_WRITE) argument 129 #define VPD_OUT8(pAC,IoC,Addr,Val) (void)SkPciWriteCfgByte(pAC,Addr,Val) argument 130 #define VPD_OUT16(pAC,IoC,Addr,Val) (void)SkPciWriteCfgWord(pAC,Addr,Val) argument 131 #define VPD_OUT32(pAC,IoC,Addr,Val) (void)SkPciWriteCfgDWord(pAC,Addr,Val) argument 132 #define VPD_IN8(pAC,IoC,Addr,pVal) (void)SkPciReadCfgByte(pAC,Addr,pVal) argument 133 #define VPD_IN16(pAC,IoC,Addr,pVal) (void)SkPciReadCfgWord(pAC,Addr,pVal) argument 134 #define VPD_IN32(pAC,IoC,Addr,pVal) (void)SkPciReadCfgDWord(pAC,Addr,pVal) argument 136 #define VPD_OUT8(pAC,IoC,Addr,Val) SK_OUT8(IoC,PCI_C(Addr),Val) argument 137 #define VPD_OUT16(pAC,IoC,Addr,Val) SK_OUT16(IoC,PCI_C(Addr),Val) argument 138 #define VPD_OUT32(pAC,IoC,Addr,Val) SK_OUT32(IoC,PCI_C(Addr),Val) argument [all …]
|
D | skgeinit.h | 297 int (*pFnMacUpdateStats)(SK_AC *pAC, SK_IOC IoC, unsigned int Port); 298 int (*pFnMacStatistic)(SK_AC *pAC, SK_IOC IoC, unsigned int Port, 300 int (*pFnMacResetCounter)(SK_AC *pAC, SK_IOC IoC, unsigned int Port); 301 int (*pFnMacOverflow)(SK_AC *pAC, SK_IOC IoC, unsigned int Port, 466 SK_AC *pAC, 472 SK_AC *pAC, 478 SK_AC *pAC, 483 SK_AC *pAC, 491 SK_AC *pAC, 497 SK_AC *pAC, [all …]
|
D | skgepnmi.h | 538 #define SK_PNMI_SET_DRIVER_DESCR(pAC,v) ((pAC)->Pnmi.pDriverDescription = \ argument 541 #define SK_PNMI_SET_DRIVER_VER(pAC,v) ((pAC)->Pnmi.pDriverVersion = \ argument 544 #define SK_PNMI_SET_DRIVER_RELDATE(pAC,v) ((pAC)->Pnmi.pDriverReleaseDate = \ argument 547 #define SK_PNMI_SET_DRIVER_FILENAME(pAC,v) ((pAC)->Pnmi.pDriverFileName = \ argument 550 #define SK_PNMI_CNT_TX_QUEUE_LEN(pAC,v,p) \ argument 552 (pAC)->Pnmi.Port[p].TxSwQueueLen = (SK_U64)(v); \ 553 if ((pAC)->Pnmi.Port[p].TxSwQueueLen > (pAC)->Pnmi.Port[p].TxSwQueueMax) { \ 554 (pAC)->Pnmi.Port[p].TxSwQueueMax = (pAC)->Pnmi.Port[p].TxSwQueueLen; \ 557 #define SK_PNMI_CNT_TX_RETRY(pAC,p) (((pAC)->Pnmi.Port[p].TxRetryCts)++) argument 558 #define SK_PNMI_CNT_RX_INTR(pAC,p) (((pAC)->Pnmi.Port[p].RxIntrCts)++) argument [all …]
|
D | skaddr.h | 227 SK_AC *pAC, 232 SK_AC *pAC, 238 SK_AC *pAC, 244 SK_AC *pAC, 250 SK_AC *pAC, 257 SK_AC *pAC, 264 SK_AC *pAC, 271 SK_AC *pAC, 276 SK_AC *pAC, 281 SK_AC *pAC, [all …]
|
D | ski2c.h | 144 int (*SenRead)(SK_AC *pAC, SK_IOC IoC, struct s_Sensor *pSen); 162 extern int SkI2cInit(SK_AC *pAC, SK_IOC IoC, int Level); 163 extern int SkI2cWrite(SK_AC *pAC, SK_IOC IoC, SK_U32 Data, int Dev, int Size, 165 extern int SkI2cReadSensor(SK_AC *pAC, SK_IOC IoC, SK_SENSOR *pSen); 167 extern SK_U32 SkI2cRead(SK_AC *pAC, SK_IOC IoC, int Dev, int Size, int Reg, 170 extern int SkI2cEvent(SK_AC *pAC, SK_IOC IoC, SK_U32 Event, SK_EVPARA Para); 171 extern void SkI2cWaitIrq(SK_AC *pAC, SK_IOC IoC); 172 extern void SkI2cIsr(SK_AC *pAC, SK_IOC IoC);
|
D | skgehwt.h | 41 extern void SkHwtInit(SK_AC *pAC, SK_IOC Ioc); 42 extern void SkHwtStart(SK_AC *pAC, SK_IOC Ioc, SK_U32 Time); 43 extern void SkHwtStop(SK_AC *pAC, SK_IOC Ioc); 44 extern SK_U32 SkHwtRead(SK_AC *pAC, SK_IOC Ioc); 45 extern void SkHwtIsr(SK_AC *pAC, SK_IOC Ioc);
|
D | skdebug.h | 28 #define SK_DBG_MSG(pAC,comp,cat,arg) \ argument 29 if ( ((comp) & SK_DBG_CHKMOD(pAC)) && \ 30 ((cat) & SK_DBG_CHKCAT(pAC)) ) { \ 35 #define SK_DBG_MSG(pAC,comp,lev,arg) argument
|
D | sktimer.h | 56 extern void SkTimerInit(SK_AC *pAC, SK_IOC Ioc, int Level); 57 extern void SkTimerStop(SK_AC *pAC, SK_IOC Ioc, SK_TIMER *pTimer); 58 extern void SkTimerStart(SK_AC *pAC, SK_IOC Ioc, SK_TIMER *pTimer, 60 extern void SkTimerDone(SK_AC *pAC, SK_IOC Ioc);
|
D | skgepnm2.h | 314 #define SK_PNMI_CHECKFLAGS(vSt) {if (pAC->Pnmi.MacUpdatedFlag > 0 || \ 315 pAC->Pnmi.RlmtUpdatedFlag > 0 || \ 316 pAC->Pnmi.SirqUpdatedFlag > 0) { \ 317 SK_DBG_MSG(pAC, \ 322 pAC->Pnmi.MacUpdatedFlag, \ 323 pAC->Pnmi.RlmtUpdatedFlag, \ 324 pAC->Pnmi.SirqUpdatedFlag))}}
|
D | skrlmt.h | 153 SK_AC *pAC /* adapter context */ 161 #define SK_RLMT_PRE_LOOKAHEAD(pAC,PortNum,PktLen,IsBc,pOffset,pNumBytes) { \ argument 164 _pAC = (pAC); \ 198 SK_AC *pAC /* adapter context */ 212 #define SK_RLMT_LOOKAHEAD(pAC,PortNum,pLaPacket,IsBc,IsMc,pForRlmt) { \ argument 216 _pAC = (pAC); \ 413 SK_AC *pAC, 418 SK_AC *pAC,
|