Lines Matching refs:IoC

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()
170 SK_IOC IoC, /* I/O Context */ in SkGmPhyRead() argument
192 GM_OUT16(IoC, Port, GM_SMI_CTRL, *pVal); in SkGmPhyRead()
194 GM_IN16(IoC, Port, GM_SMI_CTRL, &Ctrl); in SkGmPhyRead()
209 GM_IN16(IoC, Port, GM_SMI_CTRL, &Ctrl); in SkGmPhyRead()
215 GM_IN16(IoC, Port, GM_SMI_DATA, pVal); in SkGmPhyRead()
237 SK_IOC IoC, /* I/O Context */ in SkGmPhyWrite() argument
257 GM_OUT16(IoC, Port, GM_SMI_DATA, Val); in SkGmPhyWrite()
262 GM_OUT16(IoC, Port, GM_SMI_CTRL, Val); in SkGmPhyWrite()
264 GM_IN16(IoC, Port, GM_SMI_CTRL, &Ctrl); in SkGmPhyWrite()
276 SK_IN32(IoC, B2_TI_VAL, &DWord); in SkGmPhyWrite()
281 GM_IN16(IoC, Port, GM_SMI_CTRL, &Ctrl); in SkGmPhyWrite()
308 SK_IOC IoC, /* I/O Context */ in SkGePhyRead() argument
313 void (*r_func)(SK_AC *pAC, SK_IOC IoC, int Port, int Reg, SK_U16 *pVal); in SkGePhyRead()
322 r_func(pAC, IoC, Port, PhyReg, pVal); in SkGePhyRead()
337 SK_IOC IoC, /* I/O Context */ in SkGePhyWrite() argument
342 void (*w_func)(SK_AC *pAC, SK_IOC IoC, int Port, int Reg, SK_U16 Val); in SkGePhyWrite()
351 w_func(pAC, IoC, Port, PhyReg, Val); in SkGePhyWrite()
369 SK_IOC IoC, /* IO context */ in SkMacPromiscMode() argument
383 XM_IN32(IoC, Port, XM_MODE, &MdReg); in SkMacPromiscMode()
392 XM_OUT32(IoC, Port, XM_MODE, MdReg); in SkMacPromiscMode()
399 GM_IN16(IoC, Port, GM_RX_CTRL, &RcReg); in SkMacPromiscMode()
409 GM_OUT16(IoC, Port, GM_RX_CTRL, RcReg); in SkMacPromiscMode()
429 SK_IOC IoC, /* IO context */ in SkMacHashing() argument
443 XM_IN32(IoC, Port, XM_MODE, &MdReg); in SkMacHashing()
452 XM_OUT32(IoC, Port, XM_MODE, MdReg); in SkMacHashing()
459 GM_IN16(IoC, Port, GM_RX_CTRL, &RcReg); in SkMacHashing()
469 GM_OUT16(IoC, Port, GM_RX_CTRL, RcReg); in SkMacHashing()
501 SK_IOC IoC, /* IO context */ in SkXmSetRxCmd() argument
509 XM_IN16(IoC, Port, XM_RX_CMD, &OldRxCmd); in SkXmSetRxCmd()
560 XM_OUT16(IoC, Port, XM_RX_CMD, RxCmd); in SkXmSetRxCmd()
586 SK_IOC IoC, /* IO context */ in SkGmSetRxCmd() argument
596 GM_IN16(IoC, Port, GM_RX_CTRL, &OldRxCmd); in SkGmSetRxCmd()
608 GM_OUT16(IoC, Port, GM_RX_CTRL, RxCmd); in SkGmSetRxCmd()
614 GM_IN16(IoC, Port, GM_SERIAL_MODE, &OldRxCmd); in SkGmSetRxCmd()
626 GM_OUT16(IoC, Port, GM_SERIAL_MODE, RxCmd); in SkGmSetRxCmd()
643 SK_IOC IoC, /* IO context */ in SkMacSetRxCmd() argument
649 SkXmSetRxCmd(pAC, IoC, Port, Mode); in SkMacSetRxCmd()
653 SkGmSetRxCmd(pAC, IoC, Port, Mode); in SkMacSetRxCmd()
670 SK_IOC IoC, /* IO context */ in SkMacCrcGener() argument
678 XM_IN16(IoC, Port, XM_TX_CMD, &Word); in SkMacCrcGener()
687 XM_OUT16(IoC, Port, XM_TX_CMD, Word); in SkMacCrcGener()
691 GM_IN16(IoC, Port, GM_TX_CTRL, &Word); in SkMacCrcGener()
700 GM_OUT16(IoC, Port, GM_TX_CTRL, Word); in SkMacCrcGener()
723 SK_IOC IoC, /* IO context */ in SkXmClrExactAddr() argument
739 XM_OUTADDR(IoC, Port, XM_EXM(i), &ZeroAddr[0]); in SkXmClrExactAddr()
757 SK_IOC IoC, /* IO context */ in SkMacFlushTxFifo() argument
765 XM_IN32(IoC, Port, XM_MODE, &MdReg); in SkMacFlushTxFifo()
767 XM_OUT32(IoC, Port, XM_MODE, MdReg | XM_MD_FTF); in SkMacFlushTxFifo()
793 SK_IOC IoC, /* IO context */ in SkMacFlushRxFifo() argument
801 XM_IN32(IoC, Port, XM_MODE, &MdReg); in SkMacFlushRxFifo()
803 XM_OUT32(IoC, Port, XM_MODE, MdReg | XM_MD_FRF); in SkMacFlushRxFifo()
855 SK_IOC IoC, /* IO context */ in SkXmSoftRst() argument
861 XM_OUT32(IoC, Port, XM_GP_PORT, XM_GP_RES_STAT); in SkXmSoftRst()
864 XM_OUT16(IoC, Port, XM_IMSK, 0xffff); in SkXmSoftRst()
866 XM_OUT32(IoC, Port, XM_MODE, 0); /* clear Mode Reg */ in SkXmSoftRst()
868 XM_OUT16(IoC, Port, XM_TX_CMD, 0); /* reset TX CMD Reg */ in SkXmSoftRst()
869 XM_OUT16(IoC, Port, XM_RX_CMD, 0); /* reset RX CMD Reg */ 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()
888 XM_OUTHASH(IoC, Port, XM_HSM, &ZeroAddr); in SkXmSoftRst()
891 SkXmClrExactAddr(pAC, IoC, Port, 0, 15); in SkXmSoftRst()
894 XM_OUTHASH(IoC, Port, XM_SRC_CHK, &ZeroAddr); in SkXmSoftRst()
918 SK_IOC IoC, /* IO context */ in SkXmHardRst() argument
928 SK_OUT16(IoC, MR_ADDR(Port, TX_MFF_CTRL1), MFF_CLR_MAC_RST); in SkXmHardRst()
940 SK_OUT16(IoC, MR_ADDR(Port, TX_MFF_CTRL1), MFF_SET_MAC_RST); in SkXmHardRst()
942 SK_IN16(IoC, MR_ADDR(Port, TX_MFF_CTRL1), &Word); in SkXmHardRst()
950 SK_IN32(IoC, B2_GP_IO, &Reg); in SkXmHardRst()
961 SK_OUT32(IoC, B2_GP_IO, Reg); in SkXmHardRst()
964 SK_IN32(IoC, B2_GP_IO, &Reg); in SkXmHardRst()
980 SK_IOC IoC, /* IO context */ in SkXmClearRst() argument
986 SK_OUT16(IoC, MR_ADDR(Port, TX_MFF_CTRL1), MFF_CLR_MAC_RST); in SkXmClearRst()
990 SK_IN32(IoC, B2_GP_IO, &DWord); in SkXmClearRst()
999 SK_OUT32(IoC, B2_GP_IO, DWord); in SkXmClearRst()
1002 XM_OUT16(IoC, Port, XM_HW_CFG, XM_HW_GMII_MD); in SkXmClearRst()
1022 SK_IOC IoC, /* IO context */ in SkGmSoftRst() argument
1031 SK_OUT8(IoC, GMAC_IRQ_MSK, 0); in SkGmSoftRst()
1034 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_INT_MASK, 0); in SkGmSoftRst()
1037 GM_OUTHASH(IoC, Port, GM_MC_ADDR_H1, EmptyHash); in SkGmSoftRst()
1040 GM_IN16(IoC, Port, GM_RX_CTRL, &RxCtrl); in SkGmSoftRst()
1042 GM_OUT16(IoC, Port, GM_RX_CTRL, in SkGmSoftRst()
1059 SK_IOC IoC, /* IO context */ in SkGmHardRst() argument
1068 SK_IN32(IoC, B2_GP_IO, &DWord); in SkGmHardRst()
1073 SK_OUT32(IoC, B2_GP_IO, DWord); in SkGmHardRst()
1077 SK_OUT32(IoC, MR_ADDR(Port, GPHY_CTRL), GPC_RST_SET); in SkGmHardRst()
1080 SK_OUT32(IoC, MR_ADDR(Port, GMAC_CTRL), GMC_RST_SET); in SkGmHardRst()
1096 SK_IOC IoC, /* IO context */ in SkGmClearRst() argument
1103 SK_OUT32(IoC, MR_ADDR(Port, GMAC_CTRL), GMC_RST_CLR); in SkGmClearRst()
1106 SK_OUT32(IoC, MR_ADDR(Port, GMAC_CTRL), GMC_RST_SET); in SkGmClearRst()
1113 SK_IN32(IoC, B2_GP_IO, &DWord); in SkGmClearRst()
1119 SK_OUT32(IoC, B2_GP_IO, DWord); in SkGmClearRst()
1129 SK_OUT32(IoC, MR_ADDR(Port, GPHY_CTRL), DWord | GPC_RST_SET); in SkGmClearRst()
1132 SK_OUT32(IoC, MR_ADDR(Port, GPHY_CTRL), DWord | GPC_RST_CLR); in SkGmClearRst()
1139 SK_OUT32(IoC, MR_ADDR(Port, GMAC_CTRL), GMC_PAUSE_ON | GMC_RST_CLR); in SkGmClearRst()
1144 SK_IN32(IoC, MR_ADDR(Port, GPHY_CTRL), &DWord); in SkGmClearRst()
1146 SK_IN32(IoC, B0_ISRC, &DWord); in SkGmClearRst()
1164 SK_IOC IoC, /* IO context */ in SkMacSoftRst() argument
1172 SkMacRxTxDisable(pAC, IoC, Port); in SkMacSoftRst()
1177 SkXmSoftRst(pAC, IoC, Port); in SkMacSoftRst()
1184 SkGmSoftRst(pAC, IoC, Port); in SkMacSoftRst()
1189 SkMacFlushTxFifo(pAC, IoC, Port); in SkMacSoftRst()
1191 SkMacFlushRxFifo(pAC, IoC, Port); in SkMacSoftRst()
1209 SK_IOC IoC, /* IO context */ in SkMacHardRst() argument
1216 SkXmHardRst(pAC, IoC, Port); in SkMacHardRst()
1223 SkGmHardRst(pAC, IoC, Port); in SkMacHardRst()
1243 SK_IOC IoC, /* IO context */ in SkMacClearRst() argument
1250 SkXmClearRst(pAC, IoC, Port); in SkMacClearRst()
1257 SkGmClearRst(pAC, IoC, Port); in SkMacClearRst()
1281 SK_IOC IoC, /* IO context */ in SkXmInitMac() argument
1293 SK_IN16(IoC, MR_ADDR(Port, TX_MFF_CTRL1), &SWord); in SkXmInitMac()
1305 SkXmClearRst(pAC, IoC, Port); in SkXmInitMac()
1309 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_ID1, &pPrt->PhyId1); in SkXmInitMac()
1315 XM_IN16(IoC, Port, XM_MMU_CMD, &SWord); in SkXmInitMac()
1317 XM_OUT16(IoC, Port, XM_MMU_CMD, SWord | XM_MMU_NO_PRE); 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()
1357 XM_IN16(IoC, Port, XM_ISRC, &SWord); in SkXmInitMac()
1364 SkMacInitPhy(pAC, IoC, Port, SK_FALSE); in SkXmInitMac()
1369 XM_OUT16(IoC, Port, XM_HW_CFG, XM_HW_COM4SIG); in SkXmInitMac()
1383 SK_IN16(IoC, (B2_MAC_2 + Port * 8 + i * 2), &SWord); in SkXmInitMac()
1385 XM_OUT16(IoC, Port, (XM_SA + i * 2), SWord); in SkXmInitMac()
1396 XM_OUT16(IoC, Port, XM_RX_HI_WM, SK_XM_RX_HI_WM); in SkXmInitMac()
1417 XM_OUT16(IoC, Port, XM_TX_THR, SWord); in SkXmInitMac()
1420 XM_OUT16(IoC, Port, XM_TX_CMD, XM_TX_AUTO_PAD); in SkXmInitMac()
1438 XM_OUT16(IoC, Port, XM_RX_CMD, SWord); in SkXmInitMac()
1447 XM_OUT32(IoC, Port, XM_MODE, XM_DEF_MODE); in SkXmInitMac()
1454 XM_OUT32(IoC, Port, XM_RX_EV_MSK, XMR_DEF_MSK); in SkXmInitMac()
1461 XM_OUT32(IoC, Port, XM_TX_EV_MSK, XMT_DEF_MSK); in SkXmInitMac()
1495 SK_IOC IoC, /* IO context */ in SkGmInitMac() argument
1508 SK_IN32(IoC, MR_ADDR(Port, GMAC_CTRL), &DWord); in SkGmInitMac()
1520 SkGmHardRst(pAC, IoC, Port); in SkGmInitMac()
1522 SkGmClearRst(pAC, IoC, Port); in SkGmInitMac()
1529 GM_IN16(IoC, Port, GM_GP_CTRL, &SWord); in SkGmInitMac()
1535 GM_OUT16(IoC, Port, GM_GP_CTRL, SWord); in SkGmInitMac()
1566 SK_OUT32(IoC, MR_ADDR(Port, GMAC_CTRL), GMC_PAUSE_OFF); in SkGmInitMac()
1581 GM_OUT16(IoC, Port, GM_GP_CTRL, SWord); in SkGmInitMac()
1584 SK_IN16(IoC, GMAC_IRQ_SRC, &SWord); 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()
1597 GM_OUT16(IoC, Port, GM_TX_CTRL, TX_COL_THR(pPrt->PMacColThres)); in SkGmInitMac()
1600 GM_OUT16(IoC, Port, GM_RX_CTRL, GM_RXCR_UCF_ENA | GM_RXCR_MCF_ENA | in SkGmInitMac()
1604 GM_OUT16(IoC, Port, GM_TX_FLOW_CTRL, 0xffff); in SkGmInitMac()
1608 GM_IN16(IoC, Port, GM_TX_PARAM, &SWord); in SkGmInitMac()
1615 GM_OUT16(IoC, Port, GM_TX_PARAM, SWord); in SkGmInitMac()
1619 GM_IN16(IoC, Port, GM_SERIAL_MODE, &SWord); in SkGmInitMac()
1634 GM_OUT16(IoC, Port, GM_SERIAL_MODE, SWord); in SkGmInitMac()
1650 SK_IN16(IoC, (B2_MAC_2 + Port * 8 + i * 2), &SWord); in SkGmInitMac()
1659 GM_OUT16(IoC, Port, (GM_SRC_ADDR_1L + (2 - i) * 4), SWord); in SkGmInitMac()
1662 GM_OUT16(IoC, Port, (GM_SRC_ADDR_1L + i * 4), SWord); in SkGmInitMac()
1665 GM_OUT16(IoC, Port, (GM_SRC_ADDR_1L + i * 4), SWord); in SkGmInitMac()
1669 SK_IN16(IoC, (B2_MAC_1 + Port * 8 + i * 2), &SWord); in SkGmInitMac()
1671 GM_OUT16(IoC, Port, (GM_SRC_ADDR_2L + i * 4), SWord); in SkGmInitMac()
1674 GM_OUT16(IoC, Port, GM_MC_ADDR_H1 + 4*i, 0); in SkGmInitMac()
1678 GM_OUT16(IoC, Port, GM_MC_ADDR_H4, 0); in SkGmInitMac()
1681 GM_OUT16(IoC, Port, GM_TX_IRQ_MSK, 0); in SkGmInitMac()
1682 GM_OUT16(IoC, Port, GM_RX_IRQ_MSK, 0); in SkGmInitMac()
1683 GM_OUT16(IoC, Port, GM_TR_IRQ_MSK, 0); in SkGmInitMac()
1687 GM_IN16(IoC, Port, GM_GP_STAT, &SWord); in SkGmInitMac()
1716 SK_IOC IoC, /* IO context */ in SkXmInitDupMd() argument
1764 SK_IOC IoC, /* IO context */ in SkXmInitPauseMd() argument
1773 XM_IN16(IoC, Port, XM_MMU_CMD, &Word); in SkXmInitPauseMd()
1790 XM_OUT16(IoC, Port, XM_MMU_CMD, Word); in SkXmInitPauseMd()
1792 XM_IN32(IoC, Port, XM_MODE, &DWord); in SkXmInitPauseMd()
1810 XM_OUT16(IoC, Port, XM_MAC_PTIME, 0xffff); in SkXmInitPauseMd()
1816 SK_OUT16(IoC, MR_ADDR(Port, RX_MFF_CTRL1), MFF_ENA_PAUSE); in SkXmInitPauseMd()
1827 SK_OUT16(IoC, MR_ADDR(Port, RX_MFF_CTRL1), MFF_DIS_PAUSE); in SkXmInitPauseMd()
1830 XM_OUT32(IoC, Port, XM_MODE, DWord); in SkXmInitPauseMd()
1847 SK_IOC IoC, /* IO context */ in SkXmInitPhyXmac() argument
1912 SkXmPhyWrite(pAC, IoC, Port, PHY_XMAC_AUNE_ADV, Ctrl); in SkXmInitPhyXmac()
1924 SkXmPhyWrite(pAC, IoC, Port, PHY_XMAC_CTRL, Ctrl); in SkXmInitPhyXmac()
1941 SK_IOC IoC, /* IO context */ in SkXmInitPhyBcom() argument
2043 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_1000T_CTRL, Ctrl2); in SkXmInitPhyBcom()
2048 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_AUNE_ADV, Ctrl3); 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()
2117 SK_IOC IoC, /* IO context */ in SkGmEnterLowPowerMode() argument
2137 GM_OUT16(IoC, 0, GM_GP_CTRL, GM_GPCR_FL_PASS | in SkGmEnterLowPowerMode()
2141 SkGmPhyWrite(pAC, IoC, Port, 29, 0x001f); in SkGmEnterLowPowerMode()
2142 SkGmPhyWrite(pAC, IoC, Port, 30, 0xfff3); in SkGmEnterLowPowerMode()
2144 SK_IN32(IoC, PCI_C(PCI_OUR_REG_1), &DWord); in SkGmEnterLowPowerMode()
2146 SK_OUT8(IoC, B2_TST_CTRL1, TST_CFG_WRITE_ON); in SkGmEnterLowPowerMode()
2149 SK_OUT32(IoC, PCI_C(PCI_OUR_REG_1), DWord | PCI_PHY_COMA); in SkGmEnterLowPowerMode()
2151 SK_OUT8(IoC, B2_TST_CTRL1, TST_CFG_WRITE_OFF); 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()
2245 SK_IOC IoC, /* IO context */ in SkGmLeaveLowPowerMode() argument
2263 SK_IN32(IoC, PCI_C(PCI_OUR_REG_1), &DWord); in SkGmLeaveLowPowerMode()
2265 SK_OUT8(IoC, B2_TST_CTRL1, TST_CFG_WRITE_ON); in SkGmLeaveLowPowerMode()
2268 SK_OUT32(IoC, PCI_C(PCI_OUR_REG_1), DWord & ~PCI_PHY_COMA); in SkGmLeaveLowPowerMode()
2270 SK_OUT8(IoC, B2_TST_CTRL1, TST_CFG_WRITE_OFF); in SkGmLeaveLowPowerMode()
2272 SK_IN32(IoC, B2_GP_IO, &DWord); in SkGmLeaveLowPowerMode()
2278 SK_OUT32(IoC, B2_GP_IO, DWord); in SkGmLeaveLowPowerMode()
2283 SK_OUT32(IoC, B2_GP_IO, DWord); 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()
2367 SK_IOC IoC, /* IO context */ in SkGmInitPhyMarv() argument
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()
2423 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_CTRL, &PhyCtrl); in SkGmInitPhyMarv()
2432 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_CTRL, PhyCtrl); in SkGmInitPhyMarv()
2595 SkGmPhyWrite(pAC, IoC, Port, 30, 0x0700 /* 0x0708 */); in SkGmInitPhyMarv()
2602 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_1000T_CTRL, C1000BaseT); in SkGmInitPhyMarv()
2607 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_AUNE_ADV, AutoNegAdv); 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()
2656 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_LED_CTRL, LedCtrl); in SkGmInitPhyMarv()
2662 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_LED_OVER, in SkGmInitPhyMarv()
2676 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_CTRL, &PhyCtrl); in SkGmInitPhyMarv()
2681 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_1000T_CTRL, &C1000BaseT); in SkGmInitPhyMarv()
2686 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_AUNE_ADV, &AutoNegAdv); in SkGmInitPhyMarv()
2691 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_EXT_CTRL, &ExtPhyCtrl); in SkGmInitPhyMarv()
2696 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_STAT, &PhyStat); in SkGmInitPhyMarv()
2699 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_STAT, &PhyStat1); in SkGmInitPhyMarv()
2704 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_STAT, &PhySpecStat); in SkGmInitPhyMarv()
2739 SK_IOC IoC, /* IO context */ in SkXmInitPhyLone() argument
2830 SkXmPhyWrite(pAC, IoC, Port, PHY_LONE_1000T_CTRL, Ctrl2); in SkXmInitPhyLone()
2835 SkXmPhyWrite(pAC, IoC, Port, PHY_LONE_AUNE_ADV, Ctrl3); in SkXmInitPhyLone()
2845 SkXmPhyWrite(pAC, IoC, Port, PHY_LONE_CTRL, Ctrl1); in SkXmInitPhyLone()
2864 SK_IOC IoC, /* IO context */ in SkXmInitPhyNat() argument
2886 SK_IOC IoC, /* IO context */ in SkMacInitPhy() argument
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()
2919 SkGmInitPhyMarv(pAC, IoC, Port, DoLoop); in SkMacInitPhy()
2941 SK_IOC IoC, /* IO context */ in SkXmAutoNegDoneXmac() argument
2954 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_AUNE_LP, &LPAb); in SkXmAutoNegDoneXmac()
2955 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_RES_ABI, &ResAb); in SkXmAutoNegDoneXmac()
3024 SK_IOC IoC, /* IO context */ in SkXmAutoNegDoneBcom() argument
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()
3127 SK_IOC IoC, /* IO context */ in SkGmAutoNegDoneMarv() argument
3140 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_AUNE_LP, &LPAb); in SkGmAutoNegDoneMarv()
3151 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_1000T_STAT, &ResAb); in SkGmAutoNegDoneMarv()
3166 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_STAT, &AuxStat); in SkGmAutoNegDoneMarv()
3235 SK_IOC IoC, /* IO context */ in SkXmAutoNegDoneLone() argument
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()
3341 SK_IOC IoC, /* IO context */ in SkXmAutoNegDoneNat() argument
3363 SK_IOC IoC, /* IO context */ in SkMacAutoNegDone() argument
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()
3401 Rtv = SkGmAutoNegDoneMarv(pAC, IoC, Port); in SkMacAutoNegDone()
3415 SkMacRxTxEnable(pAC, IoC, Port); in SkMacAutoNegDone()
3434 SK_IOC IoC, /* IO context */ in SkXmSetRxTxEn() argument
3440 XM_IN16(IoC, Port, XM_MMU_CMD, &Word); in SkXmSetRxTxEn()
3469 XM_OUT16(IoC, Port, XM_MMU_CMD, Word | XM_MMU_ENA_RX | XM_MMU_ENA_TX); in SkXmSetRxTxEn()
3472 XM_IN16(IoC, Port, XM_MMU_CMD, &Word); in SkXmSetRxTxEn()
3491 SK_IOC IoC, /* IO context */ in SkGmSetRxTxEn() argument
3497 GM_IN16(IoC, Port, GM_GP_CTRL, &Ctrl); in SkGmSetRxTxEn()
3517 GM_OUT16(IoC, Port, GM_GP_CTRL, (SK_U16)(Ctrl | GM_GPCR_RX_ENA | in SkGmSetRxTxEn()
3521 GM_IN16(IoC, Port, GM_GP_CTRL, &Ctrl); in SkGmSetRxTxEn()
3538 SK_IOC IoC, /* IO context */ in SkMacSetRxTxEn() argument
3545 SkXmSetRxTxEn(pAC, IoC, Port, Para); in SkMacSetRxTxEn()
3552 SkGmSetRxTxEn(pAC, IoC, Port, Para); in SkMacSetRxTxEn()
3572 SK_IOC IoC, /* IO context */ in SkMacRxTxEnable() argument
3600 SkXmInitDupMd(pAC, IoC, Port); in SkMacRxTxEnable()
3602 SkXmInitPauseMd(pAC, IoC, Port); in SkMacRxTxEnable()
3624 XM_OUT16(IoC, Port, XM_IMSK, IntMask); in SkMacRxTxEnable()
3627 XM_IN16(IoC, Port, XM_MMU_CMD, &Reg); 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()
3661 XM_OUT16(IoC, Port, XM_MMU_CMD, Reg | XM_MMU_ENA_RX | XM_MMU_ENA_TX); in SkMacRxTxEnable()
3680 SK_OUT8(IoC, GMAC_IRQ_MSK, (SK_U8)IntMask); in SkMacRxTxEnable()
3683 GM_IN16(IoC, Port, GM_GP_CTRL, &Reg); in SkMacRxTxEnable()
3692 GM_OUT16(IoC, Port, GM_GP_CTRL, (SK_U16)(Reg | GM_GPCR_RX_ENA | in SkMacRxTxEnable()
3697 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_INT_MASK, in SkMacRxTxEnable()
3718 SK_IOC IoC, /* IO context */ in SkMacRxTxDisable() argument
3726 XM_IN16(IoC, Port, XM_MMU_CMD, &Word); in SkMacRxTxDisable()
3728 XM_OUT16(IoC, Port, XM_MMU_CMD, Word & ~(XM_MMU_ENA_RX | XM_MMU_ENA_TX)); in SkMacRxTxDisable()
3731 XM_IN16(IoC, Port, XM_MMU_CMD, &Word); in SkMacRxTxDisable()
3738 GM_IN16(IoC, Port, GM_GP_CTRL, &Word); in SkMacRxTxDisable()
3740 GM_OUT16(IoC, Port, GM_GP_CTRL, (SK_U16)(Word & ~(GM_GPCR_RX_ENA | in SkMacRxTxDisable()
3744 GM_IN16(IoC, Port, GM_GP_CTRL, &Word); in SkMacRxTxDisable()
3761 SK_IOC IoC, /* IO context */ in SkMacIrqDisable() argument
3775 XM_OUT16(IoC, Port, XM_IMSK, 0xffff); 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()
3807 SK_OUT8(IoC, GMAC_IRQ_MSK, 0); in SkMacIrqDisable()
3811 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_INT_MASK, 0); in SkMacIrqDisable()
3831 SK_IOC IoC, /* IO context */ in SkXmSendCont() argument
3837 XM_IN32(IoC, Port, XM_MODE, &MdReg); in SkXmSendCont()
3846 XM_OUT32(IoC, Port, XM_MODE, MdReg); in SkXmSendCont()
3862 SK_IOC IoC, /* IO context */ in SkMacTimeStamp() argument
3871 XM_IN32(IoC, Port, XM_MODE, &MdReg); in SkMacTimeStamp()
3880 XM_OUT32(IoC, Port, XM_MODE, MdReg); in SkMacTimeStamp()
3890 SK_OUT8(IoC, GMAC_TI_ST_CTRL, TimeCtrl); in SkMacTimeStamp()
3908 SK_IOC IoC, /* IO context */ in SkXmAutoNegLipaXmac() argument
3938 SK_IOC IoC, /* IO context */ in SkMacAutoNegLipaPhy() argument
3979 SK_IOC IoC, /* IO context */ in SkXmIrq() argument
3992 XM_IN16(IoC, Port, XM_ISRC, &IStatus); in SkXmIrq()
3996 SkXmAutoNegLipaXmac(pAC, IoC, Port, IStatus); in SkXmIrq()
4017 XM_IN16(IoC, Port, XM_ISRC, &IStatus2); in SkXmIrq()
4039 SkHWLinkDown(pAC, IoC, Port); in SkXmIrq()
4046 SkTimerStart(pAC, IoC, &pPrt->PWaTimer, SK_WA_INA_TIME, in SkXmIrq()
4070 SkXmOverflowStatus(pAC, IoC, Port, IStatus, &OverflowStatus); in SkXmIrq()
4074 SkPnmiEvent(pAC, IoC, SK_PNMI_EVT_SIRQ_OVERFLOW, Para); in SkXmIrq()
4115 SK_IOC IoC, /* IO context */ in SkGmIrq() argument
4128 SK_IN8(IoC, GMAC_IRQ_SRC, &IStatus); in SkGmIrq()
4132 SkMacAutoNegLipaPhy(pAC, IoC, Port, IStatus); in SkGmIrq()
4142 SkGmOverflowStatus(pAC, IoC, Port, IStatus, &OverflowStatus); in SkGmIrq()
4146 SkPnmiEvent(pAC, IoC, SK_PNMI_EVT_SIRQ_OVERFLOW, Para); in SkGmIrq()
4152 SK_OUT8(IoC, MR_ADDR(Port, RX_GMF_CTRL_T), (SK_U8)GMF_CLI_RX_FO); in SkGmIrq()
4160 SK_OUT8(IoC, MR_ADDR(Port, TX_GMF_CTRL_T), (SK_U8)GMF_CLI_TX_FU); in SkGmIrq()
4187 SK_IOC IoC, /* IO context */ in SkMacIrq() argument
4193 SkXmIrq(pAC, IoC, Port); in SkMacIrq()
4200 SkGmIrq(pAC, IoC, Port); in SkMacIrq()
4224 SK_IOC IoC, /* IO context */ in SkXmUpdateStats() argument
4235 XM_OUT16(IoC, Port, XM_STAT_CMD, XM_SC_SNP_TXC | XM_SC_SNP_RXC); in SkXmUpdateStats()
4245 XM_IN16(IoC, Port, XM_STAT_CMD, &StatReg); in SkXmUpdateStats()
4274 SK_IOC IoC, /* IO context */ in SkXmMacStatistic() argument
4286 XM_IN32(IoC, Port, StatAddr, pVal); in SkXmMacStatistic()
4305 SK_IOC IoC, /* IO context */ in SkXmResetCounter() argument
4308 XM_OUT16(IoC, Port, XM_STAT_CMD, XM_SC_CLR_RXC | XM_SC_CLR_TXC); in SkXmResetCounter()
4310 XM_OUT16(IoC, Port, XM_STAT_CMD, XM_SC_CLR_RXC | XM_SC_CLR_TXC); in SkXmResetCounter()
4337 SK_IOC IoC, /* IO context */ in SkXmOverflowStatus() argument
4349 XM_IN32(IoC, Port, XM_RX_CNT_EV, &RegVal); in SkXmOverflowStatus()
4355 XM_IN32(IoC, Port, XM_TX_CNT_EV, &RegVal); in SkXmOverflowStatus()
4380 SK_IOC IoC, /* IO context */ in SkGmUpdateStats() argument
4402 SK_IOC IoC, /* IO context */ in SkGmMacStatistic() argument
4417 GM_IN32(IoC, Port, StatAddr, pVal); in SkGmMacStatistic()
4436 SK_IOC IoC, /* IO context */ in SkGmResetCounter() argument
4443 GM_IN16(IoC, Port, GM_PHY_ADDR, &Reg); in SkGmResetCounter()
4446 GM_OUT16(IoC, Port, GM_PHY_ADDR, Reg | GM_PAR_MIB_CLR); in SkGmResetCounter()
4451 GM_IN16(IoC, Port, GM_MIB_CNT_BASE + 8*i, &Word); in SkGmResetCounter()
4455 GM_OUT16(IoC, Port, GM_PHY_ADDR, Reg); in SkGmResetCounter()
4482 SK_IOC IoC, /* IO context */ in SkGmOverflowStatus() argument
4494 GM_IN16(IoC, Port, GM_RX_IRQ_SRC, &RegVal); in SkGmOverflowStatus()
4500 GM_IN16(IoC, Port, GM_TX_IRQ_SRC, &RegVal); in SkGmOverflowStatus()
4505 GM_IN16(IoC, Port, GM_TR_IRQ_SRC, &RegVal); in SkGmOverflowStatus()
4535 SK_IOC IoC, /* IO context */ in SkGmCableDiagStatus() argument
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()
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()