当前位置: 首页>>代码示例>>C++>>正文


C++ rtl8367b_getAsicRegBits函数代码示例

本文整理汇总了C++中rtl8367b_getAsicRegBits函数的典型用法代码示例。如果您正苦于以下问题:C++ rtl8367b_getAsicRegBits函数的具体用法?C++ rtl8367b_getAsicRegBits怎么用?C++ rtl8367b_getAsicRegBits使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了rtl8367b_getAsicRegBits函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: rtl8367b_getAsicPortExtMode

/* Function Name:
 *      rtl8367b_getAsicPortExtMode
 * Description:
 *      Get external interface mode configuration
 * Input:
 *      id 		- external interface id (0~1)
 *      pMode 	- external interface mode
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 			- Success
 *      RT_ERR_SMI  		- SMI access error
 *      RT_ERR_OUT_OF_RANGE - input parameter out of range
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicPortExtMode(rtk_uint32 id, rtk_uint32 *pMode)
{
    if(id >= RTL8367B_EXTNO)
        return RT_ERR_OUT_OF_RANGE;

	if(0 == id || 1 == id)
  		return rtl8367b_getAsicRegBits(RTL8367B_REG_DIGITAL_INTERFACE_SELECT, RTL8367B_SELECT_GMII_0_MASK << (id * RTL8367B_SELECT_GMII_1_OFFSET), pMode);
	else
   		return rtl8367b_getAsicRegBits(RTL8367B_REG_DIGITAL_INTERFACE_SELECT_1, RTL8367B_SELECT_RGMII_2_MASK, pMode);
}
开发者ID:jait,项目名称:witi-uboot,代码行数:26,代码来源:rtl8367b_asicdrv_port.c

示例2: rtl8367b_getAsicFlowControlPortPrivateDropThreshold

/* Function Name:
 *      rtl8367b_getAsicFlowControlPortPrivateDropThreshold
 * Description:
 *      Get Port-private-based drop parameters
 * Input:
 *      pOnThreshold 	- Drop turn ON threshold
 *      pOffThreshold 	- Drop turn OFF threshold
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 	- Success
 *      RT_ERR_SMI  - SMI access error
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicFlowControlPortPrivateDropThreshold(rtk_uint32 *pOnThreshold, rtk_uint32 *pOffThreshold)
{   
    ret_t retVal;
   
    retVal = rtl8367b_getAsicRegBits(RTL8367B_REG_FLOWCTRL_FCOFF_PORT_PRIVATE_OFF, RTL8367B_FLOWCTRL_FCOFF_PORT_PRIVATE_OFF_MASK, pOffThreshold);
    if(retVal != RT_ERR_OK)
        return retVal;

    retVal = rtl8367b_getAsicRegBits(RTL8367B_REG_FLOWCTRL_FCOFF_PORT_PRIVATE_ON, RTL8367B_FLOWCTRL_FCOFF_PORT_PRIVATE_ON_MASK, pOnThreshold);

    return retVal;
}
开发者ID:schidler,项目名称:flyzjhz-rt-n56u,代码行数:27,代码来源:rtl8367b_asicdrv_fc.c

示例3: rtl8367b_getAsicFlowControlPortJumboThreshold

/* Function Name:
 *      rtl8367b_getAsicFlowControlPortJumboThreshold
 * Description:
 *      Get Jumbo Port-based flow control parameters
 * Input:
 *      pOnThreshold 	- Flow control turn ON threshold
 *      pOffThreshold 	- Flow control turn OFF threshold
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 	- Success
 *      RT_ERR_SMI  - SMI access error
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicFlowControlPortJumboThreshold(rtk_uint32 *pOnThreshold, rtk_uint32 *pOffThreshold)
{   
    ret_t retVal;
   
    retVal = rtl8367b_getAsicRegBits(RTL8367B_REG_FLOWCTRL_JUMBO_PORT_OFF, RTL8367B_FLOWCTRL_JUMBO_PORT_OFF_MASK, pOffThreshold);

    if(retVal != RT_ERR_OK)
        return retVal;

    retVal = rtl8367b_getAsicRegBits(RTL8367B_REG_FLOWCTRL_JUMBO_PORT_ON, RTL8367B_FLOWCTRL_JUMBO_PORT_ON_MASK, pOnThreshold);

    return retVal;
}
开发者ID:schidler,项目名称:flyzjhz-rt-n56u,代码行数:28,代码来源:rtl8367b_asicdrv_fc.c

示例4: rtl8367b_getAsicIGMPdynamicRouterPort2

/* Function Name:
 *      rtl8367b_getAsicIGMPdynamicRouterPort2
 * Description:
 *      Get 2nd dynamic router port and timer
 * Input:
 *      port 	- Physical port number (0~7)
 *      timer 	- router port timer
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 	- Success
 *      RT_ERR_SMI  - SMI access error
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicIGMPdynamicRouterPort2(rtk_uint32 *port, rtk_uint32 *timer)
{
    ret_t   retVal;

    retVal = rtl8367b_getAsicRegBits(RTL8367B_REG_IGMP_DYNAMIC_ROUTER_PORT, RTL8367B_D_ROUTER_PORT_2_MASK, port);
    if(retVal != RT_ERR_OK)
        return retVal;

    retVal = rtl8367b_getAsicRegBits(RTL8367B_REG_IGMP_DYNAMIC_ROUTER_PORT, RTL8367B_D_ROUTER_PORT_TMR_2_MASK, timer);
    if(retVal != RT_ERR_OK)
        return retVal;

    return RT_ERR_OK;
}
开发者ID:Jongil-Park,项目名称:my_test,代码行数:29,代码来源:rtl8367b_asicdrv_igmp.c

示例5: rtl8367b_getAsicIGMPSuppression

/* Function Name:
 *      rtl8367b_getAsicIGMPSuppression
 * Description:
 *      Get the suppression function
 * Input:
 *      report_supp_enabled 	- Report suppression, 1:Enable, 0:disable
 *      leave_supp_enabled 		- Leave suppression, 1:Enable, 0:disable
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 	- Success
 *      RT_ERR_SMI  - SMI access error
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicIGMPSuppression(rtk_uint32 *report_supp_enabled, rtk_uint32 *leave_supp_enabled)
{
    ret_t   retVal;

    retVal = rtl8367b_getAsicRegBits(RTL8367B_REG_IGMP_MLD_CFG0, RTL8367B_REPORT_SUPPRESSION_MASK, report_supp_enabled);
    if(retVal != RT_ERR_OK)
        return retVal;

    retVal = rtl8367b_getAsicRegBits(RTL8367B_REG_IGMP_MLD_CFG0, RTL8367B_LEAVE_SUPPRESSION_MASK, leave_supp_enabled);
    if(retVal != RT_ERR_OK)
        return retVal;

    return RT_ERR_OK;
}
开发者ID:Jongil-Park,项目名称:my_test,代码行数:29,代码来源:rtl8367b_asicdrv_igmp.c

示例6: rtl8367b_getAsicRldpLoopedPortPair

/* Function Name:
 *      rtl8367b_getAsicRldpLoopedPortmask
 * Description:
 *      Get port number of looped pair
 * Input:
 *      port 		- Physical port number (0~7)
 *      pLoopedPair 	- port (0~7)
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 		- Success
 *      RT_ERR_SMI  	- SMI access error
 *      RT_ERR_PORT_ID  - Invalid port number
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicRldpLoopedPortPair(rtk_uint32 port, rtk_uint32 *pLoopedPair)
{
    if(port > RTL8367B_PORTIDMAX)
        return RT_ERR_PORT_ID;

    return rtl8367b_getAsicRegBits(RTL8367B_RLDP_LOOP_PORT_REG(port), RTL8367B_RLDP_LOOP_PORT_MASK(port), pLoopedPair);
}
开发者ID:Jongil-Park,项目名称:my_test,代码行数:23,代码来源:rtl8367b_asicdrv_rldp.c

示例7: rtl8367b_getAsicUnknownL2MulticastBehavior

/* Function Name:
 *      rtl8367b_getAsicUnknownL2MulticastBehavior
 * Description:
 *      Get behavior of L2 multicast
 * Input:
 *      port 	- Physical port number (0~7)
 *      pBehave 	- 0: flooding, 1: drop, 2: trap
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 		- Success
 *      RT_ERR_SMI  	- SMI access error
 *      RT_ERR_PORT_ID  - Invalid port number
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicUnknownL2MulticastBehavior(rtk_uint32 port, rtk_uint32 *pBehave)
{
	if(port >  RTL8367B_PORTIDMAX)
		return RT_ERR_PORT_ID;

    return rtl8367b_getAsicRegBits(RTL8367B_UNKNOWN_L2_MULTICAST_REG(port), RTL8367B_UNKNOWN_L2_MULTICAST_MASK(port), pBehave);
}
开发者ID:Jongil-Park,项目名称:my_test,代码行数:23,代码来源:rtl8367b_asicdrv_unknownMulticast.c

示例8: rtl8367b_getAsicEgressFlowControlPortDropThreshold

/* Function Name:
 *      rtl8367b_setAsicEgressFlowControlPortDropThreshold
 * Description:
 *      Set port-based egress flow control turn on or ingress flow control drop on threshold
 * Input:
 *      port 		- Physical port number (0~7)
 *      pThreshold 	- Queue-based flown control/drop turn ON threshold
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 			- Success
 *      RT_ERR_SMI  		- SMI access error
 *      RT_ERR_PORT_ID 		- Invalid port number
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicEgressFlowControlPortDropThreshold(rtk_uint32 port, rtk_uint32 *pThreshold)
{
    if(port > RTL8367B_PORTIDMAX)
    	return RT_ERR_PORT_ID; 

    return rtl8367b_getAsicRegBits(RTL8367B_FLOWCTRL_PORT_DROP_ON_REG(port), RTL8367B_FLOWCTRL_PORT_DROP_ON_MASK, pThreshold);
}
开发者ID:schidler,项目名称:flyzjhz-rt-n56u,代码行数:23,代码来源:rtl8367b_asicdrv_fc.c

示例9: rtl8367b_getAsicEgressFlowControlQueueDropThreshold

/* Function Name:
 *      rtl8367b_getAsicEgressFlowControlQueueDropThreshold
 * Description:
 *      Get Queue-based egress flow control turn on or ingress flow control drop on threshold
 * Input:
 *      qid 		- The queue id
 *      pThreshold 	- Queue-based flown control/drop turn ON threshold
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 			- Success
 *      RT_ERR_SMI  		- SMI access error
 *      RT_ERR_QUEUE_ID 	- Invalid queue id
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicEgressFlowControlQueueDropThreshold(rtk_uint32 qid, rtk_uint32 *pThreshold)
{
    if(qid > RTL8367B_QIDMAX)
      return RT_ERR_QUEUE_ID;

    return rtl8367b_getAsicRegBits(RTL8367B_FLOWCTRL_QUEUE_DROP_ON_REG(qid), RTL8367B_FLOWCTRL_QUEUE_DROP_ON_MASK, pThreshold);
}
开发者ID:schidler,项目名称:flyzjhz-rt-n56u,代码行数:23,代码来源:rtl8367b_asicdrv_fc.c

示例10: rtl8367b_getAsicCputagPriorityRemapping

/* Function Name:
 *      rtl8367b_getAsicCputagPriorityRemapping
 * Description:
 *      Get queue assignment of CPU port
 * Input:
 *      srcPri - internal priority (0~7)
 *      pNewPri - internal priority after remapping (0~7)
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 					- Success
 *      RT_ERR_SMI  				- SMI access error
 *      RT_ERR_QOS_INT_PRIORITY  	- Invalid priority
 * Note:
 *     None
 */
