Lines Matching refs:pAC

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()
224 SkMacIrqDisable(pAC, IoC, Port); in SkHWLinkDown()
227 SkMacRxTxDisable(pAC, IoC, Port); in SkHWLinkDown()
230 SkHWInitDefSense(pAC, IoC, Port); in SkHWLinkDown()
236 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkHWLinkDown()
248 SkMacInitPhy(pAC, IoC, Port, SK_FALSE); in SkHWLinkDown()
267 SK_AC *pAC, /* adapter context */ in SkHWLinkUp() argument
273 pPrt = &pAC->GIni.GP[Port]; in SkHWLinkUp()
316 (void)SkMacRxTxEnable(pAC, IoC, Port); in SkHWLinkUp()
330 SK_AC *pAC, /* adapter context */ in SkMacParity() argument
338 pPrt = &pAC->GIni.GP[Port]; in SkMacParity()
342 if (pAC->GIni.GIGenesis) { in SkMacParity()
349 if (pAC->GIni.GIYukon) { in SkMacParity()
352 (SK_U8)((pAC->GIni.GIChipId == CHIP_ID_YUKON && in SkMacParity()
353 pAC->GIni.GIChipRev == 0) ? GMF_CLI_TX_FC : GMF_CLI_TX_PE)); in SkMacParity()
360 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E016, SKERR_SIRQ_E016MSG); in SkMacParity()
363 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E017, SKERR_SIRQ_E017MSG); in SkMacParity()
366 SkEventQueue(pAC, SKGE_DRV, SK_DRV_PORT_FAIL, Para); in SkMacParity()
369 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para); in SkMacParity()
376 if (pAC->GIni.GIGenesis) { in SkMacParity()
378 (void)SkXmUpdateStats(pAC, IoC, Port); in SkMacParity()
380 (void)SkXmMacStatistic(pAC, IoC, Port, XM_TXF_MAX_SZ, &TxMax); in SkMacParity()
385 if (pAC->GIni.GIYukon) { in SkMacParity()
387 (void)SkGmMacStatistic(pAC, IoC, Port, GM_TXF_1518B, &TxMax); in SkMacParity()
407 SK_AC *pAC, /* adapter context */ in SkGeHwErr() argument
417 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E013, SKERR_SIRQ_E013MSG); in SkGeHwErr()
420 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E012, SKERR_SIRQ_E012MSG); in SkGeHwErr()
431 SkEventQueue(pAC, SKGE_DRV, SK_DRV_ADAP_FAIL, Para); in SkGeHwErr()
435 if (pAC->GIni.GIGenesis) { in SkGeHwErr()
464 if (pAC->GIni.GIYukon) { in SkGeHwErr()
468 pAC->GIni.GITimeStampCnt++; in SkGeHwErr()
476 if (pAC->GIni.GIYukon32Bit) { in SkGeHwErr()
478 pAC->GIni.GIValIrqMask &= ~IS_HW_ERR; in SkGeHwErr()
486 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E014, SKERR_SIRQ_E014MSG); in SkGeHwErr()
488 SkEventQueue(pAC, SKGE_DRV, SK_DRV_ADAP_FAIL, Para); in SkGeHwErr()
493 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E015, SKERR_SIRQ_E015MSG); in SkGeHwErr()
495 SkEventQueue(pAC, SKGE_DRV, SK_DRV_ADAP_FAIL, Para); in SkGeHwErr()
499 SkMacParity(pAC, IoC, MAC_1); in SkGeHwErr()
503 SkMacParity(pAC, IoC, MAC_2); in SkGeHwErr()
510 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E018, SKERR_SIRQ_E018MSG); in SkGeHwErr()
512 SkEventQueue(pAC, SKGE_DRV, SK_DRV_PORT_FAIL, Para); in SkGeHwErr()
515 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para); in SkGeHwErr()
522 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E019, SKERR_SIRQ_E019MSG); in SkGeHwErr()
524 SkEventQueue(pAC, SKGE_DRV, SK_DRV_PORT_FAIL, Para); in SkGeHwErr()
527 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para); in SkGeHwErr()
541 SK_AC *pAC, /* adapter context */ in SkGeSirqIsr() argument
551 if (((Istatus & IS_HW_ERR) & pAC->GIni.GIValIrqMask) != 0) { in SkGeSirqIsr()
555 SkGeHwErr(pAC, IoC, RegVal32); in SkGeSirqIsr()
563 pAC->GIni.GP[MAC_1].PState == SK_PRT_RESET) { in SkGeSirqIsr()
565 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_SIRQ_E004, in SkGeSirqIsr()
570 pAC->GIni.GP[MAC_2].PState == SK_PRT_RESET) { in SkGeSirqIsr()
572 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_SIRQ_E005, in SkGeSirqIsr()
578 SK_ERR_LOG(pAC, SK_ERRCL_HW | SK_ERRCL_INIT, SKERR_SIRQ_E002, in SkGeSirqIsr()
585 SK_ERR_LOG(pAC, SK_ERRCL_HW | SK_ERRCL_INIT, SKERR_SIRQ_E003, in SkGeSirqIsr()
592 pPrt = &pAC->GIni.GP[0]; in SkGeSirqIsr()
598 if (pAC->GIni.GIGenesis) { in SkGeSirqIsr()
615 SkPnmiGetVar(pAC, IoC, OID_SKGE_STAT_TX_OCTETS, (char *)&Octets, in SkGeSirqIsr()
616 &Len, (SK_U32)SK_PNMI_PORT_PHYS2INST(pAC, 0), in SkGeSirqIsr()
617 pAC->Rlmt.Port[0].Net->NetNumber); in SkGeSirqIsr()
622 (void)SkXmUpdateStats(pAC, IoC, 0); in SkGeSirqIsr()
624 (void)SkXmMacStatistic(pAC, IoC, 0, XM_TXO_OK_HI, &RegVal32); in SkGeSirqIsr()
628 (void)SkXmMacStatistic(pAC, IoC, 0, XM_TXO_OK_LO, &RegVal32); in SkGeSirqIsr()
633 SkTimerStart(pAC, IoC, &pPrt->HalfDupChkTimer, SK_HALFDUP_CHK_TIME, in SkGeSirqIsr()
642 pPrt = &pAC->GIni.GP[1]; in SkGeSirqIsr()
648 if (pAC->GIni.GIGenesis) { in SkGeSirqIsr()
656 SkPnmiGetVar(pAC, IoC, OID_SKGE_STAT_TX_OCTETS, (char *)&Octets, in SkGeSirqIsr()
657 &Len, (SK_U32)SK_PNMI_PORT_PHYS2INST(pAC, 1), in SkGeSirqIsr()
658 pAC->Rlmt.Port[1].Net->NetNumber); in SkGeSirqIsr()
663 (void)SkXmUpdateStats(pAC, IoC, 1); in SkGeSirqIsr()
665 (void)SkXmMacStatistic(pAC, IoC, 1, XM_TXO_OK_HI, &RegVal32); in SkGeSirqIsr()
669 (void)SkXmMacStatistic(pAC, IoC, 1, XM_TXO_OK_LO, &RegVal32); in SkGeSirqIsr()
674 SkTimerStart(pAC, IoC, &pPrt->HalfDupChkTimer, SK_HALFDUP_CHK_TIME, in SkGeSirqIsr()
685 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_SIRQ_E006, in SkGeSirqIsr()
688 SkEventQueue(pAC, SKGE_DRV, SK_DRV_PORT_FAIL, Para); in SkGeSirqIsr()
690 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para); in SkGeSirqIsr()
696 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_SIRQ_E007, in SkGeSirqIsr()
699 SkEventQueue(pAC, SKGE_DRV, SK_DRV_PORT_FAIL, Para); in SkGeSirqIsr()
701 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para); in SkGeSirqIsr()
707 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_SIRQ_E008, in SkGeSirqIsr()
710 SkEventQueue(pAC, SKGE_DRV, SK_DRV_PORT_FAIL, Para); in SkGeSirqIsr()
712 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para); in SkGeSirqIsr()
718 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_SIRQ_E009, in SkGeSirqIsr()
721 SkEventQueue(pAC, SKGE_DRV, SK_DRV_PORT_FAIL, Para); in SkGeSirqIsr()
723 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para); in SkGeSirqIsr()
729 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_SIRQ_E010, in SkGeSirqIsr()
732 SkEventQueue(pAC, SKGE_DRV, SK_DRV_PORT_FAIL, Para); in SkGeSirqIsr()
734 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para); in SkGeSirqIsr()
740 SK_ERR_LOG(pAC, SK_ERRCL_SW | SK_ERRCL_INIT, SKERR_SIRQ_E011, in SkGeSirqIsr()
743 SkEventQueue(pAC, SKGE_DRV, SK_DRV_PORT_FAIL, Para); in SkGeSirqIsr()
745 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para); in SkGeSirqIsr()
751 for (i = 0; i < pAC->GIni.GIMacsFound; i++) { in SkGeSirqIsr()
753 pPrt = &pAC->GIni.GP[i]; in SkGeSirqIsr()
760 if (pAC->GIni.GIGenesis) { in SkGeSirqIsr()
768 SkXmPhyRead(pAC, IoC, i, PHY_BCOM_INT_STAT, &PhyInt); in SkGeSirqIsr()
771 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkGeSirqIsr()
774 SkPhyIsrBcom(pAC, IoC, i, PhyInt); in SkGeSirqIsr()
779 SkXmPhyRead(pAC, IoC, i, PHY_LONE_INT_STAT, &PhyInt); in SkGeSirqIsr()
782 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkGeSirqIsr()
785 SkPhyIsrLone(pAC, IoC, i, PhyInt); in SkGeSirqIsr()
794 if (pAC->GIni.GIYukon) { in SkGeSirqIsr()
796 SkGmPhyRead(pAC, IoC, i, PHY_MARV_INT_STAT, &PhyInt); in SkGeSirqIsr()
799 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkGeSirqIsr()
802 SkPhyIsrGmac(pAC, IoC, i, PhyInt); in SkGeSirqIsr()
814 SkI2cIsr(pAC, IoC); in SkGeSirqIsr()
836 SkMacIrq(pAC, IoC, MAC_1); in SkGeSirqIsr()
851 SkMacIrq(pAC, IoC, MAC_2); in SkGeSirqIsr()
857 if (((Istatus & IS_HW_ERR) & ~pAC->GIni.GIValIrqMask) != 0) { in SkGeSirqIsr()
861 SkGeHwErr(pAC, IoC, RegVal32); in SkGeSirqIsr()
864 SkHwtIsr(pAC, IoC); in SkGeSirqIsr()
880 SK_AC *pAC, /* Adapter Context */ in SkGePortCheckShorts() argument
893 pPrt = &pAC->GIni.GP[Port]; in SkGePortCheckShorts()
898 (void)SkXmUpdateStats(pAC, IoC, Port); in SkGePortCheckShorts()
901 (void)SkXmMacStatistic(pAC, IoC, Port, XM_RXE_SHT_ERR, &Shorts); in SkGePortCheckShorts()
911 (void)SkXmMacStatistic(pAC, IoC, Port, SkGeRxRegs[i], &RxTmp); in SkGePortCheckShorts()
928 (void)SkXmMacStatistic(pAC, IoC, Port, XM_RXF_FCS_ERR, &FcsErrCts); in SkGePortCheckShorts()
972 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkGePortCheckShorts()
995 SK_AC *pAC, /* Adapter Context */ in SkGePortCheckUp() argument
1005 pPrt = &pAC->GIni.GP[Port]; in SkGePortCheckUp()
1015 if (pAC->GIni.GIGenesis) { in SkGePortCheckUp()
1020 Rtv = SkGePortCheckUpXmac(pAC, IoC, Port, AutoNeg); in SkGePortCheckUp()
1023 Rtv = SkGePortCheckUpBcom(pAC, IoC, Port, AutoNeg); in SkGePortCheckUp()
1027 Rtv = SkGePortCheckUpLone(pAC, IoC, Port, AutoNeg); in SkGePortCheckUp()
1030 Rtv = SkGePortCheckUpNat(pAC, IoC, Port, AutoNeg); in SkGePortCheckUp()
1038 if (pAC->GIni.GIYukon) { in SkGePortCheckUp()
1040 Rtv = SkGePortCheckUpGmac(pAC, IoC, Port, AutoNeg); in SkGePortCheckUp()
1059 SK_AC *pAC, /* Adapter Context */ in SkGePortCheckUpXmac() argument
1075 pPrt = &pAC->GIni.GP[Port]; in SkGePortCheckUpXmac()
1082 return(SkGePortCheckShorts(pAC, IoC, Port)); in SkGePortCheckUpXmac()
1098 SkXmAutoNegLipaXmac(pAC, IoC, Port, IsrcSum); in SkGePortCheckUpXmac()
1103 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkGePortCheckUpXmac()
1106 (void)SkXmUpdateStats(pAC, IoC, Port); in SkGePortCheckUpXmac()
1109 (void)SkXmMacStatistic(pAC, IoC, Port, XM_RXE_SHT_ERR, &Shorts); in SkGePortCheckUpXmac()
1134 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGePortCheckUpXmac()
1140 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGePortCheckUpXmac()
1167 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkGePortCheckUpXmac()
1171 SkHWInitDefSense(pAC, IoC, Port); in SkGePortCheckUpXmac()
1178 SkXmAutoNegLipaXmac(pAC, IoC, Port, Isrc); in SkGePortCheckUpXmac()
1180 if (SkGePortCheckShorts(pAC, IoC, Port) == SK_HW_PS_RESTART) { in SkGePortCheckUpXmac()
1194 SkXmAutoNegLipaXmac(pAC, IoC, Port, IsrcSum); in SkGePortCheckUpXmac()
1203 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGePortCheckUpXmac()
1212 SkHWLinkUp(pAC, IoC, Port); in SkGePortCheckUpXmac()
1213 Done = SkMacAutoNegDone(pAC, IoC, Port); in SkGePortCheckUpXmac()
1216 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_AUNE_LP, &LpAb); in SkGePortCheckUpXmac()
1217 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_RES_ABI, &ResAb); in SkGePortCheckUpXmac()
1218 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGePortCheckUpXmac()
1223 NextMode = SkHWSenseGetNext(pAC, IoC, Port); in SkGePortCheckUpXmac()
1224 SkHWLinkDown(pAC, IoC, Port); in SkGePortCheckUpXmac()
1227 SkHWSenseSetNext(pAC, IoC, Port, NextMode); in SkGePortCheckUpXmac()
1236 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_AUNE_EXP, &ExtStat); in SkGePortCheckUpXmac()
1248 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkGePortCheckUpXmac()
1253 SkHWSenseSetNext(pAC, IoC, Port, SK_LMODE_FULL); in SkGePortCheckUpXmac()
1254 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkGePortCheckUpXmac()
1273 SkHWInitDefSense(pAC, IoC, Port); in SkGePortCheckUpXmac()
1284 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGePortCheckUpXmac()
1288 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkGePortCheckUpXmac()
1290 SkHWLinkUp(pAC, IoC, Port); in SkGePortCheckUpXmac()
1314 SK_AC *pAC, /* Adapter Context */ in SkGePortCheckUpBcom() argument
1330 pPrt = &pAC->GIni.GP[Port]; in SkGePortCheckUpBcom()
1333 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_INT_STAT, &Isrc); in SkGePortCheckUpBcom()
1342 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_INT_MASK, &Stat1); in SkGePortCheckUpBcom()
1344 pAC->pConfigTable, in SkGePortCheckUpBcom()
1351 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_CTRL, &Stat1); in SkGePortCheckUpBcom()
1353 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_STAT, &Stat2); in SkGePortCheckUpBcom()
1356 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_ADV, &Stat2); in SkGePortCheckUpBcom()
1358 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_LP, &Stat3); in SkGePortCheckUpBcom()
1361 pAC->pConfigTable, in SkGePortCheckUpBcom()
1368 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_EXP, &Stat1); in SkGePortCheckUpBcom()
1370 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_EXT_STAT, &Stat2); in SkGePortCheckUpBcom()
1373 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_CTRL, &Stat2); in SkGePortCheckUpBcom()
1375 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_STAT, &Stat3); in SkGePortCheckUpBcom()
1378 pAC->pConfigTable, in SkGePortCheckUpBcom()
1385 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_P_EXT_CTRL, &Stat1); in SkGePortCheckUpBcom()
1387 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_P_EXT_STAT, &Stat2); in SkGePortCheckUpBcom()
1390 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_CTRL, &Stat2); in SkGePortCheckUpBcom()
1392 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_STAT, &Stat3); in SkGePortCheckUpBcom()
1395 pAC->pConfigTable, in SkGePortCheckUpBcom()
1408 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_CTRL, &Ctrl); in SkGePortCheckUpBcom()
1409 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_CTRL, in SkGePortCheckUpBcom()
1411 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_CTRL, in SkGePortCheckUpBcom()
1413 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGePortCheckUpBcom()
1417 pAC->pConfigTable, in SkGePortCheckUpBcom()
1426 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_STAT, &PhyStat); in SkGePortCheckUpBcom()
1437 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_INT_MASK, &Stat1); in SkGePortCheckUpBcom()
1439 pAC->pConfigTable, in SkGePortCheckUpBcom()
1446 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_CTRL, &Stat1); in SkGePortCheckUpBcom()
1448 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_STAT, &PhyStat); in SkGePortCheckUpBcom()
1451 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_ADV, &Stat2); in SkGePortCheckUpBcom()
1453 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_LP, &Stat3); in SkGePortCheckUpBcom()
1456 pAC->pConfigTable, in SkGePortCheckUpBcom()
1463 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_EXP, &Stat1); in SkGePortCheckUpBcom()
1465 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_EXT_STAT, &Stat2); in SkGePortCheckUpBcom()
1468 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_CTRL, &Stat2); in SkGePortCheckUpBcom()
1470 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_STAT, &ResAb); in SkGePortCheckUpBcom()
1473 pAC->pConfigTable, in SkGePortCheckUpBcom()
1480 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_P_EXT_CTRL, &Stat1); in SkGePortCheckUpBcom()
1482 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_P_EXT_STAT, &Stat2); in SkGePortCheckUpBcom()
1485 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_CTRL, &Stat2); in SkGePortCheckUpBcom()
1487 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_STAT, &Stat3); in SkGePortCheckUpBcom()
1490 pAC->pConfigTable, in SkGePortCheckUpBcom()
1503 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_STAT, &PhyStat); in SkGePortCheckUpBcom()
1505 SkMacAutoNegLipaPhy(pAC, IoC, Port, PhyStat); in SkGePortCheckUpBcom()
1507 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGePortCheckUpBcom()
1510 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_STAT, &ResAb); in SkGePortCheckUpBcom()
1514 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGePortCheckUpBcom()
1530 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGePortCheckUpBcom()
1536 SkHWLinkUp(pAC, IoC, Port); in SkGePortCheckUpBcom()
1538 Done = SkMacAutoNegDone(pAC, IoC, Port); in SkGePortCheckUpBcom()
1543 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_LP, &LpAb); in SkGePortCheckUpBcom()
1544 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_STAT, &ExtStat); in SkGePortCheckUpBcom()
1545 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGePortCheckUpBcom()
1554 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_INT_STAT, &ExtStat); in SkGePortCheckUpBcom()
1558 pAC->pConfigTable, in SkGePortCheckUpBcom()
1573 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL, in SkGePortCheckUpBcom()
1580 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_INT_STAT, &ExtStat); in SkGePortCheckUpBcom()
1584 pAC->pConfigTable, in SkGePortCheckUpBcom()
1592 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ, in SkGePortCheckUpBcom()
1594 SkHWLinkUp(pAC, IoC, Port); in SkGePortCheckUpBcom()
1615 SK_AC *pAC, /* Adapter Context */
1631 pPrt = &pAC->GIni.GP[Port];
1638 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_STAT, &PhyStat);
1640 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
1644 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_INT_STAT, &PhyIsrc);
1647 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
1652 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
1656 SkMacAutoNegLipaPhy(pAC, IoC, Port, PhyStat);
1658 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_1000T_STAT, &ResAb);
1662 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
1672 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_STAT, &PhySpecStat);
1674 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
1678 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_AUNE_EXP, &Word);
1683 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_NEPG_LP, &Word);
1685 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
1697 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E025, SKERR_SIRQ_E025MSG);
1700 SkEventQueue(pAC, SKGE_DRV, SK_DRV_DOWNSHIFT_DET, Para);
1702 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
1715 SkHWLinkUp(pAC, IoC, Port);
1717 Done = SkMacAutoNegDone(pAC, IoC, Port);
1730 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
1735 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ,
1737 SkHWLinkUp(pAC, IoC, Port);
1758 SK_AC *pAC, /* Adapter Context */
1772 pPrt = &pAC->GIni.GP[Port];
1785 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_STAT, &PhyStat);
1788 SkMacAutoNegLipaPhy(pAC, IoC, Port, PhyStat);
1795 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
1804 SkHWLinkUp(pAC, IoC, Port);
1805 Done = SkMacAutoNegDone(pAC, IoC, Port);
1808 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_AUNE_LP, &LpAb);
1809 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_1000T_STAT, &ExtStat);
1810 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
1815 NextMode = SkHWSenseGetNext(pAC, IoC, Port);
1816 SkHWLinkDown(pAC, IoC, Port);
1819 SkHWSenseSetNext(pAC, IoC, Port, NextMode);
1830 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_INT_STAT, &ExtStat);
1839 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ,
1844 SkHWSenseSetNext(pAC, IoC, Port, SK_LMODE_FULL);
1845 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ,
1857 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
1866 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_INT_STAT, &ExtStat);
1868 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_IRQ,
1870 SkHWLinkUp(pAC, IoC, Port);
1889 SK_AC *pAC, /* Adapter Context */
1909 SK_AC *pAC, /* Adapter Context */
1924 pPrt = &pAC->GIni.GP[Port];
1934 PortStat = SkGePortCheckUp(pAC, IoC, (int)Port);
1941 SkHWLinkDown(pAC, IoC, (int)Port);
1947 SkRlmtEvent(pAC, IoC, SK_RLMT_LINK_DOWN, Para);
1951 SkEventQueue(pAC, SKGE_DRV, SK_DRV_PORT_RESET, Para);
1956 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_UP, Para);
1970 SkTimerStart(pAC, IoC, &pPrt->PWaTimer, Val32,
1980 SkRlmtEvent(pAC, IoC, SK_RLMT_LINK_DOWN, Para);
1983 SkHWLinkDown(pAC, IoC, (int)Port);
1986 SkEventQueue(pAC, SKGE_DRV, SK_DRV_PORT_RESET, Para);
1989 SkTimerStart(pAC, IoC, &pPrt->PWaTimer, SK_WA_INA_TIME,
1999 SkRlmtEvent(pAC, IoC, SK_RLMT_LINK_DOWN, Para);
2003 SkTimerStop(pAC, IoC, &pPrt->PWaTimer);
2005 SkHWLinkDown(pAC, IoC, (int)Port);
2014 for (Port = 0; Port < (SK_U32)pAC->GIni.GIMacsFound; Port++) {
2028 SkEventQueue(pAC, SKGE_HWAC, SK_HWEV_PORT_STOP, Para);
2029 SkEventQueue(pAC, SKGE_HWAC, SK_HWEV_PORT_START, Para);
2040 SkEventQueue(pAC, SKGE_HWAC, SK_HWEV_PORT_STOP, Para);
2041 SkEventQueue(pAC, SKGE_HWAC, SK_HWEV_PORT_START, Para);
2047 if (!pAC->GIni.GICopperType) {
2056 SkEventQueue(pAC, SKGE_HWAC, SK_HWEV_PORT_STOP, Para);
2057 SkEventQueue(pAC, SKGE_HWAC, SK_HWEV_PORT_START, Para);
2071 SkEventQueue(pAC, SKGE_HWAC, SK_HWEV_PORT_STOP, Para);
2072 SkEventQueue(pAC, SKGE_HWAC, SK_HWEV_PORT_START, Para);
2078 if (pAC->GIni.GIGenesis) {
2088 SkPnmiGetVar(pAC, IoC, OID_SKGE_STAT_TX_OCTETS, (char *)&Octets,
2089 &Len, (SK_U32)SK_PNMI_PORT_PHYS2INST(pAC, Port),
2090 pAC->Rlmt.Port[Port].Net->NetNumber);
2093 (void)SkXmUpdateStats(pAC, IoC, Port);
2095 (void)SkXmMacStatistic(pAC, IoC, Port, XM_TXO_OK_HI, &Val32);
2099 (void)SkXmMacStatistic(pAC, IoC, Port, XM_TXO_OK_LO, &Val32);
2105 SkMacFlushTxFifo(pAC, IoC, Port);
2113 SK_ERR_LOG(pAC, SK_ERRCL_SW, SKERR_SIRQ_E001, SKERR_SIRQ_E001MSG);
2131 SK_AC *pAC, /* Adapter Context */
2139 pPrt = &pAC->GIni.GP[Port];
2143 SK_ERR_LOG(pAC, SK_ERRCL_HW | SK_ERRCL_INIT, SKERR_SIRQ_E022,
2149 SkHWLinkDown(pAC, IoC, Port);
2153 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para);
2156 SkTimerStart(pAC, IoC, &pPrt->PWaTimer, SK_WA_INA_TIME,
2174 SK_AC *pAC, /* Adapter Context */
2183 pPrt = &pAC->GIni.GP[Port];
2187 SkHWLinkDown(pAC, IoC, Port);
2189 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_AUNE_ADV, &Word);
2191 SK_DBG_MSG(pAC, SK_DBGMOD_HWM, SK_DBGCAT_CTRL,
2197 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_AUNE_ADV,
2203 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para);
2208 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E023, SKERR_SIRQ_E023MSG);
2213 SK_ERR_LOG(pAC, SK_ERRCL_HW, SKERR_SIRQ_E024, SKERR_SIRQ_E024MSG);
2230 SK_AC *pAC, /* Adapter Context */
2239 SkHWLinkDown(pAC, IoC, Port);
2243 SkEventQueue(pAC, SKGE_RLMT, SK_RLMT_LINK_DOWN, Para);