mbcm.c (4299B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 * 7 * File: mbcm.c 8 */ 9 10 #include <soc/defs.h> 11 #if defined(BCM_TRIUMPH_SUPPORT) 12 #include <soc/debug.h> 13 #include <bcm_int/esw/mbcm.h> 14 #include <bcm_int/esw/firebolt.h> 15 #include <bcm_int/esw/bradley.h> 16 #include <bcm_int/esw/triumph.h> 17 #include <bcm/error.h> 18 19 mbcm_functions_t mbcm_triumph_driver = { 20 /* L2 functions */ 21 bcm_tr_l2_init, 22 bcm_tr_l2_term, 23 bcm_tr_l2_addr_get, 24 bcm_tr_l2_addr_add, 25 bcm_tr_l2_addr_delete, 26 27 bcm_tr_l2_conflict_get, 28 29 /* Port table related functions */ 30 bcm_xgs3_port_cfg_init, 31 bcm_xgs3_port_cfg_get, 32 bcm_xgs3_port_cfg_set, 33 34 /* VLAN functions */ 35 bcm_xgs3_vlan_init, 36 bcm_xgs3_vlan_reload, 37 bcm_xgs3_vlan_create, 38 bcm_xgs3_vlan_destroy, 39 bcm_xgs3_vlan_port_add, 40 bcm_xgs3_vlan_port_remove, 41 bcm_xgs3_vlan_port_get, 42 bcm_xgs3_vlan_stg_get, 43 bcm_xgs3_vlan_stg_set, 44 45 /* Trunking functions */ 46 bcm_xgs3_trunk_modify, 47 bcm_xgs3_trunk_get, 48 bcm_xgs3_trunk_destroy, 49 bcm_xgs3_trunk_mcast_join, 50 51 /* Spanning Tree Group functions */ 52 bcm_xgs3_stg_stp_init, 53 bcm_xgs3_stg_stp_get, 54 bcm_xgs3_stg_stp_set, 55 56 /* Multicasting functions */ 57 bcm_xgs3_mcast_addr_add, 58 bcm_xgs3_mcast_addr_remove, 59 bcm_xgs3_mcast_port_get, 60 bcm_xgs3_mcast_init, 61 _bcm_xgs3_mcast_detach, 62 bcm_xgs3_mcast_addr_add_w_l2mcindex, 63 bcm_xgs3_mcast_addr_remove_w_l2mcindex, 64 bcm_xgs3_mcast_port_add, 65 bcm_xgs3_mcast_port_remove, 66 67 /* COSQ functions */ 68 bcm_tr_cosq_init, 69 bcm_tr_cosq_detach, 70 bcm_tr_cosq_config_set, 71 bcm_tr_cosq_config_get, 72 bcm_tr_cosq_mapping_set, 73 bcm_tr_cosq_mapping_get, 74 bcm_tr_cosq_port_sched_set, 75 bcm_tr_cosq_port_sched_get, 76 bcm_tr_cosq_sched_weight_max_get, 77 bcm_tr_cosq_port_bandwidth_set, 78 bcm_tr_cosq_port_bandwidth_get, 79 bcm_tr_cosq_discard_set, 80 bcm_tr_cosq_discard_get, 81 bcm_tr_cosq_discard_port_set, 82 bcm_tr_cosq_discard_port_get, 83 #ifdef BCM_WARM_BOOT_SUPPORT 84 bcm_tr_cosq_sync, 85 #endif /* BCM_WARM_BOOT_SUPPORT */ 86 #ifndef BCM_SW_STATE_DUMP_DISABLE 87 bcm_tr_cosq_sw_dump, 88 #endif /* BCM_SW_STATE_DUMP_DISABLE */ 89 90 /* Port meter functions */ 91 bcm_tr_port_rate_egress_set, 92 bcm_tr_port_rate_egress_get, 93 94 #ifdef INCLUDE_L3 95 /* L3 functions */ 96 bcm_xgs3_l3_tables_init, 97 bcm_xgs3_l3_tables_cleanup, 98 bcm_xgs3_l3_enable, 99 bcm_xgs3_l3_intf_get, 100 bcm_xgs3_l3_intf_get_by_vid, 101 bcm_xgs3_l3_intf_create, 102 bcm_xgs3_l3_intf_id_create, 103 bcm_xgs3_l3_intf_lookup, 104 bcm_xgs3_l3_intf_del, 105 bcm_xgs3_l3_intf_del_all, 106 107 bcm_xgs3_l3_get, 108 bcm_xgs3_l3_add, 109 bcm_xgs3_l3_del, 110 bcm_xgs3_l3_del_prefix, 111 bcm_xgs3_l3_del_intf, 112 bcm_xgs3_l3_del_all, 113 bcm_xgs3_l3_replace, 114 bcm_xgs3_l3_age, 115 bcm_xgs3_l3_ip4_traverse, 116 117 bcm_xgs3_l3_get, 118 bcm_xgs3_l3_add, 119 bcm_xgs3_l3_del, 120 bcm_xgs3_l3_del_prefix, 121 bcm_xgs3_l3_replace, 122 bcm_xgs3_l3_ip6_traverse, 123 124 bcm_xgs3_defip_get, 125 bcm_xgs3_defip_ecmp_get_all, 126 bcm_xgs3_defip_add, 127 bcm_xgs3_defip_del, 128 bcm_xgs3_defip_del_intf, 129 bcm_xgs3_defip_del_all, 130 bcm_xgs3_defip_age, 131 bcm_xgs3_defip_ip4_traverse, 132 133 bcm_xgs3_defip_get, 134 bcm_xgs3_defip_ecmp_get_all, 135 bcm_xgs3_defip_add, 136 bcm_xgs3_defip_del, 137 bcm_xgs3_defip_ip6_traverse, 138 139 bcm_xgs3_l3_conflict_get, 140 bcm_xgs3_l3_info, 141 142 bcm_tr_ipmc_init, 143 bcm_tr_ipmc_detach, 144 bcm_tr_ipmc_enable, 145 bcm_tr_ipmc_src_port_check, 146 bcm_tr_ipmc_src_ip_search, 147 bcm_tr_ipmc_add, 148 bcm_tr_ipmc_delete, 149 bcm_tr_ipmc_delete_all, 150 bcm_tr_ipmc_lookup, 151 bcm_tr_ipmc_get, 152 bcm_tr_ipmc_put, 153 bcm_tr_ipmc_egress_port_get, 154 bcm_tr_ipmc_egress_port_set, 155 bcm_fb_ipmc_repl_init, 156 bcm_fb_ipmc_repl_detach, 157 bcm_fb_ipmc_repl_get, 158 bcm_fb_ipmc_repl_add, 159 bcm_fb_ipmc_repl_delete, 160 bcm_fb_ipmc_repl_delete_all, 161 bcm_fb_ipmc_egress_intf_add, 162 bcm_fb_ipmc_egress_intf_delete, 163 bcm_tr_ipmc_age, 164 bcm_tr_ipmc_traverse, 165 #endif /* INCLUDE_L3 */ 166 }; 167 #else /* BCM_TRIUMPH_SUPPORT */ 168 int bcm_esw_triumph_mbcm_not_empty; 169 #endif /* BCM_TRIUMPH_SUPPORT */ 170