HWAPI模块

原创 2012年03月30日 22:19:17
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;
   

nginx常用模块

rewrite模块 1.url重写由rewrite指令来执行,该指令接受一个模式(正则表达式),后跟一个替换url。 2.rewrite中的匹配使用的正则表达式pcre库 ^   : 匹配开始 ...
  • anderk
  • anderk
  • 2015年12月15日 12:38
  • 673

python多线程编程(一)--thread模块

python提供两个模块支持多线程编程:thread和threading。 thread模块函数 函数 描述 start_new_thread(function,args,kwar...
  • whoami021
  • whoami021
  • 2014年03月15日 01:57
  • 6120

Unity—项目开发中常用模块(吐血整理笔记摘要)--------持续更新中... ...

一:Socket网络连接模块 使用Protobuf-net解析,有加密功能。 上线商业项目稳定使用中… …二:Assetbundle管理模块 使用AssetBundleManager 插件,上线...
  • zhaoguanghui2012
  • zhaoguanghui2012
  • 2017年02月09日 19:08
  • 816

无法加载模块

改正方法:
  • csiyou
  • csiyou
  • 2014年07月18日 21:01
  • 3866

超声波模块

HC-SR04简介HC-SR04超声波模块可提供2cm~400cm的距离感测功能,测量精度可以达到3mm。模块包括超声波发射器,接收器与控制电路。基本工作原理1) 采用Trig引脚触发,给至少10us...
  • luckywang1103
  • luckywang1103
  • 2015年09月20日 17:28
  • 7596

GSM模块介绍

GSM模块介绍
  • baidu_35534327
  • baidu_35534327
  • 2016年10月09日 22:02
  • 996

python各种模块下载网址

https://pypi.python.org/
  • junmuzi
  • junmuzi
  • 2016年10月14日 21:52
  • 6318

关于Express模块的学习

Express 是一个简洁而灵活的 node.js Web应用框架, 提供了一系列强大特性帮助你创建各种 Web 应用,和丰富的 HTTP 工具。 Express有四个主要的特点: 1.1 中...
  • weixin_37610328
  • weixin_37610328
  • 2017年04月14日 17:27
  • 499

SAP各模块介绍

SAP在管理功能上,它共有12个系统模块,下面为你一一介绍, 希望对你了解SAP有所帮助。   (1)SAP MM模块(物料管理模块),主要有采购、库房与库存管理、MRP、供应商评价等管理功能。  ...
  • afandaafandaafanda
  • afandaafandaafanda
  • 2015年08月06日 06:35
  • 3902

获取模块句柄/基址

#include HMODULE h = GetModuleHandle(NULL);// 传入对应模块名,NULL表示取当前模块 PS:可在属性->链接->高级->基址:修改基址...
  • ko999123
  • ko999123
  • 2016年11月12日 17:12
  • 1236
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:HWAPI模块
举报原因:
原因补充:

(最多只允许输入30个字)