#include "ip1811fdat.h" int (*func_of_common_smi[NUM_COMMON_SMI])(void *cdata, int len) = { &setPortAN, &getPortAN, &setPortSpeed, &getPortSpeed, &setPortDuplex, &getPortDuplex, &setPortPause, &getPortPause, &setPortAsymPause, &getPortAsymPause, &setPortLinkStatus, &getPortLinkStatus, &setPortBackpressure, &getPortBackpressure, &setPortPowerDown, &getPortPowerDown, &setPortForceLink, &getPortForceLink, &setPortUniDirection, &getPortUniDirection, }; int (*func_of_common_cap[NUM_COMMON_CAP])(void *cdata, int len) = { &setL2CapAct, &setCapInBand, &setCapSwitchMac, &setCapIpv6TcpUdpEnable, }; int (*func_of_common_lut[NUM_COMMON_LUT])(void *cdata, int len) = { &setSMACLearning, &getSMACLearning, &setLutPortFlush, &setLutAgingTime, &getLutAgingTime, &setLutAgingTimeEnable, &setLutLearningNullSA, &setLutHashingAlgorithm, &setLutBindingEnable, &getLutBindingEnable, }; int (*func_of_common_sniffer[NUM_COMMON_SNIFFER])(void *cdata, int len) = { &setSnifferSrc, &getSnifferSrc, &setSnifferDestGrp1, &getSnifferDestGrp1, &setS1Method, &getS1Method, }; int (*func_of_common_storm[NUM_COMMON_STORM])(void *cdata, int len) = { &setStormFunc, &getStormFunc, &setStormThreshold, &getStormThreshold, &setStormCntrClrPeriod, &getStormCntrClrPeriod, &setStormBlockFrm2Cpu, &getStormBlockFrm2Cpu, &setStormDropInterrupt, &getStormDropInterrupt, }; int (*func_of_common_eoc[5])(void *cdata, int len) = { }; int (*func_of_common_ld[NUM_COMMON_LOOP_DETECT])(void *cdata, int len) = { &setLdFunc, &getLdFunc, &setLdTimeUnit, &getLdTimeUnit, &setLdPktSendTimer, &getLdPktSendTimer, &setLdBlockReleaseTimer, &getLdBlockReleaseTimer, &getLdStatus, }; int (*func_of_common_wol[12])(void *cdata, int len) = { }; int (*func_of_common_stag[NUM_COMMON_STAG])(void *cdata, int len) = { &setCpuPortLink, &setSTagFunc, &getSTagTypeLen, &configCpuPort, &getCpuPort, }; int (*func_of_common_misc[NUM_COMMON_MISC])(void *cdata, int len) = { &set8021xFunc, &get8021xFunc, &setReg, &getReg, &setCPUReg, &getCPUReg, &setSwitchRestart, &setSwitchReset, &setCpuIfSpeed, &setEepromByte, &getEepromByte, }; int (*func_of_common_vlan[NUM_COMMON_VLAN])(void *cdata, int len) = { &setVlanEgressFrame, //0 &getVlanEgressFrame, &setVlanTagging, &setVlanType, &setVlanGroup, &setVlanQinQPType, //5 &setVlanQinQPAddtag, &getVlanQinQPAddtag, &setVlanQinQPRmvtag, &getVlanQinQPRmvtag, &setVlanQinQPRxdet, //10 &getVlanQinQPRxdet, &setVlanQinQPKeep, &getVlanQinQPKeep, &setVlanQinQPIndex, &getVlanQinQPIndex, //15 &setVlanQinQIndex, &setVlanQinQStagSelectMethod, &setVlanPortAddtag, &getVlanPortAddtag, &setVlanPortRmvtag, //20 &getVlanPortRmvtag, &setVlanPortForce, &getVlanPortForce, &setVlanPortUplink, &getVlanPortUplink, //25 &setVlanPortExclusive, &getVlanPortExclusive, &setVlanPortEgress, &getVlanPortEgress, &setVlanPortIngressFrame, //30 &setVlanPortIngressCheck, &getVlanPortIngressCheck, &setVlanPortVid, &setVlanProtocolMode, &setVlanProtocolVid, //35 &setVlanProtocolType, &setVlanProtocolClear, &setVlanMACBased, &setVlanMACBasedtableconfig, &getVlanMACBasedtableconfig, //40 &setVlanMACBasedunknown, }; int (*func_of_common_stp[NUM_COMMON_STP])(void *cdata, int len) = { &setMstpFunc, &getMstpFunc, }; int (*func_of_common_lacp[NUM_COMMON_LACP])(void *cdata, int len) = { &setTrunkHashMthd, &getTrunkHashMthd, &setTrunkMbr, &getTrunkMbr, &setCpuNCareTrunkAndVlan, &getCpuNCareTrunkAndVlan, }; int (*func_of_common_imp[8])(void *cdata, int len) = { }; int (*func_of_common_cos[NUM_COMMON_TCPUDP])(void *cdata, int len) = { &setCosTcpUdpUserDefine, &getCosTcpUdpUserDefine, &setCosTcpUdpQueue, &getCosTcpUdpQueue, &setCosTcpUdpEnable, &getCosTcpUdpEnable, &setCosTcpEnable, &getCosTcpEnable, &setCosUdpEnable, &getCosUdpEnable, &setCosTcpFlagDropNull, &getCosTcpFlagDropNull, &setCosTcpFlagDropAllset, &getCosTcpFlagDropAllset, &setCosTcpFlag, &getCosTcpFlag, &setCosTcpFlagAct, &getCosTcpFlagAct, &setCosTcpFlagPort, &getCosTcpFlagPort, }; int (*func_of_common_bandwidth[NUM_COMMON_BANDWIDTH])(void *cdata, int len) = { &setBandwidthIngressRate, &getBandwidthIngressRate, &setBandwidthEgressRate, &getBandwidthEgressRate, &setBandwidthEgressPeriod, &getBandwidthEgressPeriod, }; /* ---------------- functions of ip1811 ---------------------------*/ int (*func_of_ip1811_lut[NUM_1811_LUT])(void *cdata, int len) = { &setLutUnknownSARule, &setLutEntry, &getLutEntry, &getLutValidEntry, }; int (*func_of_ip1811_sniffer[NUM_1811_SNIFFER])(void *cdata, int len) = { &setS1PktModify, &getS1PktModify, &setS1TM4CpuSTag, &getS1TM4CpuSTag, &setS1TM4Acl2Cpu, &getS1TM4Acl2Cpu, &setS1TM4Pkt2MPort, &getS1TM4Pkt2MPort, &setS2LTT4Grp1, &getS2LTT4Grp1, }; int (*func_of_ip1811_storm[NUM_1811_STORM])(void *cdata, int len) = { &setMStormNBlockIpPkt, &getMStormNBlockIpPkt, &setMStormIgnr01005EXXXXXX, &getMStormIgnr01005EXXXXXX, }; int (*func_of_ip1811_eoc[3])(void *cdata, int len) = { }; int (*func_of_ip1811_ld[NUM_1811_LOOP_DETECT])(void *cdata, int len) = { &setLdDMAC, &setLdSubType, }; int (*func_of_ip1811_wol[6])(void *cdata, int len) = { }; int (*func_of_ip1811_misc[15])(void *cdata, int len) = { }; int (*func_of_ip1811_stp[NUM_1811_STP])(void *cdata, int len) = { &setBpduCapMode, &getBpduCapMode, &setBpduPortAct, &getBpduPortAct, &setStpPortState, &getStpPortState, }; int (*func_of_ip1811_lacp[NUM_1811_LACP])(void *cdata, int len) = { &setTrunkHashMthdSeq, &getTrunkHashMthdSeq, &setTrunkGrpCombine, &getTrunkGrpCombine, }; int (*func_of_ip1811_igmp[NUM_1811_IGMP])(void *cdata, int len) = { &setIGMPSnooping, &getIGMPSnooping, &setIGMPMctByCPU, &getIGMPMctByCPU, &setIGMPRltByCPU, &getIGMPRltByCPU, &setIGMPPktForward, &getIGMPPktForward, &setIGMPRlt, &getIGMPRlt, &setIGMPHashMethod, &getIGMPHashMethod, &setIGMPMldRule, &getIGMPMldRule, &setIGMPMctTable, &getIGMPMctTable, &setIGMPSltTable, &getIGMPSltTable, }; int (*func_of_ip1811_ptp[NUM_1811_PTP])(void *cdata, int len)= { &setPTPEnable, &getPTPEnable, &setPTPDA011B19000000, &getPTPDA011B19000000, &setPTPDA0180C200000E, &getPTPDA0180C200000E, &setPTPUdpDP, &getPTPUdpDP, &setPTPUdpSP, &getPTPUdpSP, &setPTPToCPU, &getPTPToCPU, &setPTPSpecialTag, &getPTPSpecialTag, &setPTPClockReset, &getPTPTimeStamp, &setPTPClockEnable, &getPTPClockEnable, &setPTPOverwriteEnable, &getPTPOverwriteEnable, &setPTPProgrammable, &getPTPProgrammable, &setPTPProgrammableOut, &setPTPTimestampEnable, &getPTPTimestampEnable, &setPTPTimestampClear, &setPTPTimeData, &getPTPTimeData, &addPTPTimeData, &subPTPTimeData, &setPTPFrequencyAdd, &getPTPFrequencyAdd, &setPTPClockPeriod, &getPTPClockPeriod, &setPTPProgrammableConfig, &setPTPDurationFrequencyCompensation, &setPTPAlwaysFrequencyCompensation, &getPTPIngressLatency10, &getPTPIngressLatency100, &getPTPIngressLatencyFiber, &getPTPEgressLatency10, &getPTPEgressLatency100, &getPTPEgressLatencyFiber, }; int (*func_of_ip1811_imp[2])(void *cdata, int len) = { }; int (*func_of_ip1811_vlan[NUM_IP1811_VLAN])(void *cdata, int len) = { &setVlanEntryMember, &setVlanEntryAddtag, &setVlanEntryRmvtag, &setVlanEntryPriority, &setVlanEntryFid, &getVlanEntryFid, &setVlanEntryClear, }; int (*func_of_ip1811_mib_counter[NUM_1811_MIB_COUNTER])(void *cdata, int len) = { &setMibCounterEnable, &getMibCounterEnable, &getMibCounterAll, &getMibCounterByPort, &getMibCounterByItem, }; int (*func_of_ip1811_qos[NUM_IP1811_QOS])(void *cdata, int len) = { &setQOSAgingFunction, &getQOSAgingFunction, &setQOSAgingTime, &getQOSAgingTime, &setQOSFastAging, &getQOSFastAging, &setCOSIGMP, &getCOSIGMP, &setCOSMACAddress, &getCOSMACAddress, &setCOSVID, &getCOSVID, &setCOSTCPUDPPort, &getCOSTCPUDPPort, &setCOSDSCP, &getCOSDSCP, &setCOS8021P, &getCOS8021P, &setCOSPhsicalPort, &getCOSPhsicalPort, &setCOSPortQueue, &getCOSPortQueue, &setCOS8021PEdtion, &getCOS8021PEdtion, &setCOSDSCPBaseDSCP, &getCOSDSCPBaseDSCP, &setCOSDSCPBaseNoMatchAction, &getCOSDSCPBaseNoMatchAction, &setQOSmodeGroupMember, &getQOSmodeGroupMember, &setQOSGroupBEn, &getQOSGroupBEn, &setQOSMode, &getQOSMode, &setQOSMethod, &getQOSMethod, &setQOSWeight, &getQOSWeight, &setQOSMaxBandwidth, &getQOSMaxBandwidth, &setQOSUnit, &getQOSUnit, &setQOSRatioValue0Def, &getQOSRatioValue0Def, &setQOSSBMDBM, &getQOSSBMDBM, &setQOSDBMEn, &getQOSDBMEn, &setQOSRemap, &getQOSRemap, }; int (*func_of_ip1811_acl[NUM_IP1811_ACL])(void *cdata, int len) = { &setAclRule, &getAclRule, &aclCleanTable, &setAclFunctionEn, &getAclFunctionEn, &setAclEtherAfterTag, &getAclEtherAfterTag, &getAclUsedRules, &getAclUsedEntries, &getAclUsedEntryMask, &setAclBW, &getAclBW, &setAclDscp, &getAclDscp, &setAclVidRemark, &getAclVidRemark, &setAclStormPeriod, &getAclStormPeriod, &setAclStorm, &getAclStorm, }; int (*func_of_ip1811_hsr[NUM_IP1811_HSR])(void *cdata, int len) = { &setHSREnable, &getHSREnable, &setHSRMode, &getHSRMode, };