mbcm.c (4290B)
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_FIREBOLT_SUPPORT) 12 #include <soc/debug.h> 13 #include <bcm_int/esw/mbcm.h> 14 15 #include <bcm_int/esw/firebolt.h> 16 #include <bcm/error.h> 17 18 mbcm_functions_t mbcm_firebolt_driver = { 19 /* L2 functions */ 20 bcm_fb_l2_init, 21 bcm_fb_l2_term, 22 bcm_fb_l2_addr_get, 23 bcm_fb_l2_addr_add, 24 bcm_fb_l2_addr_delete, 25 26 bcm_fb_l2_conflict_get, 27 28 /* Port table related functions */ 29 bcm_xgs3_port_cfg_init, 30 bcm_xgs3_port_cfg_get, 31 bcm_xgs3_port_cfg_set, 32 33 /* VLAN functions */ 34 bcm_xgs3_vlan_init, 35 bcm_xgs3_vlan_reload, 36 bcm_xgs3_vlan_create, 37 bcm_xgs3_vlan_destroy, 38 bcm_xgs3_vlan_port_add, 39 bcm_xgs3_vlan_port_remove, 40 bcm_xgs3_vlan_port_get, 41 bcm_xgs3_vlan_stg_get, 42 bcm_xgs3_vlan_stg_set, 43 44 /* Firebolt trunking functions */ 45 bcm_xgs3_trunk_modify, 46 bcm_xgs3_trunk_get, 47 bcm_xgs3_trunk_destroy, 48 bcm_xgs3_trunk_mcast_join, 49 50 /* Spanning Tree Group functions */ 51 bcm_xgs3_stg_stp_init, 52 bcm_xgs3_stg_stp_get, 53 bcm_xgs3_stg_stp_set, 54 55 /* Multicasting functions */ 56 bcm_xgs3_mcast_addr_add, 57 bcm_xgs3_mcast_addr_remove, 58 bcm_xgs3_mcast_port_get, 59 bcm_xgs3_mcast_init, 60 _bcm_xgs3_mcast_detach, 61 bcm_xgs3_mcast_addr_add_w_l2mcindex, 62 bcm_xgs3_mcast_addr_remove_w_l2mcindex, 63 bcm_xgs3_mcast_port_add, 64 bcm_xgs3_mcast_port_remove, 65 66 /* COSQ functions */ 67 bcm_fb_cosq_init, 68 bcm_fb_cosq_detach, 69 bcm_fb_cosq_config_set, 70 bcm_fb_cosq_config_get, 71 bcm_fb_er_cosq_mapping_set, 72 bcm_fb_er_cosq_mapping_get, 73 bcm_fb_cosq_port_sched_set, 74 bcm_fb_cosq_port_sched_get, 75 bcm_fb_cosq_sched_weight_max_get, 76 bcm_fb_cosq_port_bandwidth_set, 77 bcm_fb_cosq_port_bandwidth_get, 78 bcm_fb_cosq_discard_set, 79 bcm_fb_cosq_discard_get, 80 bcm_fb_cosq_discard_port_set, 81 bcm_fb_cosq_discard_port_get, 82 #ifdef BCM_WARM_BOOT_SUPPORT 83 bcm_fb_cosq_sync, 84 #endif /* BCM_WARM_BOOT_SUPPORT */ 85 #ifndef BCM_SW_STATE_DUMP_DISABLE 86 bcm_fb_cosq_sw_dump, 87 #endif /* BCM_SW_STATE_DUMP_DISABLE */ 88 89 /* Port meter functions */ 90 bcm_fb_port_rate_egress_set, 91 bcm_fb_port_rate_egress_get, 92 93 #ifdef INCLUDE_L3 94 /* L3 functions */ 95 bcm_xgs3_l3_tables_init, 96 bcm_xgs3_l3_tables_cleanup, 97 bcm_xgs3_l3_enable, 98 bcm_xgs3_l3_intf_get, 99 bcm_xgs3_l3_intf_get_by_vid, 100 bcm_xgs3_l3_intf_create, 101 bcm_xgs3_l3_intf_id_create, 102 bcm_xgs3_l3_intf_lookup, 103 bcm_xgs3_l3_intf_del, 104 bcm_xgs3_l3_intf_del_all, 105 106 bcm_xgs3_l3_get, 107 bcm_xgs3_l3_add, 108 bcm_xgs3_l3_del, 109 bcm_xgs3_l3_del_prefix, 110 bcm_xgs3_l3_del_intf, 111 bcm_xgs3_l3_del_all, 112 bcm_xgs3_l3_replace, 113 bcm_xgs3_l3_age, 114 bcm_xgs3_l3_ip4_traverse, 115 116 bcm_xgs3_l3_get, 117 bcm_xgs3_l3_add, 118 bcm_xgs3_l3_del, 119 bcm_xgs3_l3_del_prefix, 120 bcm_xgs3_l3_replace, 121 bcm_xgs3_l3_ip6_traverse, 122 123 bcm_xgs3_defip_get, 124 bcm_xgs3_defip_ecmp_get_all, 125 bcm_xgs3_defip_add, 126 bcm_xgs3_defip_del, 127 bcm_xgs3_defip_del_intf, 128 bcm_xgs3_defip_del_all, 129 bcm_xgs3_defip_age, 130 bcm_xgs3_defip_ip4_traverse, 131 132 bcm_xgs3_defip_get, 133 bcm_xgs3_defip_ecmp_get_all, 134 bcm_xgs3_defip_add, 135 bcm_xgs3_defip_del, 136 bcm_xgs3_defip_ip6_traverse, 137 138 bcm_xgs3_l3_conflict_get, 139 bcm_xgs3_l3_info, 140 141 bcm_fb_er_ipmc_init, 142 bcm_fb_er_ipmc_detach, 143 bcm_fb_er_ipmc_enable, 144 bcm_fb_er_ipmc_src_port_check, 145 bcm_fb_er_ipmc_src_ip_search, 146 bcm_fb_er_ipmc_add, 147 bcm_fb_er_ipmc_delete, 148 bcm_fb_er_ipmc_delete_all, 149 bcm_fb_er_ipmc_lookup, 150 bcm_fb_er_ipmc_get, 151 bcm_fb_er_ipmc_put, 152 bcm_fb_er_ipmc_egress_port_get, 153 bcm_fb_er_ipmc_egress_port_set, 154 bcm_fb_ipmc_repl_init, 155 bcm_fb_ipmc_repl_detach, 156 bcm_fb_ipmc_repl_get, 157 bcm_fb_ipmc_repl_add, 158 bcm_fb_ipmc_repl_delete, 159 bcm_fb_ipmc_repl_delete_all, 160 bcm_fb_ipmc_egress_intf_add, 161 bcm_fb_ipmc_egress_intf_delete, 162 bcm_xgs3_ipmc_age, 163 bcm_xgs3_ipmc_traverse, 164 #endif /* INCLUDE_L3 */ 165 }; 166 #else /* BCM_FIREBOLT_SUPPORT */ 167 int _firebolt_mbcm_not_empty; 168 #endif /* BCM_FIREBOLT_SUPPORT */ 169