ret_t rtl8367b_getAsicCputagPriorityRemapping(rtk_uint32 srcPri, rtk_uint32 *pNewPri)
{
    if(srcPri > RTL8367B_PRIMAX)
        return RT_ERR_QOS_INT_PRIORITY;

    return rtl8367b_getAsicRegBits(RTL8367B_QOS_PRIPORITY_REMAPPING_IN_CPU_REG(srcPri), RTL8367B_QOS_PRIPORITY_REMAPPING_IN_CPU_MASK(srcPri), pNewPri);
}
开发者ID:Jongil-Park,项目名称:my_test,代码行数:23,代码来源:rtl8367b_asicdrv_cputag.c

示例11: rtl8367b_getAsicVlanProtocolBasedGroupData

/* Function Name:
 *      rtl8367b_getAsicVlanProtocolBasedGroupData
 * Description:
 *      Get protocol and port based group database
 * Input:
 *      index 		- Index to VLAN member configuration
 *      pPbCfg 	- Protocol and port based group database entry
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 					- Success
 *      RT_ERR_SMI  				- SMI access error
 *      RT_ERR_INPUT  				- Invalid input parameter
 *      RT_ERR_VLAN_PROTO_AND_PORT  - Invalid protocol base group database index
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicVlanProtocolBasedGroupData(rtk_uint32 index, rtl8367b_protocolgdatacfg *pPbCfg)
{
	rtk_uint32  frameType;
    rtk_uint32  etherType;
	ret_t	retVal;

	/* Error Checking */
	if(index > RTL8367B_PROTOVLAN_GIDX_MAX)
		return RT_ERR_VLAN_PROTO_AND_PORT;

	/* Read Frame type */
    retVal = rtl8367b_getAsicRegBits(RTL8367BG_VLAN_PPB_FRAMETYPE_REG(index), RTL8367BG_VLAN_PPB_FRAMETYPE_MASK, &frameType);
    if(retVal != RT_ERR_OK)
        return retVal;

	/* Read Ether type */
	retVal = rtl8367b_getAsicReg(RTL8367B_VLAN_PPB_ETHERTYPR_REG(index), &etherType);
    if(retVal != RT_ERR_OK)
        return retVal;


	pPbCfg->frameType = frameType;
	pPbCfg->etherType = etherType;
    return RT_ERR_OK;
}
开发者ID:schidler,项目名称:flyzjhz-rt-n56u,代码行数:42,代码来源:rtl8367b_asicdrv_vlan.c

