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 (4440B)


      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_TOMAHAWK_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/triumph.h>
     16 #include <bcm_int/esw/triumph2.h>
     17 #include <bcm_int/esw/trident.h>
     18 #include <bcm_int/esw/triumph3.h>
     19 #include <bcm_int/esw/trident2.h>
     20 #include <bcm_int/esw/tomahawk.h>
     21 #include <bcm/error.h>
     22 
     23 mbcm_functions_t mbcm_tomahawk_driver = {
     24     /*  L2 functions */
     25     bcm_tr_l2_init,
     26     bcm_tr_l2_term,
     27     bcm_tr_l2_addr_get,
     28     bcm_tr_l2_addr_add,
     29     bcm_tr_l2_addr_delete,
     30 
     31     bcm_tr_l2_conflict_get,
     32 
     33     /*  Port table related functions */
     34     bcm_xgs3_port_cfg_init,
     35     bcm_xgs3_port_cfg_get,
     36     bcm_xgs3_port_cfg_set,
     37 
     38     /*  VLAN functions */
     39     bcm_xgs3_vlan_init,
     40     bcm_xgs3_vlan_reload,
     41     bcm_xgs3_vlan_create,
     42     bcm_xgs3_vlan_destroy,
     43     bcm_xgs3_vlan_port_add,
     44     bcm_xgs3_vlan_port_remove,
     45     bcm_xgs3_vlan_port_get,
     46     bcm_xgs3_vlan_stg_get,
     47     bcm_xgs3_vlan_stg_set,
     48 
     49     /*  Trunking functions */
     50     bcm_trident_trunk_modify,
     51     bcm_trident_trunk_get,
     52     bcm_trident_trunk_destroy,
     53     bcm_trident_trunk_mcast_join,
     54 
     55     /*  Spanning Tree Group functions */
     56     bcm_xgs3_stg_stp_init,
     57     bcm_xgs3_stg_stp_get,
     58     bcm_xgs3_stg_stp_set,
     59 
     60     /*  Multicasting functions */
     61     bcm_xgs3_mcast_addr_add,
     62     bcm_xgs3_mcast_addr_remove,
     63     bcm_xgs3_mcast_port_get,
     64     bcm_xgs3_mcast_init,
     65     _bcm_xgs3_mcast_detach,
     66     bcm_xgs3_mcast_addr_add_w_l2mcindex,
     67     bcm_xgs3_mcast_addr_remove_w_l2mcindex,
     68     bcm_xgs3_mcast_port_add,
     69     bcm_xgs3_mcast_port_remove,
     70 
     71     /*  COSQ functions */
     72     bcm_th_cosq_init,
     73     bcm_th_cosq_detach,
     74     bcm_th_cosq_config_set,
     75     bcm_th_cosq_config_get,
     76     bcm_th_cosq_mapping_set,
     77     bcm_th_cosq_mapping_get,
     78     bcm_th_cosq_port_sched_set,
     79     bcm_th_cosq_port_sched_get,
     80     bcm_th_cosq_sched_weight_max_get,
     81     bcm_th_cosq_port_bandwidth_set,
     82     bcm_th_cosq_port_bandwidth_get,
     83     bcm_th_cosq_discard_set,
     84     bcm_th_cosq_discard_get,
     85     bcm_th_cosq_discard_port_set,
     86     bcm_th_cosq_discard_port_get,
     87 #ifdef BCM_WARM_BOOT_SUPPORT
     88     bcm_th_cosq_sync,
     89 #endif /* BCM_WARM_BOOT_SUPPORT */
     90 #ifndef BCM_SW_STATE_DUMP_DISABLE
     91     bcm_th_cosq_sw_dump,
     92 #endif /* BCM_SW_STATE_DUMP_DISABLE */
     93 
     94     /*  Port meter functions */
     95     bcm_th_port_rate_egress_set,
     96     bcm_th_port_rate_egress_get,
     97 
     98 #ifdef INCLUDE_L3
     99     /* L3 functions */
    100     bcm_xgs3_l3_tables_init,
    101     bcm_xgs3_l3_tables_cleanup,
    102     bcm_xgs3_l3_enable,
    103     bcm_xgs3_l3_intf_get,
    104     bcm_xgs3_l3_intf_get_by_vid,
    105     bcm_xgs3_l3_intf_create,
    106     bcm_xgs3_l3_intf_id_create,
    107     bcm_xgs3_l3_intf_lookup,
    108     bcm_xgs3_l3_intf_del,
    109     bcm_xgs3_l3_intf_del_all,
    110 
    111     bcm_xgs3_l3_get,
    112     bcm_xgs3_l3_add,
    113     bcm_xgs3_l3_del,
    114     bcm_xgs3_l3_del_prefix,
    115     bcm_td2_l3_del_intf,
    116     bcm_xgs3_l3_del_all,
    117     bcm_td2_l3_replace,
    118     bcm_xgs3_l3_age,
    119     bcm_xgs3_l3_ip4_traverse,
    120 
    121     bcm_xgs3_l3_get,
    122     bcm_xgs3_l3_add,
    123     bcm_xgs3_l3_del,
    124     bcm_xgs3_l3_del_prefix,
    125     bcm_td2_l3_replace,
    126     bcm_xgs3_l3_ip6_traverse,
    127 
    128     bcm_xgs3_defip_get,
    129     bcm_xgs3_defip_ecmp_get_all,
    130     bcm_xgs3_defip_add,
    131     bcm_xgs3_defip_del,
    132     bcm_xgs3_defip_del_intf,
    133     bcm_xgs3_defip_del_all,
    134     bcm_xgs3_defip_age,
    135     bcm_xgs3_defip_ip4_traverse,
    136 
    137     bcm_xgs3_defip_get,
    138     bcm_xgs3_defip_ecmp_get_all,
    139     bcm_xgs3_defip_add,
    140     bcm_xgs3_defip_del,
    141     bcm_xgs3_defip_ip6_traverse,
    142 
    143     bcm_td2_l3_conflict_get,
    144     bcm_xgs3_l3_info,
    145 
    146     bcm_tr_ipmc_init,
    147     bcm_tr_ipmc_detach,
    148     bcm_tr_ipmc_enable,
    149     bcm_tr_ipmc_src_port_check,
    150     bcm_tr_ipmc_src_ip_search,
    151     bcm_tr_ipmc_add,
    152     bcm_tr_ipmc_delete,
    153     bcm_tr_ipmc_delete_all,
    154     bcm_tr_ipmc_lookup,
    155     bcm_tr_ipmc_get,
    156     bcm_tr_ipmc_put,
    157     bcm_tr_ipmc_egress_port_get,
    158     bcm_tr_ipmc_egress_port_set,
    159     bcm_th_ipmc_repl_init,
    160     bcm_th_ipmc_repl_detach,
    161     bcm_th_ipmc_repl_get,
    162     bcm_th_ipmc_repl_add,
    163     bcm_th_ipmc_repl_delete,
    164     bcm_th_ipmc_repl_delete_all,
    165     bcm_th_ipmc_egress_intf_add,
    166     bcm_th_ipmc_egress_intf_delete,
    167     bcm_tr_ipmc_age,
    168     bcm_tr_ipmc_traverse,
    169 #endif /* INCLUDE_L3 */
    170 
    171 };
    172 #else  /* BCM_TOMAHAWK_SUPPORT */
    173 int bcm_esw_tomahawk_mbcm_not_empty;
    174 #endif /* BCM_TOMAHAWK_SUPPORT */