openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

mbcm.c (4390B)


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