示例12: rtl8367b_getAsicDebugInfo

/* Function Name:
 *      rtl8367b_getAsicDebugInfo
 * Description:
 *      Get per-port packet forward debugging information
 * Input:
 *      port 		- Physical port number (0~7)
 *      pDebugifo 	- per-port packet trap/drop/forward reason
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 		- Success
 *      RT_ERR_SMI  	- SMI access error
 *      RT_ERR_PORT_ID  - Invalid port number
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicDebugInfo(rtk_uint32 port, rtk_uint32 *pDebugifo)
{
    if(port > RTL8367B_PORTIDMAX)
        return RT_ERR_PORT_ID;

    return rtl8367b_getAsicRegBits(RTL8367B_DEBUG_INFO_REG(port), RTL8367B_DEBUG_INFO_MASK(port), pDebugifo);
}
开发者ID:schidler,项目名称:flyzjhz-rt-n56u,代码行数:23,代码来源:rtl8367b_asicdrv_misc.c

示例13: rtl8367b_getAsicPortPageMax

/* Function Name:
 *      rtl8367b_getAsicPortPage
 * Description:
 *      Get per-port page max usage number
 * Input:
 *      port 		-  Physical port number (0~7)
 *      pPageCount 	-  page usage number
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 		- Success
 *      RT_ERR_SMI  	- SMI access error
 *      RT_ERR_PORT_ID  - Invalid port number
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicPortPageMax(rtk_uint32 port, rtk_uint32 *pPageCount)
{
    if(port > RTL8367B_PORTIDMAX)
        return RT_ERR_PORT_ID;

    return rtl8367b_getAsicRegBits(RTL8367B_FLOWCTRL_PORT_PAGE_MAX_REG(port), RTL8367B_FLOWCTRL_PORT_PAGE_MAX_MASK, pPageCount);
}
开发者ID:schidler,项目名称:flyzjhz-rt-n56u,代码行数:23,代码来源:rtl8367b_asicdrv_fc.c

示例14: rtl8367b_getAsicOamParser

/* Function Name:
 *      rtl8367b_getAsicOamParser
 * Description:
 *      Get OAM parser state
 * Input:
 *      port 	- Physical port number (0~7)
 *      pParser 	- Per-Port OAM parser state
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 		- Success
 *      RT_ERR_SMI  	- SMI access error
 *      RT_ERR_PORT_ID  - Invalid port number
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicOamParser(rtk_uint32 port, rtk_uint32* pParser)
{
    if(port >= RTL8367B_PORTNO)
        return RT_ERR_PORT_ID;

    return rtl8367b_getAsicRegBits(RTL8367B_REG_OAM_PARSER_CTRL0, RTL8367B_OAM_PARSER_MASK(port), pParser);
}
开发者ID:Jongil-Park,项目名称:my_test,代码行数:23,代码来源:rtl8367b_asicdrv_oam.c

示例15: rtl8367b_getAsicOamMultiplexer

/* Function Name:
 *      rtl8367b_getAsicOamMultiplexer
 * Description:
 *      Get OAM multiplexer state
 * Input:
 *      port 		- Physical port number (0~7)
 *      pMultiplexer - Per-Port OAM multiplexer state
 * Output:
 *      None
 * Return:
 *      RT_ERR_OK 		- Success
 *      RT_ERR_SMI  	- SMI access error
 *      RT_ERR_PORT_ID  - Invalid port number
 * Note:
 *      None
 */
ret_t rtl8367b_getAsicOamMultiplexer(rtk_uint32 port, rtk_uint32* pMultiplexer)
{
    if(port >= RTL8367B_PORTNO)
        return RT_ERR_PORT_ID;

    return rtl8367b_getAsicRegBits(RTL8367B_REG_OAM_MULTIPLEXER_CTRL0, RTL8367B_OAM_MULTIPLEXER_MASK(port), pMultiplexer);
}
开发者ID:Jongil-Park,项目名称:my_test,代码行数:23,代码来源:rtl8367b_asicdrv_oam.c


注:本文中的rtl8367b_getAsicRegBits函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。