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