/linux-2.4.37.9/drivers/net/sk98lin/ |
D | skgeinit.c | 74 SK_IOC IoC, /* IO context */ in SkGePollRxD() argument 82 SK_OUT32(IoC, Q_ADDR(pPrt->PRxQOff, Q_CSR), (PollRxD) ? in SkGePollRxD() 102 SK_IOC IoC, /* IO context */ in SkGePollTxD() argument 114 SK_OUT32(IoC, Q_ADDR(pPrt->PXsQOff, Q_CSR), DWord); in SkGePollTxD() 118 SK_OUT32(IoC, Q_ADDR(pPrt->PXaQOff, Q_CSR), DWord); in SkGePollTxD() 138 SK_IOC IoC, /* IO context */ in SkGeYellowLED() argument 143 SK_OUT8(IoC, B0_LED, LED_STAT_OFF); in SkGeYellowLED() 147 SK_OUT8(IoC, B0_LED, LED_STAT_ON); in SkGeYellowLED() 172 SK_IOC IoC, /* IO context */ in SkGeXmitLED() argument 181 SK_OUT32(IoC, Led + XMIT_LED_INI, LedIni); in SkGeXmitLED() [all …]
|
D | skxmac2.c | 86 SK_IOC IoC, /* I/O Context */ in SkXmPhyRead() argument 97 XM_OUT16(IoC, Port, XM_PHY_ADDR, PhyReg | pPrt->PhyAddr); in SkXmPhyRead() 100 XM_IN16(IoC, Port, XM_PHY_DATA, pVal); in SkXmPhyRead() 104 XM_IN16(IoC, Port, XM_MMU_CMD, &Mmu); in SkXmPhyRead() 109 XM_IN16(IoC, Port, XM_PHY_DATA, pVal); in SkXmPhyRead() 125 SK_IOC IoC, /* I/O Context */ in SkXmPhyWrite() argument 137 XM_IN16(IoC, Port, XM_MMU_CMD, &Mmu); in SkXmPhyWrite() 143 XM_OUT16(IoC, Port, XM_PHY_ADDR, PhyReg | pPrt->PhyAddr); in SkXmPhyWrite() 146 XM_OUT16(IoC, Port, XM_PHY_DATA, Val); in SkXmPhyWrite() 150 XM_IN16(IoC, Port, XM_MMU_CMD, &Mmu); in SkXmPhyWrite() [all …]
|
D | skgesirq.c | 111 SK_IOC IoC, /* IO context */ in SkHWInitDefSense() argument 147 SK_IOC IoC, /* IO context */ in SkHWSenseGetNext() argument 181 SK_IOC IoC, /* IO context */ in SkHWSenseSetNext() argument 216 SK_IOC IoC, /* IO context */ in SkHWLinkDown() argument 224 SkMacIrqDisable(pAC, IoC, Port); in SkHWLinkDown() 227 SkMacRxTxDisable(pAC, IoC, Port); in SkHWLinkDown() 230 SkHWInitDefSense(pAC, IoC, Port); in SkHWLinkDown() 248 SkMacInitPhy(pAC, IoC, Port, SK_FALSE); in SkHWLinkDown() 268 SK_IOC IoC, /* IO context */ in SkHWLinkUp() argument 316 (void)SkMacRxTxEnable(pAC, IoC, Port); in SkHWLinkUp() [all …]
|
D | ski2c.c | 146 #define I2C_DATA_HIGH(IoC) SK_I2C_SET_BIT(IoC, I2C_DATA) argument 147 #define I2C_DATA_LOW(IoC) SK_I2C_CLR_BIT(IoC, I2C_DATA) argument 148 #define I2C_DATA_OUT(IoC) SK_I2C_SET_BIT(IoC, I2C_DATA_DIR) argument 149 #define I2C_DATA_IN(IoC) SK_I2C_CLR_BIT(IoC, I2C_DATA_DIR | I2C_DATA) argument 150 #define I2C_CLK_HIGH(IoC) SK_I2C_SET_BIT(IoC, I2C_CLK) argument 151 #define I2C_CLK_LOW(IoC) SK_I2C_CLR_BIT(IoC, I2C_CLK | I2C_DATA_DIR) argument 152 #define I2C_START_COND(IoC) SK_I2C_CLR_BIT(IoC, I2C_CLK) argument 162 SK_IOC IoC, /* I/O Context */ in SkI2cSndBit() argument 165 I2C_DATA_OUT(IoC); in SkI2cSndBit() 167 I2C_DATA_HIGH(IoC); in SkI2cSndBit() [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 49 SK_IOC IoC, /* Adapter Context */ in SkLm80RcvReg() argument 57 if (SkI2cSndDev(IoC, Dev, I2C_WRITE)) { in SkLm80RcvReg() 61 if (SkI2cSndByte(IoC, Reg)) { in SkLm80RcvReg() 66 if (SkI2cSndDev(IoC, Dev, I2C_READ)) { in SkLm80RcvReg() 72 Val = (int)SkI2cRcvByte(IoC, 1); in SkLm80RcvReg() 80 SkI2cStop(IoC); in SkLm80RcvReg() 82 TempExt = (int)SkLm80RcvReg(IoC, LM80_ADDR, LM80_TEMP_CTRL); in SkLm80RcvReg() 96 Val = (int)SkI2cRcvByte(IoC, 1) * SK_LM80_VT_LSB; in SkLm80RcvReg() [all …]
|
D | skvpd.c | 54 SK_IOC IoC, /* IO Context */ in VpdWait() argument 83 VPD_IN16(pAC, IoC, PCI_VPD_ADR_REG, &state); in VpdWait() 106 SK_IOC IoC, /* IO Context */ in VpdReadDWord() argument 116 VPD_OUT16(pAC, IoC, PCI_VPD_ADR_REG, (SK_U16)addr); in VpdReadDWord() 119 (void)VpdWait(pAC, IoC, VPD_READ); in VpdReadDWord() 124 VPD_IN32(pAC, IoC, PCI_VPD_DAT_REG, &Rtv); in VpdReadDWord() 160 SK_IOC IoC, /* IO Context */ 168 VPD_OUT32(pAC, IoC, PCI_VPD_DAT_REG, (SK_U32)data); 172 VPD_OUT16(pAC, IoC, PCI_VPD_ADR_REG, (SK_U16)(addr | VPD_WRITE)); 175 if (VpdWait(pAC, IoC, VPD_WRITE)) { [all …]
|
D | skaddr.c | 126 SK_IOC IoC, /* I/O context */ in SkAddrInit() argument 178 SK_IN8(IoC, B2_MAC_1 + j, InAddr); in SkAddrInit() 234 SK_IN8(IoC, B2_MAC_2 + 8 * i + j, InAddr); in SkAddrInit() 251 XM_OUTADDR(IoC, i, XM_SA, OutAddr); in SkAddrInit() 256 GM_OUTADDR(IoC, i, GM_SRC_ADDR_1L, OutAddr); in SkAddrInit() 329 SK_IOC IoC, /* I/O context */ in SkAddrMcClear() argument 340 ReturnCode = SkAddrXmacMcClear(pAC, IoC, PortNumber, Flags); in SkAddrMcClear() 343 ReturnCode = SkAddrGmacMcClear(pAC, IoC, PortNumber, Flags); in SkAddrMcClear() 375 SK_IOC IoC, /* I/O context */ in SkAddrXmacMcClear() argument 399 (void) SkAddrXmacMcUpdate(pAC, IoC, PortNumber); in SkAddrXmacMcClear() [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 | skrlmt.c | 293 SK_IOC IoC, 297 SK_IOC IoC, 301 SK_IOC IoC, 339 SK_IOC IoC, /* I/O Context */ in SkRlmtInit() argument 399 (void)SkRlmtEvent(pAC, IoC, SK_RLMT_MODE_CHANGE, Para); in SkRlmtInit() 408 SkRlmtEvtSetNets(pAC, IoC, Para); in SkRlmtInit() 420 (void)SkAddrMcClear(pAC, IoC, i, SK_ADDR_PERMANENT | SK_MC_SW_ONLY); in SkRlmtInit() 423 (void)SkAddrMcAdd(pAC, IoC, i, &SkRlmtMcAddr, SK_ADDR_PERMANENT); in SkRlmtInit() 427 (void)SkAddrMcAdd(pAC, IoC, i, &BridgeMcAddr, SK_ADDR_PERMANENT); in SkRlmtInit() 430 (void)SkAddrMcUpdate(pAC, IoC, i); in SkRlmtInit() [all …]
|
D | skgemib.c | 26 PNMI_STATIC int Addr(SK_AC *pAC, SK_IOC IoC, int action, 29 PNMI_STATIC int CsumStat(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id, 32 PNMI_STATIC int General(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id, 35 PNMI_STATIC int Mac8023Stat(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id, 38 PNMI_STATIC int MacPrivateConf(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id, 41 PNMI_STATIC int MacPrivateStat(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id, 44 PNMI_STATIC int Monitor(SK_AC *pAC, SK_IOC IoC, int action, 47 PNMI_STATIC int OidStruct(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id, 50 PNMI_STATIC int Perform(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id, 53 PNMI_STATIC int Rlmt(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id, [all …]
|
D | skge.c | 4319 SK_IOC IoC, /* the IO-context */ argument 4356 SK_IOC IoC, /* the IO-context */ argument 4542 SK_IOC IoC, /* io-context */ argument 4581 SkPnmiEvent(pAC, IoC, SK_PNMI_EVT_XMAC_RESET, NewPara); 4586 SkGeStopPort(pAC, IoC, FromPort, SK_STOP_ALL, SK_HARD_RST); 4601 if (SkGeInitPort(pAC, IoC, FromPort)) { 4608 SkAddrMcUpdate(pAC,IoC, FromPort); 4610 SkGePollTxD(pAC, IoC, FromPort, SK_TRUE); 4622 SkAddrMcUpdate(pAC,IoC, FromPort); 4759 SkPnmiEvent(pAC, IoC, SK_PNMI_EVT_XMAC_RESET, NewPara); [all …]
|
/linux-2.4.37.9/drivers/net/sk98lin/h/ |
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, 467 SK_IOC IoC, 473 SK_IOC IoC, 479 SK_IOC IoC, 484 SK_IOC IoC, 492 SK_IOC IoC, 498 SK_IOC IoC, [all …]
|
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 | skgei2c.h | 33 #define SK_I2C_CTL(IoC, flag, dev, dev_size, reg, burst) \ argument 34 SK_OUT32(IoC, B2_I2C_CTRL,\ 41 #define SK_I2C_STOP(IoC) { \ argument 43 SK_IN32(IoC, B2_I2C_CTRL, &I2cCtrl); \ 44 SK_OUT32(IoC, B2_I2C_CTRL, I2cCtrl | I2C_STOP); \ 47 #define SK_I2C_GET_CTL(IoC, pI2cCtrl) SK_IN32(IoC, B2_I2C_CTRL, pI2cCtrl) argument 52 #define SK_I2C_SET_BIT(IoC, SetBits) { \ argument 54 SK_IN8(IoC, B2_I2C_SW, &OrgBits); \ 55 SK_OUT8(IoC, B2_I2C_SW, OrgBits | (SK_U8)(SetBits)); \ 58 #define SK_I2C_CLR_BIT(IoC, ClrBits) { \ argument [all …]
|
D | skgehw.h | 1778 #define XM_IN16(IoC, Mac, Reg, pVal) \ argument 1779 SK_IN16((IoC), XMA((Mac), (Reg)), (pVal)) 1781 #define XM_OUT16(IoC, Mac, Reg, Val) \ argument 1782 SK_OUT16((IoC), XMA((Mac), (Reg)), (Val)) 1784 #define XM_IN32(IoC, Mac, Reg, pVal) { \ argument 1785 SK_IN16((IoC), XMA((Mac), (Reg)), \ 1787 SK_IN16((IoC), XMA((Mac), (Reg+2)), \ 1791 #define XM_OUT32(IoC, Mac, Reg, Val) { \ argument 1792 SK_OUT16((IoC), XMA((Mac), (Reg)), (SK_U16)((Val) & 0xffffL)); \ 1793 SK_OUT16((IoC), XMA((Mac), (Reg+2)), (SK_U16)(((Val) >> 16) & 0xffffL));\ [all …]
|
D | skaddr.h | 228 SK_IOC IoC, 233 SK_IOC IoC, 239 SK_IOC IoC, 245 SK_IOC IoC, 251 SK_IOC IoC, 258 SK_IOC IoC, 265 SK_IOC IoC, 272 SK_IOC IoC, 277 SK_IOC IoC, 282 SK_IOC IoC, [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 | skgesirq.h | 104 extern void SkGeSirqIsr(SK_AC *pAC, SK_IOC IoC, SK_U32 Istatus); 105 extern int SkGeSirqEvent(SK_AC *pAC, SK_IOC IoC, SK_U32 Event, SK_EVPARA Para); 106 extern void SkHWLinkUp(SK_AC *pAC, SK_IOC IoC, int Port); 107 extern void SkHWLinkDown(SK_AC *pAC, SK_IOC IoC, int Port);
|
D | skdrv2nd.h | 111 extern int SkDrvEvent(SK_AC*, SK_IOC IoC, SK_U32, SK_EVPARA); 199 #define SK_DRIVER_RESET(pAC, IoC) 0 argument 200 #define SK_DRIVER_SENDEVENT(pAC, IoC) 0 argument 201 #define SK_DRIVER_SELFTEST(pAC, IoC) 0 argument 203 #define SK_DRIVER_GET_MTU(pAc,IoC,i) 0 argument 204 #define SK_DRIVER_SET_MTU(pAc,IoC,i,v) 0 argument 205 #define SK_DRIVER_PRESET_MTU(pAc,IoC,i,v) 0 argument
|
D | skgepnmi.h | 946 extern int SkPnmiInit(SK_AC *pAC, SK_IOC IoC, int Level); 947 extern int SkPnmiGetVar(SK_AC *pAC, SK_IOC IoC, SK_U32 Id, void* pBuf, 949 extern int SkPnmiPreSetVar(SK_AC *pAC, SK_IOC IoC, SK_U32 Id, 951 extern int SkPnmiSetVar(SK_AC *pAC, SK_IOC IoC, SK_U32 Id, void* pBuf, 953 extern int SkPnmiGetStruct(SK_AC *pAC, SK_IOC IoC, void* pBuf, 955 extern int SkPnmiPreSetStruct(SK_AC *pAC, SK_IOC IoC, void* pBuf, 957 extern int SkPnmiSetStruct(SK_AC *pAC, SK_IOC IoC, void* pBuf, 959 extern int SkPnmiEvent(SK_AC *pAC, SK_IOC IoC, SK_U32 Event, 961 extern int SkPnmiGenIoctl(SK_AC *pAC, SK_IOC IoC, void * pBuf,
|
D | skrlmt.h | 414 SK_IOC IoC, 419 SK_IOC IoC,
|