Lines Matching refs:pAC
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()
315 if (pAC->GIni.GIGenesis) { in SkGePhyRead()
322 r_func(pAC, IoC, Port, PhyReg, pVal); in SkGePhyRead()
336 SK_AC *pAC, /* Adapter Context */ in SkGePhyWrite() argument
342 void (*w_func)(SK_AC *pAC, SK_IOC IoC, int Port, int Reg, SK_U16 Val); in SkGePhyWrite()
344 if (pAC->GIni.GIGenesis) { in SkGePhyWrite()
351 w_func(pAC, IoC, Port, PhyReg, Val); in SkGePhyWrite()
368 SK_AC *pAC, /* adapter context */ in SkMacPromiscMode() argument
381 if (pAC->GIni.GIGenesis) { in SkMacPromiscMode()
397 if (pAC->GIni.GIYukon) { in SkMacPromiscMode()
428 SK_AC *pAC, /* adapter context */ in SkMacHashing() argument
441 if (pAC->GIni.GIGenesis) { in SkMacHashing()
457 if (pAC->GIni.GIYukon) { in SkMacHashing()
500 SK_AC *pAC, /* adapter context */ in SkXmSetRxCmd() argument
585 SK_AC *pAC, /* adapter context */ in SkGmSetRxCmd() argument
642 SK_AC *pAC, /* adapter context */ in SkMacSetRxCmd() argument
647 if (pAC->GIni.GIGenesis) { in SkMacSetRxCmd()
649 SkXmSetRxCmd(pAC, IoC, Port, Mode); in SkMacSetRxCmd()
653 SkGmSetRxCmd(pAC, IoC, Port, Mode); in SkMacSetRxCmd()
669 SK_AC *pAC, /* adapter context */ in SkMacCrcGener() argument
676 if (pAC->GIni.GIGenesis) { in SkMacCrcGener()
722 SK_AC *pAC, /* adapter context */ in SkXmClrExactAddr() argument
734 SK_ERR_LOG(pAC, SK_ERRCL_SW, SKERR_HWI_E001, SKERR_HWI_E001MSG); in SkXmClrExactAddr()
756 SK_AC *pAC, /* adapter context */ in SkMacFlushTxFifo() argument
763 if (pAC->GIni.GIGenesis) { in SkMacFlushTxFifo()
772 if (pAC->GIni.GIYukon) { in SkMacFlushTxFifo()
792 SK_AC *pAC, /* adapter context */ in SkMacFlushRxFifo() argument
799 if (pAC->GIni.GIGenesis) { in SkMacFlushRxFifo()
808 if (pAC->GIni.GIYukon) { in SkMacFlushRxFifo()
854 SK_AC *pAC, /* adapter context */ in SkXmSoftRst() argument
872 switch (pAC->GIni.GP[Port].PhyType) { in SkXmSoftRst()
874 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_INT_MASK, 0xffff); in SkXmSoftRst()
878 SkXmPhyWrite(pAC, IoC, Port, PHY_LONE_INT_ENAB, 0); in SkXmSoftRst()
891 SkXmClrExactAddr(pAC, IoC, Port, 0, 15); in SkXmSoftRst()
917 SK_AC *pAC, /* adapter context */ in SkXmHardRst() argument
948 if (pAC->GIni.GP[Port].PhyType != SK_PHY_XMAC) { in SkXmHardRst()
979 SK_AC *pAC, /* adapter context */ in SkXmClearRst() argument
988 if (pAC->GIni.GP[Port].PhyType != SK_PHY_XMAC) { in SkXmClearRst()
1021 SK_AC *pAC, /* adapter context */ in SkGmSoftRst() argument
1034 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_INT_MASK, 0); in SkGmSoftRst()
1058 SK_AC *pAC, /* adapter context */ in SkGmHardRst() argument
1065 if (pAC->GIni.GIYukonLite && in SkGmHardRst()
1066 pAC->GIni.GIChipRev == CHIP_REV_YU_LITE_A3) { in SkGmHardRst()
1095 SK_AC *pAC, /* adapter context */ in SkGmClearRst() argument
1110 if (pAC->GIni.GIYukonLite && in SkGmClearRst()
1111 pAC->GIni.GIChipRev == CHIP_REV_YU_LITE_A3) { in SkGmClearRst()
1125 (pAC->GIni.GICopperType ? GPC_HWCFG_GMII_COP : in SkGmClearRst()
1163 SK_AC *pAC, /* adapter context */ in SkMacSoftRst() argument
1169 pPrt = &pAC->GIni.GP[Port]; in SkMacSoftRst()
1172 SkMacRxTxDisable(pAC, IoC, Port); in SkMacSoftRst()
1175 if (pAC->GIni.GIGenesis) { in SkMacSoftRst()
1177 SkXmSoftRst(pAC, IoC, Port); in SkMacSoftRst()
1182 if (pAC->GIni.GIYukon) { in SkMacSoftRst()
1184 SkGmSoftRst(pAC, IoC, Port); in SkMacSoftRst()
1189 SkMacFlushTxFifo(pAC, IoC, Port); in SkMacSoftRst()
1191 SkMacFlushRxFifo(pAC, IoC, Port); in SkMacSoftRst()
1208 SK_AC *pAC, /* adapter context */ in SkMacHardRst() argument
1214 if (pAC->GIni.GIGenesis) { in SkMacHardRst()
1216 SkXmHardRst(pAC, IoC, Port); in SkMacHardRst()
1221 if (pAC->GIni.GIYukon) { in SkMacHardRst()
1223 SkGmHardRst(pAC, IoC, Port); in SkMacHardRst()
1227 pAC->GIni.GP[Port].PState = SK_PRT_RESET; in SkMacHardRst()
1242 SK_AC *pAC, /* adapter context */ in SkMacClearRst() argument
1248 if (pAC->GIni.GIGenesis) { in SkMacClearRst()
1250 SkXmClearRst(pAC, IoC, Port); in SkMacClearRst()
1255 if (pAC->GIni.GIYukon) { in SkMacClearRst()
1257 SkGmClearRst(pAC, IoC, Port); in SkMacClearRst()
1280 SK_AC *pAC, /* adapter context */ in SkXmInitMac() argument
1288 pPrt = &pAC->GIni.GP[Port]; in SkXmInitMac()
1297 SK_ERR_LOG(pAC, SK_ERRCL_SW, SKERR_HWI_E006, SKERR_HWI_E006MSG); in SkXmInitMac()
1305 SkXmClearRst(pAC, IoC, Port); in SkXmInitMac()
1309 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_ID1, &pPrt->PhyId1); in SkXmInitMac()
1326 SkXmPhyWrite(pAC, IoC, Port, BcomRegC0Hack[i].PhyReg, in SkXmInitMac()
1338 SkXmPhyWrite(pAC, IoC, Port, BcomRegA1Hack[i].PhyReg, in SkXmInitMac()
1348 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_CTRL, &SWord); in SkXmInitMac()
1350 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_AUX_CTRL, in SkXmInitMac()
1364 SkMacInitPhy(pAC, IoC, Port, SK_FALSE); in SkXmInitMac()
1401 if (pAC->GIni.GIMacsFound > 1) { in SkXmInitMac()
1402 switch (pAC->GIni.GIPortUsage) { in SkXmInitMac()
1413 SK_ERR_LOG(pAC, SK_ERRCL_SW, SKERR_HWI_E014, SKERR_HWI_E014MSG); in SkXmInitMac()
1425 if (pAC->GIni.GIPortUsage == SK_JUMBO_LINK) { in SkXmInitMac()
1494 SK_AC *pAC, /* adapter context */ in SkGmInitMac() argument
1503 pPrt = &pAC->GIni.GP[Port]; in SkGmInitMac()
1512 SK_ERR_LOG(pAC, SK_ERRCL_SW, SKERR_HWI_E006, SKERR_HWI_E006MSG); in SkGmInitMac()
1520 SkGmHardRst(pAC, IoC, Port); in SkGmInitMac()
1522 SkGmClearRst(pAC, IoC, Port); in SkGmInitMac()
1588 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_ID1, &pPrt->PhyId1); in SkGmInitMac()
1590 SkGmInitPhyMarv(pAC, IoC, Port, SK_FALSE); in SkGmInitMac()
1594 (void)SkGmResetCounter(pAC, IoC, Port); in SkGmInitMac()
1629 if (pAC->GIni.GIPortUsage == SK_JUMBO_LINK) { in SkGmInitMac()
1654 if (pAC->GIni.GIChipId == CHIP_ID_YUKON && pAC->GIni.GIChipRev == 0) { in SkGmInitMac()
1689 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitMac()
1715 SK_AC *pAC, /* adapter context */ in SkXmInitDupMd() argument
1719 switch (pAC->GIni.GP[Port].PLinkModeStatus) { in SkXmInitDupMd()
1743 SK_ERR_LOG(pAC, SK_ERRCL_SW, SKERR_HWI_E007, SKERR_HWI_E007MSG); in SkXmInitDupMd()
1763 SK_AC *pAC, /* adapter context */ in SkXmInitPauseMd() argument
1771 pPrt = &pAC->GIni.GP[Port]; in SkXmInitPauseMd()
1846 SK_AC *pAC, /* adapter context */ in SkXmInitPhyXmac() argument
1854 pPrt = &pAC->GIni.GP[Port]; in SkXmInitPhyXmac()
1859 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyXmac()
1872 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyXmac()
1888 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E015, in SkXmInitPhyXmac()
1907 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E016, in SkXmInitPhyXmac()
1912 SkXmPhyWrite(pAC, IoC, Port, PHY_XMAC_AUNE_ADV, Ctrl); in SkXmInitPhyXmac()
1924 SkXmPhyWrite(pAC, IoC, Port, PHY_XMAC_CTRL, Ctrl); in SkXmInitPhyXmac()
1940 SK_AC *pAC, /* adapter context */ in SkXmInitPhyBcom() argument
1958 pPrt = &pAC->GIni.GP[Port]; in SkXmInitPhyBcom()
1970 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyBcom()
1988 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyBcom()
2011 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E015, in SkXmInitPhyBcom()
2030 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E016, in SkXmInitPhyBcom()
2043 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_1000T_CTRL, Ctrl2); in SkXmInitPhyBcom()
2044 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyBcom()
2048 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_AUNE_ADV, Ctrl3); in SkXmInitPhyBcom()
2049 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyBcom()
2057 if (pAC->GIni.GIPortUsage == SK_JUMBO_LINK) { in SkXmInitPhyBcom()
2064 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_AUX_CTRL, Ctrl5); in SkXmInitPhyBcom()
2068 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_P_EXT_CTRL, Ctrl4); in SkXmInitPhyBcom()
2071 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_CTRL, Ctrl1); in SkXmInitPhyBcom()
2072 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyBcom()
2116 SK_AC *pAC, /* adapter context */ in SkGmEnterLowPowerMode() argument
2126 if (pAC->GIni.GIYukonLite && in SkGmEnterLowPowerMode()
2127 pAC->GIni.GIChipRev == CHIP_REV_YU_LITE_A3) { in SkGmEnterLowPowerMode()
2130 LastMode = pAC->GIni.GP[Port].PPhyPowerState; in SkGmEnterLowPowerMode()
2131 pAC->GIni.GP[Port].PPhyPowerState = Mode; in SkGmEnterLowPowerMode()
2141 SkGmPhyWrite(pAC, IoC, Port, 29, 0x001f); in SkGmEnterLowPowerMode()
2142 SkGmPhyWrite(pAC, IoC, Port, 30, 0xfff3); in SkGmEnterLowPowerMode()
2161 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_CTRL, &Word); in SkGmEnterLowPowerMode()
2164 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_PHY_CTRL, Word); in SkGmEnterLowPowerMode()
2170 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_CTRL, &Word); in SkGmEnterLowPowerMode()
2172 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_CTRL, Word); in SkGmEnterLowPowerMode()
2175 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_CTRL, &Word); in SkGmEnterLowPowerMode()
2177 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_CTRL, Word); in SkGmEnterLowPowerMode()
2186 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_CTRL, &Word); in SkGmEnterLowPowerMode()
2188 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_PHY_CTRL, Word); in SkGmEnterLowPowerMode()
2191 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_CTRL, &Word); in SkGmEnterLowPowerMode()
2202 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_PHY_CTRL, Word); in SkGmEnterLowPowerMode()
2211 SkGmInitPhyMarv(pAC, IoC, Port, SK_FALSE); in SkGmEnterLowPowerMode()
2216 pAC->GIni.GP[Port].PPhyPowerState = LastMode; in SkGmEnterLowPowerMode()
2244 SK_AC *pAC, /* adapter context */ in SkGmLeaveLowPowerMode() argument
2253 if (pAC->GIni.GIYukonLite && in SkGmLeaveLowPowerMode()
2254 pAC->GIni.GIChipRev == CHIP_REV_YU_LITE_A3) { in SkGmLeaveLowPowerMode()
2257 LastMode = pAC->GIni.GP[Port].PPhyPowerState; in SkGmLeaveLowPowerMode()
2258 pAC->GIni.GP[Port].PPhyPowerState = PHY_PM_OPERATIONAL_MODE; in SkGmLeaveLowPowerMode()
2292 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_CTRL, &Word); in SkGmLeaveLowPowerMode()
2295 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_PHY_CTRL, Word); in SkGmLeaveLowPowerMode()
2301 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_CTRL, &Word); in SkGmLeaveLowPowerMode()
2303 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_CTRL, Word); in SkGmLeaveLowPowerMode()
2306 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_CTRL, &Word); in SkGmLeaveLowPowerMode()
2308 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_CTRL, Word); in SkGmLeaveLowPowerMode()
2317 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_CTRL, &Word); in SkGmLeaveLowPowerMode()
2319 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_PHY_CTRL, Word); in SkGmLeaveLowPowerMode()
2322 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_CTRL, &Word); in SkGmLeaveLowPowerMode()
2324 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_PHY_CTRL, Word); in SkGmLeaveLowPowerMode()
2333 SkGmInitPhyMarv(pAC, IoC, Port, SK_FALSE); in SkGmLeaveLowPowerMode()
2338 pAC->GIni.GP[Port].PPhyPowerState = LastMode; in SkGmLeaveLowPowerMode()
2366 SK_AC *pAC, /* adapter context */ in SkGmInitPhyMarv() argument
2384 pPrt = &pAC->GIni.GP[Port]; in SkGmInitPhyMarv()
2394 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2404 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_PHY_CTRL, in SkGmInitPhyMarv()
2409 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_EXT_CTRL, &ExtPhyCtrl); in SkGmInitPhyMarv()
2417 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_EXT_CTRL, ExtPhyCtrl); in SkGmInitPhyMarv()
2418 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2423 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_CTRL, &PhyCtrl); in SkGmInitPhyMarv()
2432 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_CTRL, PhyCtrl); in SkGmInitPhyMarv()
2474 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E019, in SkGmInitPhyMarv()
2485 if (pAC->GIni.GICopperType) { in SkGmInitPhyMarv()
2505 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E019, in SkGmInitPhyMarv()
2522 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E015, in SkGmInitPhyMarv()
2541 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E016, in SkGmInitPhyMarv()
2559 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E015, in SkGmInitPhyMarv()
2578 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E016, in SkGmInitPhyMarv()
2595 SkGmPhyWrite(pAC, IoC, Port, 30, 0x0700 /* 0x0708 */); in SkGmInitPhyMarv()
2602 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_1000T_CTRL, C1000BaseT); in SkGmInitPhyMarv()
2603 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2607 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_AUNE_ADV, AutoNegAdv); in SkGmInitPhyMarv()
2608 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2618 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_PHY_CTRL, PHY_M_PC_FL_GOOD); in SkGmInitPhyMarv()
2624 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_EXT_CTRL, in SkGmInitPhyMarv()
2632 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_PHY_CTRL, in SkGmInitPhyMarv()
2638 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_CTRL, PhyCtrl); in SkGmInitPhyMarv()
2639 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2648 if ((pAC->GIni.GILedBlinkCtrl & SK_ACT_LED_BLINK) != 0) { in SkGmInitPhyMarv()
2652 if ((pAC->GIni.GILedBlinkCtrl & SK_DUP_LED_NORMAL) != 0) { in SkGmInitPhyMarv()
2656 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_LED_CTRL, LedCtrl); in SkGmInitPhyMarv()
2658 if ((pAC->GIni.GILedBlinkCtrl & SK_LED_LINK100_ON) != 0) { in SkGmInitPhyMarv()
2662 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_LED_OVER, in SkGmInitPhyMarv()
2676 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_CTRL, &PhyCtrl); in SkGmInitPhyMarv()
2677 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2681 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_1000T_CTRL, &C1000BaseT); in SkGmInitPhyMarv()
2682 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2686 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_AUNE_ADV, &AutoNegAdv); in SkGmInitPhyMarv()
2687 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2691 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_EXT_CTRL, &ExtPhyCtrl); in SkGmInitPhyMarv()
2692 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2696 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_STAT, &PhyStat); in SkGmInitPhyMarv()
2697 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2699 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_STAT, &PhyStat1); in SkGmInitPhyMarv()
2700 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2704 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_STAT, &PhySpecStat); in SkGmInitPhyMarv()
2705 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmInitPhyMarv()
2738 SK_AC *pAC, /* adapter context */ in SkXmInitPhyLone() argument
2752 pPrt = &pAC->GIni.GP[Port]; in SkXmInitPhyLone()
2768 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyLone()
2786 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyLone()
2802 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E015, in SkXmInitPhyLone()
2821 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E016, in SkXmInitPhyLone()
2830 SkXmPhyWrite(pAC, IoC, Port, PHY_LONE_1000T_CTRL, Ctrl2); in SkXmInitPhyLone()
2831 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyLone()
2835 SkXmPhyWrite(pAC, IoC, Port, PHY_LONE_AUNE_ADV, Ctrl3); in SkXmInitPhyLone()
2836 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyLone()
2845 SkXmPhyWrite(pAC, IoC, Port, PHY_LONE_CTRL, Ctrl1); in SkXmInitPhyLone()
2846 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmInitPhyLone()
2863 SK_AC *pAC, /* adapter context */ in SkXmInitPhyNat() argument
2885 SK_AC *pAC, /* adapter context */ in SkMacInitPhy() argument
2892 pPrt = &pAC->GIni.GP[Port]; in SkMacInitPhy()
2895 if (pAC->GIni.GIGenesis) { in SkMacInitPhy()
2899 SkXmInitPhyXmac(pAC, IoC, Port, DoLoop); in SkMacInitPhy()
2902 SkXmInitPhyBcom(pAC, IoC, Port, DoLoop); in SkMacInitPhy()
2906 SkXmInitPhyLone(pAC, IoC, Port, DoLoop); in SkMacInitPhy()
2909 SkXmInitPhyNat(pAC, IoC, Port, DoLoop); in SkMacInitPhy()
2917 if (pAC->GIni.GIYukon) { in SkMacInitPhy()
2919 SkGmInitPhyMarv(pAC, IoC, Port, DoLoop); in SkMacInitPhy()
2940 SK_AC *pAC, /* adapter context */ in SkXmAutoNegDoneXmac() argument
2948 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmAutoNegDoneXmac()
2951 pPrt = &pAC->GIni.GP[Port]; in SkXmAutoNegDoneXmac()
2954 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_AUNE_LP, &LPAb); in SkXmAutoNegDoneXmac()
2955 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_RES_ABI, &ResAb); in SkXmAutoNegDoneXmac()
2960 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmAutoNegDoneXmac()
2975 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmAutoNegDoneXmac()
3023 SK_AC *pAC, /* adapter context */ in SkXmAutoNegDoneBcom() argument
3036 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmAutoNegDoneBcom()
3038 pPrt = &pAC->GIni.GP[Port]; in SkXmAutoNegDoneBcom()
3041 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_LP, &LPAb); in SkXmAutoNegDoneBcom()
3044 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_STAT, &ResAb); in SkXmAutoNegDoneBcom()
3047 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_STAT, &AuxStat); in SkXmAutoNegDoneBcom()
3051 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmAutoNegDoneBcom()
3066 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmAutoNegDoneBcom()
3076 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmAutoNegDoneBcom()
3126 SK_AC *pAC, /* adapter context */ in SkGmAutoNegDoneMarv() argument
3135 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmAutoNegDoneMarv()
3137 pPrt = &pAC->GIni.GP[Port]; in SkGmAutoNegDoneMarv()
3140 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_AUNE_LP, &LPAb); in SkGmAutoNegDoneMarv()
3141 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmAutoNegDoneMarv()
3145 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmAutoNegDoneMarv()
3151 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_1000T_STAT, &ResAb); in SkGmAutoNegDoneMarv()
3155 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmAutoNegDoneMarv()
3166 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_STAT, &AuxStat); in SkGmAutoNegDoneMarv()
3170 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmAutoNegDoneMarv()
3234 SK_AC *pAC, /* adapter context */ in SkXmAutoNegDoneLone() argument
3243 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmAutoNegDoneLone()
3245 pPrt = &pAC->GIni.GP[Port]; in SkXmAutoNegDoneLone()
3248 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_AUNE_LP, &LPAb); in SkXmAutoNegDoneLone()
3249 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_1000T_STAT, &ResAb); in SkXmAutoNegDoneLone()
3250 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_Q_STAT, &QuickStat); in SkXmAutoNegDoneLone()
3255 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmAutoNegDoneLone()
3272 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmAutoNegDoneLone()
3319 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_HWI_E016, in SkXmAutoNegDoneLone()
3340 SK_AC *pAC, /* adapter context */ in SkXmAutoNegDoneNat() argument
3362 SK_AC *pAC, /* adapter context */ in SkMacAutoNegDone() argument
3371 pPrt = &pAC->GIni.GP[Port]; in SkMacAutoNegDone()
3374 if (pAC->GIni.GIGenesis) { in SkMacAutoNegDone()
3379 Rtv = SkXmAutoNegDoneXmac(pAC, IoC, Port); in SkMacAutoNegDone()
3382 Rtv = SkXmAutoNegDoneBcom(pAC, IoC, Port); in SkMacAutoNegDone()
3386 Rtv = SkXmAutoNegDoneLone(pAC, IoC, Port); in SkMacAutoNegDone()
3389 Rtv = SkXmAutoNegDoneNat(pAC, IoC, Port); in SkMacAutoNegDone()
3399 if (pAC->GIni.GIYukon) { in SkMacAutoNegDone()
3401 Rtv = SkGmAutoNegDoneMarv(pAC, IoC, Port); in SkMacAutoNegDone()
3409 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkMacAutoNegDone()
3415 SkMacRxTxEnable(pAC, IoC, Port); in SkMacAutoNegDone()
3433 SK_AC *pAC, /* Adapter Context */ in SkXmSetRxTxEn() argument
3490 SK_AC *pAC, /* Adapter Context */ in SkGmSetRxTxEn() argument
3537 SK_AC *pAC, /* Adapter Context */ in SkMacSetRxTxEn() argument
3543 if (pAC->GIni.GIGenesis) { in SkMacSetRxTxEn()
3545 SkXmSetRxTxEn(pAC, IoC, Port, Para); in SkMacSetRxTxEn()
3550 if (pAC->GIni.GIYukon) { in SkMacSetRxTxEn()
3552 SkGmSetRxTxEn(pAC, IoC, Port, Para); in SkMacSetRxTxEn()
3571 SK_AC *pAC, /* adapter context */ in SkMacRxTxEnable() argument
3582 pPrt = &pAC->GIni.GP[Port]; in SkMacRxTxEnable()
3598 if (pAC->GIni.GIGenesis) { in SkMacRxTxEnable()
3600 SkXmInitDupMd(pAC, IoC, Port); in SkMacRxTxEnable()
3602 SkXmInitPauseMd(pAC, IoC, Port); in SkMacRxTxEnable()
3642 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_CTRL, &SWord); in SkMacRxTxEnable()
3643 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_AUX_CTRL, in SkMacRxTxEnable()
3645 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_INT_MASK, in SkMacRxTxEnable()
3650 SkXmPhyWrite(pAC, IoC, Port, PHY_LONE_INT_ENAB, PHY_L_DEF_MSK); in SkMacRxTxEnable()
3666 if (pAC->GIni.GIYukon) { in SkMacRxTxEnable()
3697 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_INT_MASK, in SkMacRxTxEnable()
3717 SK_AC *pAC, /* Adapter Context */ in SkMacRxTxDisable() argument
3724 if (pAC->GIni.GIGenesis) { in SkMacRxTxDisable()
3736 if (pAC->GIni.GIYukon) { in SkMacRxTxDisable()
3760 SK_AC *pAC, /* Adapter Context */ in SkMacIrqDisable() argument
3769 pPrt = &pAC->GIni.GP[Port]; in SkMacIrqDisable()
3772 if (pAC->GIni.GIGenesis) { in SkMacIrqDisable()
3785 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_CTRL, &Word); in SkMacIrqDisable()
3786 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_AUX_CTRL, in SkMacIrqDisable()
3788 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_INT_MASK, 0xffff); in SkMacIrqDisable()
3793 SkXmPhyWrite(pAC, IoC, Port, PHY_LONE_INT_ENAB, 0); in SkMacIrqDisable()
3805 if (pAC->GIni.GIYukon) { in SkMacIrqDisable()
3811 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_INT_MASK, 0); in SkMacIrqDisable()
3830 SK_AC *pAC, /* adapter context */ in SkXmSendCont() argument
3861 SK_AC *pAC, /* adapter context */ in SkMacTimeStamp() argument
3869 if (pAC->GIni.GIGenesis) { in SkMacTimeStamp()
3907 SK_AC *pAC, /* adapter context */ in SkXmAutoNegLipaXmac() argument
3914 pPrt = &pAC->GIni.GP[Port]; in SkXmAutoNegLipaXmac()
3919 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkXmAutoNegLipaXmac()
3937 SK_AC *pAC, /* adapter context */ in SkMacAutoNegLipaPhy() argument
3944 pPrt = &pAC->GIni.GP[Port]; in SkMacAutoNegLipaPhy()
3949 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkMacAutoNegLipaPhy()
3978 SK_AC *pAC, /* adapter context */ in SkXmIrq() argument
3990 pPrt = &pAC->GIni.GP[Port]; in SkXmIrq()
3996 SkXmAutoNegLipaXmac(pAC, IoC, Port, IStatus); in SkXmIrq()
4005 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkXmIrq()
4010 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkXmIrq()
4019 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkXmIrq()
4039 SkHWLinkDown(pAC, IoC, Port); in SkXmIrq()
4043 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para); in SkXmIrq()
4046 SkTimerStart(pAC, IoC, &pPrt->PWaTimer, SK_WA_INA_TIME, in SkXmIrq()
4059 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkXmIrq()
4070 SkXmOverflowStatus(pAC, IoC, Port, IStatus, &OverflowStatus); in SkXmIrq()
4074 SkPnmiEvent(pAC, IoC, SK_PNMI_EVT_SIRQ_OVERFLOW, Para); in SkXmIrq()
4087 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E020, SKERR_SIRQ_E020MSG); in SkXmIrq()
4114 SK_AC *pAC, /* adapter context */ in SkGmIrq() argument
4126 pPrt = &pAC->GIni.GP[Port]; in SkGmIrq()
4132 SkMacAutoNegLipaPhy(pAC, IoC, Port, IStatus); in SkGmIrq()
4135 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkGmIrq()
4142 SkGmOverflowStatus(pAC, IoC, Port, IStatus, &OverflowStatus); in SkGmIrq()
4146 SkPnmiEvent(pAC, IoC, SK_PNMI_EVT_SIRQ_OVERFLOW, Para); in SkGmIrq()
4162 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E020, SKERR_SIRQ_E020MSG); in SkGmIrq()
4186 SK_AC *pAC, /* adapter context */ in SkMacIrq() argument
4191 if (pAC->GIni.GIGenesis) { in SkMacIrq()
4193 SkXmIrq(pAC, IoC, Port); in SkMacIrq()
4198 if (pAC->GIni.GIYukon) { in SkMacIrq()
4200 SkGmIrq(pAC, IoC, Port); in SkMacIrq()
4223 SK_AC *pAC, /* adapter context */ in SkXmUpdateStats() argument
4231 pPrt = &pAC->GIni.GP[Port]; in SkXmUpdateStats()
4249 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_HWI_E021, SKERR_HWI_E021MSG); in SkXmUpdateStats()
4273 SK_AC *pAC, /* adapter context */ in SkXmMacStatistic() argument
4281 SK_ERR_LOG(pAC, SK_ERRCL_SW, SKERR_HWI_E022, SKERR_HWI_E022MSG); in SkXmMacStatistic()
4304 SK_AC *pAC, /* adapter context */ in SkXmResetCounter() argument
4336 SK_AC *pAC, /* adapter context */ in SkXmOverflowStatus() argument
4379 SK_AC *pAC, /* adapter context */ in SkGmUpdateStats() argument
4401 SK_AC *pAC, /* adapter context */ in SkGmMacStatistic() argument
4410 SK_ERR_LOG(pAC, SK_ERRCL_SW, SKERR_HWI_E022, SKERR_HWI_E022MSG); in SkGmMacStatistic()
4412 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmMacStatistic()
4435 SK_AC *pAC, /* adapter context */ in SkGmResetCounter() argument
4481 SK_AC *pAC, /* adapter context */ in SkGmOverflowStatus() argument
4534 SK_AC *pAC, /* adapter context */ in SkGmCableDiagStatus() argument
4543 pPrt = &pAC->GIni.GP[Port]; in SkGmCableDiagStatus()
4554 SkGmPhyWrite(pAC, IoC, Port, 29, 0x001e); in SkGmCableDiagStatus()
4556 SkGmPhyWrite(pAC, IoC, Port, 30, 0xcc00); in SkGmCableDiagStatus()
4557 SkGmPhyWrite(pAC, IoC, Port, 30, 0xc800); in SkGmCableDiagStatus()
4558 SkGmPhyWrite(pAC, IoC, Port, 30, 0xc400); in SkGmCableDiagStatus()
4559 SkGmPhyWrite(pAC, IoC, Port, 30, 0xc000); in SkGmCableDiagStatus()
4560 SkGmPhyWrite(pAC, IoC, Port, 30, 0xc100); in SkGmCableDiagStatus()
4564 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_EXT_ADR, 0); in SkGmCableDiagStatus()
4567 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_CABLE_DIAG, &RegVal); in SkGmCableDiagStatus()
4570 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_CABLE_DIAG, in SkGmCableDiagStatus()
4577 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_CABLE_DIAG, &RegVal); in SkGmCableDiagStatus()
4579 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGmCableDiagStatus()
4590 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_EXT_ADR, (SK_U16)i); in SkGmCableDiagStatus()
4593 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_CABLE_DIAG, &RegVal); in SkGmCableDiagStatus()