关闭

HWAPI模块

标签: callbackinitializationtablefiltercmdstruct
760人阅读 评论(0) 收藏 举报
分类:
typedef struct {
    /*initialization*/
    HW_STATUS (*hwInit)(UINT8 chipUnit);

    /*vlan*/
    HW_STATUS (*hwVlanSet)(hw_vlan_t *);
    HW_STATUS (*hwVlanDel)(hw_slot_vid_t *);
    HW_STATUS (*hwVlanPortAdd)(hw_vlan_t *);
    HW_STATUS (*hwVlanPortDel)(hw_vlan_t *);
    HW_STATUS (*hwVlanCpuAdd)(hw_slot_vid_t *);
    HW_STATUS (*hwVlanCpuDel)(hw_slot_vid_t *);
    HW_STATUS (*hwVlanNullSet)(hw_slot_vid_t *);
    HW_STATUS (*hwVlanNullDel)(hw_slot_vid_t *);
    HW_STATUS (*hwSvlanEnableSet)(hw_svlan_enable_t *);
    HW_STATUS (*hwSvlanEnableGet)(hw_svlan_enable_t *);
    HW_STATUS (*hwVlanGlobalModeSet)(hw_vlan_global_mode_t *);
    HW_STATUS (*hwVlanGlobalModeGet)(hw_vlan_global_mode_t *);
    HW_STATUS (*hwVlanArpRelayEnableSet)(hw_vlan_arp_relay_t *);
    HW_STATUS (*hwVlanARPProxySet)(hw_arp_proxy_set_t *);
    HW_STATUS (*hwVlanUnknownMulticastSet)(hw_vlan_unknown_multicast_cmd_t*);
HW_STATUS (*hwVlanIpSubnetVoipSet)(hw_vlan_ip_subnet_voip_cmd_t *);
    HW_STATUS (*hwVlanIpSubnetVoipDel)(hw_vlan_ip_subnet_voip_cmd_t*);
    hw_resv_f hwResvFuncPtr08;
    hw_resv_f hwResvFuncPtr09;
    hw_resv_f hwResvFuncPtr10;
    hw_resv_f hwResvFuncPtr11;
    hw_resv_f hwResvFuncPtr12;
    hw_resv_f hwResvFuncPtr13;
    hw_resv_f hwResvFuncPtr14;
    hw_resv_f hwResvFuncPtr15;
    hw_resv_f hwResvFuncPtr16;
    hw_resv_f hwResvFuncPtr17;
    hw_resv_f hwResvFuncPtr18;
    hw_resv_f hwResvFuncPtr19;
    hw_resv_f hwResvFuncPtr20;
                
    /*mcast*/
    HW_STATUS (*hwMcastSet)(hw_mcast_t *);
    HW_STATUS (*hwMcastDel)(hw_slot_vmac_t *);
    HW_STATUS (*hwMcastPortAdd)(hw_mcast_t *);
    HW_STATUS (*hwMcastPortDel)(hw_mcast_t *);
    HW_STATUS (*hwMcastProcModeSet)(hw_mcast_proc_mode_t *);
    hw_resv_f hwResvFuncPtr22;
    hw_resv_f hwResvFuncPtr23;
    hw_resv_f hwResvFuncPtr24;
    hw_resv_f hwResvFuncPtr25;
    hw_resv_f hwResvFuncPtr26;
    hw_resv_f hwResvFuncPtr27;
    hw_resv_f hwResvFuncPtr28;
    hw_resv_f hwResvFuncPtr29;
    hw_resv_f hwResvFuncPtr30;
    hw_resv_f hwResvFuncPtr31;
    hw_resv_f hwResvFuncPtr32;
    hw_resv_f hwResvFuncPtr33;
    hw_resv_f hwResvFuncPtr34;
    hw_resv_f hwResvFuncPtr35;
    hw_resv_f hwResvFuncPtr36;
    hw_resv_f hwResvFuncPtr37;
    hw_resv_f hwResvFuncPtr38;
    hw_resv_f hwResvFuncPtr39;
    hw_resv_f hwResvFuncPtr40;
    
    /*trunk*/    
    HW_STATUS (*hwTrunkSet)(hw_trunk_t *);
    HW_STATUS (*hwTrunkDel)(hw_slot_tid_t *);
    hw_resv_f hwResvFuncPtr41;
    hw_resv_f hwResvFuncPtr42;
    hw_resv_f hwResvFuncPtr43;
    hw_resv_f hwResvFuncPtr44;
    hw_resv_f hwResvFuncPtr45;
    hw_resv_f hwResvFuncPtr46;
    hw_resv_f hwResvFuncPtr47;
    hw_resv_f hwResvFuncPtr48;
    hw_resv_f hwResvFuncPtr49;
    hw_resv_f hwResvFuncPtr50;
        
    /*l2*/
    HW_STATUS (*hwL2AddrSet)(hw_l2_addr_t *);
    HW_STATUS (*hwL2PortGet)(hw_vmac_t *,hw_l2_addr_t *);
    HW_STATUS (*hwL2AddrDel)(hw_vmac_t *);
    HW_STATUS (*hwL2AddrCpuSet)(hw_l2_addr_cpu_t *);
    HW_STATUS (*hwL2AddrCpuDel)(hw_vmac_t *);
    HW_STATUS (*hwL2GetByPort)(hw_l2_table_req_t *,hw_l2_table_t *);
    HW_STATUS (*hwL2DelByPort)(hw_slot_port_t *);
    HW_STATUS (*hwL2DelByTrunk)(hw_slot_tid_t *);
    HW_STATUS (*hwL2NumGet)(hw_slot_num_t *);
    HW_STATUS (*hwL2AgeTimeSet)(hw_slot_time_t *);
    HW_STATUS (*hwL2AgeTimeGet)(hw_slot_time_t *);
    HW_STATUS (*hwL2LimitSetByPort)(hw_l2_limit_t *);
    HW_STATUS (*hwL2LimitDelByPort)(hw_slot_port_t *);
HW_STATUS (*hwL2ModemManageAddrSet)(hw_l2_addr_cpu_t *);
HW_STATUS (*hwL2ModemManageAddrDel)(hw_vmac_t *);
    HW_STATUS (*hwL2MacDel)(hw_l2_mac_del_t*);
    HW_STATUS (*hwL2MacGet)(hw_l2_table_req_t *,hw_l2_table_t *);
    hw_resv_f hwResvFuncPtr55;
    HW_STATUS (*hwL2MTTSet)(hw_l2_mtt_t *);
    HW_STATUS (*hwL2MTTDel)(hw_l2_mtt_t *);
    HW_STATUS (*hwL2MTTSrcMacSet)(hw_l2_srcmac_t *);
    HW_STATUS (*hwL2VbasSet)(hw_l2_addr_cpu_t *);
    HW_STATUS (*hwL2VbasDel)(hw_vmac_t *);


    hw_resv_f hwResvFuncPtr61;
    hw_resv_f hwResvFuncPtr62;
    hw_resv_f hwResvFuncPtr63;
    hw_resv_f hwResvFuncPtr64;
    hw_resv_f hwResvFuncPtr65;
    hw_resv_f hwResvFuncPtr66;
    hw_resv_f hwResvFuncPtr67;
    hw_resv_f hwResvFuncPtr68;
    hw_resv_f hwResvFuncPtr69;
    hw_resv_f hwResvFuncPtr70;
    hw_resv_f hwResvFuncPtr71;
    hw_resv_f hwResvFuncPtr72;
    hw_resv_f hwResvFuncPtr73;
    hw_resv_f hwResvFuncPtr74;
    hw_resv_f hwResvFuncPtr75;
    hw_resv_f hwResvFuncPtr76;
    hw_resv_f hwResvFuncPtr77;
    hw_resv_f hwResvFuncPtr78;
    hw_resv_f hwResvFuncPtr79;
    hw_resv_f hwResvFuncPtr80;
    
    /*port*/    
    HW_STATUS (*hwPortSpeedSet)(hw_port_speed_t *);
    HW_STATUS (*hwPortSpeedGet)(hw_slot_port_t  *,hw_port_speed_t *);
    HW_STATUS (*hwPortDuplexSet)(hw_port_duplex_t *);
    HW_STATUS (*hwPortDuplexGet)(hw_slot_port_t* ,hw_port_duplex_t *);
    HW_STATUS (*hwPortAdvSet)(hw_port_autoneg_cap_t *);
    HW_STATUS (*hwPortAdvGet)(hw_slot_port_t* ,hw_port_autoneg_cap_t *);
    HW_STATUS (*hwPortAutoNegSet)(hw_port_autoneg_mode_t *);
    HW_STATUS (*hwPortAutoNegGet)(hw_slot_port_t* ,hw_port_autoneg_mode_t *);
    HW_STATUS (*hwPortLinkStatusGet)(hw_port_link_status_req_t*,hw_port_link_status_t *);
    HW_STATUS (*hwPortEnableSet)(hw_port_enable_t *);
    HW_STATUS (*hwPortEnableGet)(hw_slot_port_t* ,hw_port_enable_t *);
    HW_STATUS (*hwPortStpStatusSet)(hw_stp_status_t *);
    HW_STATUS (*hwPortStpStatusGet)(hw_slot_port_t*,hw_stp_status_t *);
    HW_STATUS (*hwTrunkStpStatusSet)(hw_trunk_stp_status_t *);
    HW_STATUS (*hwPortAuthSet)(hw_port_auth_status_t *);
    HW_STATUS (*hwPortAuthGet)(hw_slot_port_t* ,hw_port_auth_status_t *);
    HW_STATUS (*hwPortAcceptFrameSet)(hw_port_pkt_type_t *);
    HW_STATUS (*hwPortAcceptFrameGet)(hw_slot_port_t* ,hw_port_pkt_type_t *);
    HW_STATUS (*hwPortFlowEnableSet)(hw_port_flow_control_t *);
    HW_STATUS (*hwPortFlowEnableGet)(hw_slot_port_t* ,hw_port_flow_control_t *);
    HW_STATUS (*hwPortInFilterSet)(hw_port_ingress_filter_t *);
    HW_STATUS (*hwPortInFilterGet)(hw_slot_port_t*,hw_port_ingress_filter_t *);
    HW_STATUS (*hwPortDefaultPrioSet)(hw_port_priority_t *);
    HW_STATUS (*hwPortDefaultPrioGet)(hw_slot_port_t*,hw_port_priority_t *);
    HW_STATUS (*hwPortPvidSet)(hw_port_vid_t *);
    HW_STATUS (*hwPortPvidGet)(hw_slot_port_t* pSlotPort,hw_port_vid_t *);
    HW_STATUS (*hwCtpidSet)(hw_tpid_t *);
    HW_STATUS (*hwStpidSet)(hw_tpid_t *);
    HW_STATUS (*hwPortDtModeSet)(hw_port_dt_mode_t *);
    HW_STATUS (*hwPortPsvidSet)(hw_port_vid_t *);
    HW_STATUS (*hwPortPsvidGet)(hw_slot_port_t*,hw_port_vid_t *);
    HW_STATUS (*hwPortEgressShapeSet)(hw_rate_limit_t *);
    HW_STATUS (*hwPortRateMulticastSet)(hw_pps_limit_t *);
    HW_STATUS (*hwPortRateMulticastDel)(hw_slot_port_t *);
    HW_STATUS (*hwPortRateBroadcastSet)(hw_pps_limit_t *);
    HW_STATUS (*hwPortRateBroadcastDel)(hw_slot_port_t *);
    HW_STATUS (*hwPortRateUnknownSet)(hw_pps_limit_t *);
    HW_STATUS (*hwPortRateUnknownDel)(hw_slot_port_t *);
    HW_STATUS (*hwPortMacBindSet)(hw_port_mac_t *);
    HW_STATUS (*hwPortMacBindDel)(hw_port_mac_t *);
    HW_STATUS (*hwPortIpBindSet)(hw_port_ip_t *);
    HW_STATUS (*hwPortIpBindDel)(hw_port_ip_t *);
    HW_STATUS (*hwPortMacFilterSet)(hw_port_mac_t *);
    HW_STATUS (*hwPortMacFilterDel)(hw_port_mac_t *);
    HW_STATUS (*hwPortTrapPacketSet)(hw_trap_pkt_type_t *);
    HW_STATUS (*hwPortTrapPacketDel)(hw_trap_pkt_type_t *);
    HW_STATUS (*hwPortSvlanEnableSet)(hw_port_enable_t *);
    HW_STATUS (*hwPortSvlanEnableGet)(hw_slot_port_t* ,hw_port_enable_t *);
    HW_STATUS (*hwPortMulticastEnableSet)(hw_port_enable_t *);
    HW_STATUS (*hwPortBroadcastEnableSet)(hw_port_enable_t *);
    HW_STATUS (*hwPortUnknownEnableSet)(hw_port_enable_t *);            
    HW_STATUS (*hwSubportCrossConnectSet)(hw_subport_cross_connect_t *);
    HW_STATUS (*hwSubportCrossConnectDel)(hw_subport_cross_connect_t *);
HW_STATUS (*hwPortDHCPSourceGuardSet)(hw_port_dhcp_enable_t *);
HW_STATUS (*hwPortVlanTranslateSet)(hw_port_vlan_translate_t *);
HW_STATUS (*hwPortVlanTranslateDel)(hw_port_vlan_translate_t *);
HW_STATUS (*hwPortVlanTranslateEnable)(hw_port_enable_t *);
HW_STATUS (*hwPortTLSMemberCheckEnable)(hw_port_enable_t *);
HW_STATUS (*hwPortVlanListAdd)(hw_port_vlan_t *);
HW_STATUS (*hwPortVlanListRemove)(hw_port_vlan_t*);
HW_STATUS (*hwPortQueueEgressRateSet)(hw_queue_rate_limit_t *);
HW_STATUS (*hwPortTLSEnableSet)(hw_port_enable_t*);
HW_STATUS (*hwSubportIpBindSet)(hw_port_ip_t *);
HW_STATUS (*hwSubportIpBindDel)(hw_port_ip_t *);
    HW_STATUS (*hwPortPPPoEPlusEnable)(hw_port_enable_t *);
    HW_STATUS (*hwPortDHCPOption82Enable)(hw_port_dhcp_enable_t *);
    HW_STATUS (*hwPortNTo1VlanTranslateSet)(hw_NTo1Vlan_t *);
    HW_STATUS (*hwPortNTo1VlanTranslateDel)(hw_NTo1Vlan_t *);
    HW_STATUS (*hwBPDUTransparentEnableSet)(hw_port_enable_t *);
    HW_STATUS (*hwPortIngressShapingSet)(hw_rate_limit_t *);
    HW_STATUS (*hwPortAtmModeEnableSet)(hw_port_enable_t *);
    HW_STATUS (*hwPortProtocolVlanSet)(hw_Protocol_Vlan_t *);
    HW_STATUS (*hwPortProtocolVlanDel)(hw_Protocol_Vlan_t *);
    HW_STATUS (*hwPortTrapReservedMacSet)(hw_port_enable_t *);
    HW_STATUS (*hwPortOamFlowStatisticSet)(hw_port_enable_t *);
    HW_STATUS (*hwPortOamFlowStatisticGet)(hw_slot_port_t* , hw_packet_count_t *);
    HW_STATUS (*hwPortOamLoopbackSet)(hw_port_enable_t *);
    HW_STATUS (*hwPortDot1AGSet)(hw_port_enable_t *);
    HW_STATUS (*hwPort802Dot1xSet)(hw_port_enable_t *);
    HW_STATUS (*hwPortMtuSet)(hw_port_mtu_t* );
    HW_STATUS (*hwStpModeSet)(hw_stp_status_t* );
    HW_STATUS (*hwMstpGroupSet)(hw_stp_status_t* );
    HW_STATUS (*hwMstpPortStatusSet)(hw_stp_status_t* );
    HW_STATUS (*hwPortLoopbackTestSet)(hw_port_enable_t* );
    HW_STATUS (*hwPortNDSnoopingSet)(hw_port_nd_enable_t *);
    HW_STATUS (*hwPortNDSourceGuardSet)(hw_port_nd_enable_t *);
    HW_STATUS (*hwRatePropertyGet)(hw_rate_type_t*, hw_rate_value_t*);


    hw_resv_f hwResvFuncPtr109;
    
    /*mirror*/
    HW_STATUS (*hwMirrorSet)(hw_mirror_t *);
    HW_STATUS (*hwMirrorDel)(hw_slot_port_t*);
    hw_resv_f hwResvFuncPtr111;
    hw_resv_f hwResvFuncPtr112;
    hw_resv_f hwResvFuncPtr113;
    hw_resv_f hwResvFuncPtr114;
    hw_resv_f hwResvFuncPtr115;
    hw_resv_f hwResvFuncPtr116;
    hw_resv_f hwResvFuncPtr117;
    hw_resv_f hwResvFuncPtr118;
    hw_resv_f hwResvFuncPtr119;
    hw_resv_f hwResvFuncPtr120;


    /*stats*/
    HW_STATUS (*hwPortStatsGet)(hw_slot_port_t  *,hw_port_stats_t *);
    HW_STATUS (*hwPortStatsClear)(hw_slot_port_t* );
    HW_STATUS (*hwPortStatsRateGet)(hw_slot_port_t*, hw_port_stat_rate_t*);
    HW_STATUS (*hwVoipStatsGet)(UINT32, hwVoipCounter_t*);
    HW_STATUS (*hwVoipStatsReset)(UINT32);
    hw_resv_f hwResvFuncPtr125;
    hw_resv_f hwResvFuncPtr126;
    hw_resv_f hwResvFuncPtr127;
    hw_resv_f hwResvFuncPtr128;
    hw_resv_f hwResvFuncPtr129;
    hw_resv_f hwResvFuncPtr130;
    
    /*qos+acl*/
    HW_STATUS (*hwQosCosqSchedModeSet)(hw_cosq_sched_t *);
    HW_STATUS (*hwQosDot1p2DscpMapSet)(hw_dot1p2dscp_t *);
    HW_STATUS (*hwQosDot1p2DscpMapDel)(hw_slot_port_t *);
    HW_STATUS (*hwQosDscp2Dot1pMapSet)(hw_dscp2dot1p_t *);
    HW_STATUS (*hwQosDot1p2QueueMapSet)(hw_dot1p2q_t *);
    HW_STATUS (*hwQosOverrideDot1pSet)(hw_dot1pOverride_t *);
    HW_STATUS (*hwQosOverrideDot1pDel)(hw_slot_port_t *);
    HW_STATUS (*hwQosDot1pDscpUntrustSet)(hw_slot_port_t *);
    HW_STATUS (*hwQosPolicySet)(hw_policy_t *);
    HW_STATUS (*hwQosPolicyDel)(hw_policy_t *);
    HW_STATUS (*hwQosAclSet)(hw_acl_t *);
    HW_STATUS (*hwQosAclDel)(hw_acl_t *);
    HW_STATUS (*hwQosInProfileFlowStatsSet)(hw_flow_stats_t *);
    HW_STATUS (*hwQosInProfileFlowStatsGet)(hw_flow_stats_req_t *,hw_flow_stats_t *);
    HW_STATUS (*hwQosOutProfileFlowStatsSet)(hw_flow_stats_t *);
    HW_STATUS (*hwQosOutProfileFlowStatsGet)(hw_flow_stats_req_t *,hw_flow_stats_t *);
    HW_STATUS (*hwQosPortCosSet)(hw_port_cos_t *);
    HW_STATUS (*hwQosGlobalCosSet)(hw_global_cos_t *);
    HW_STATUS (*hwQosSubport2QueueMapSet)(hw_subport2q_t *);
    HW_STATUS (*hwQosSubport2QueueMapDel)(hw_slot_port_t *);
    HW_STATUS (*hwQosSubport2QueueMapSet2)(hw_subport2q_2_t *);
    HW_STATUS (*hwQosSubport2QueueMapDel2)(hw_slot_port_t *);
    HW_STATUS (*hwQosDot1pReMapSet)(hw_dot1premap_t *);
    HW_STATUS (*hwQosDot1pReMapDel)(hw_dot1premap_t *);
    HW_STATUS (*hwQosPortQueueLenSet)(hw_port_queuelen_t *);
    HW_STATUS (*hwQosPortCcosSet)(hw_port_ccos_t *);
    HW_STATUS (*hwQosPortCcosDel)(hw_port_ccos_t *);
    HW_STATUS (*hwQosPortWredSet)(hw_port_wred_t *);
    HW_STATUS (*hwQosPortWredGet)(hw_port_wred_t *);
    HW_STATUS (*hwQosPortQueueLenGet)(hw_port_queuelen_t *);
    HW_STATUS  (*hwQosTrapSPPPoESessionSet)(hw_port_enable_t*) ;
    hw_resv_f hwResvFuncPtr143;
    HW_STATUS (*hwQosQueueSet)(hw_qos_queue_t *);
    HW_STATUS (*hwQosQueueGet)(hw_qos_queue_t *);
    HW_STATUS (*hwQosVoipPrioritySet)(hw_voip_priority_t* );
    HW_STATUS (*hwMngAclSet)(hw_mng_acl_t* );
    hw_resv_f hwResvFuncPtr148;
    hw_resv_f hwResvFuncPtr149;
    hw_resv_f hwResvFuncPtr150;


    /*pvlan*/
    HW_STATUS (*hwPvlanUplinkSet)(hw_slot_portlist_t *);
    HW_STATUS (*hwPvlanContactSet)(hw_slot_portlist_t *);
    HW_STATUS (*hwCpvlanSet)(hw_cpvlan_enable_t *);
    hw_resv_f hwResvFuncPtr151;
    hw_resv_f hwResvFuncPtr152;
    hw_resv_f hwResvFuncPtr153;
    hw_resv_f hwResvFuncPtr154;
    hw_resv_f hwResvFuncPtr155;
    hw_resv_f hwResvFuncPtr156;
    hw_resv_f hwResvFuncPtr157;
    hw_resv_f hwResvFuncPtr158;
    hw_resv_f hwResvFuncPtr159;
    hw_resv_f hwResvFuncPtr160;
 
    /*pvc*/
    HW_STATUS (*hwPvcSet)(hw_subport_t *pSubport);
    HW_STATUS (*hwPvcDel)(hw_subport_t *pSubport);
    HW_STATUS (*hwPvcStatusSet)(hw_port_enable_t *);
HW_STATUS (*hwPPPoAPvcSrcMacSet)(hw_pppoa_pvc_t *);
HW_STATUS (*hwPPPoAPvcGatewayMacSet)(hw_pppoa_pvc_t *);
HW_STATUS (*hwPPPoAPvcSrcSessionIDSet)(hw_pppoa_pvc_t *);
HW_STATUS (*hwPPPoAPvcSrcStatusSet)(hw_pppoa_pvc_status_t *);
HW_STATUS (*hwGetPPPoAPvcByMac)(hw_vmac_t *,hw_l2_addr_t *);
HW_STATUS (*hwPPPoAAutoAdaptSet)(hw_port_enable_t*);
    HW_STATUS (*hwPPPoAPvcSubnetMaskSet)(hw_pppoa_pvc_t *);
    hw_resv_f hwResvFuncPtr168;
    hw_resv_f hwResvFuncPtr169;
    hw_resv_f hwResvFuncPtr170;
    
    /*packet*/
    HW_STATUS (*hwTxPkt)(UINT8 chipUnit,UINT8 slot,UINT16 port,UINT16 subport,UINT16 type,UINT16 vid, UINT8 *packet, UINT32 length);
    HW_STATUS (*hwTxVlanPkt)(UINT8 chipUnit,UINT8  slot,UINT16 vid, UINT8 *packet, UINT32 length);
    HW_STATUS (*hwTxVlanPktEx)(UINT8 chipUnit,UINT8 slot,UINT16 vid, UINT16 port,UINT16 subport, UINT8 *packet, UINT32 length);
HW_STATUS (*hwPortRateIGMPSet)(hw_pps_limit_t *);
HW_STATUS (*hwPortRateIGMPDel)(hw_slot_port_t *);
HW_STATUS (*hwPortRateDHCPSet)(hw_pps_limit_t *);
HW_STATUS (*hwPortRateDHCPDel)(hw_slot_port_t *);
    HW_STATUS (*hwPortRateARPSet)(hw_pps_limit_t *);
    HW_STATUS (*hwPortRateICMPSet)(hw_pps_limit_t *);
    HW_STATUS (*hwPktTrap2Cpu)(hw_trap_pkt_t*);
    HW_STATUS (*hwPortRateMLDSet)(hw_pps_limit_t *);
HW_STATUS (*hwPortRateMLDDel)(hw_slot_port_t *);
    hw_resv_f hwResvFuncPtr180;
    
    /*callback*/
    rx_pkt_callback_f  hwPktCallBack;
    link_scan_callback_f hwLinkScanCallBack;
    hw_resv_f hwResvFuncPtr181;
    hw_resv_f hwResvFuncPtr182;
    hw_resv_f hwResvFuncPtr183;
    hw_resv_f hwResvFuncPtr184;
    hw_resv_f hwResvFuncPtr185;
    hw_resv_f hwResvFuncPtr186;
    hw_resv_f hwResvFuncPtr187;
    hw_resv_f hwResvFuncPtr188;
    hw_resv_f hwResvFuncPtr189;
    hw_resv_f hwResvFuncPtr190;
    
    /*boardinfo*/
    #if (IS_MAINBOARD == 1)
    HW_STATUS (*hwUpPortNumGetByBoardType)(UINT32 type,UINT32* pUpPortNum);
    HW_STATUS (*hwPortNumGetByBoardType)(UINT32 type,UINT32* pPortNum);
    HW_STATUS (*hwDifferIdGetByBoardType)(UINT32 type,UINT32 *pDifferID);
    HW_STATUS (*hwUpPortGetBySlot)(UINT8  slot,uplink_port_info_t* pUpPortInfo);
    HW_STATUS (*hwSlotGetByUpPort)(UINT16  port,UINT8 *pSlot);
    #else
    HW_STATUS (*hwUpPortNumGet)(UINT32* pUpPortNum);
    HW_STATUS (*hwPortNumGet)(UINT32* pPortNum);
    HW_STATUS (*hwUpPortGet)(uplink_port_info_t* pUpPortInfo);
    #endif
    HW_STATUS (*hwChipVersionGet)(UINT32* chipinfo);
    hw_resv_f hwResvFuncPtr192;
    hw_resv_f hwResvFuncPtr193;
    hw_resv_f hwResvFuncPtr194;
    hw_resv_f hwResvFuncPtr195;
    hw_resv_f hwResvFuncPtr196;
    hw_resv_f hwResvFuncPtr197;
    hw_resv_f hwResvFuncPtr198;
    hw_resv_f hwResvFuncPtr199;
    hw_resv_f hwResvFuncPtr200;
    
}hw_driver_t;
   
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:129670次
    • 积分:2132
    • 等级:
    • 排名:第18511名
    • 原创:94篇
    • 转载:0篇
    • 译文:0篇
    • 评论:3条
    最新评论