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


      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/debug.h>
     11 #include <bcm_int/esw/mbcm.h>
     12 #include <bcm_int/esw/hercules.h>
     13 #include <bcm_int/esw/firebolt.h>
     14 #include <bcm_int/esw/bradley.h>
     15 #include <bcm_int/esw/humv.h>
     16 #include <bcm_int/esw/triumph.h>
     17 #include <bcm_int/esw/scorpion.h>
     18 #include <bcm/error.h>
     19 
     20 mbcm_functions_t mbcm_conqueror_driver = {
     21     /*  L2 functions */
     22     bcm_hercules_l2_init,
     23     bcm_hercules_l2_term,
     24     bcm_hercules_l2_addr_get,
     25     bcm_hercules_l2_addr_add,
     26     bcm_hercules_l2_addr_delete,
     27     bcm_hercules_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     /*  Firebolt 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_hercules_mcast_addr_add,
     58     bcm_hercules_mcast_addr_remove,
     59     bcm_hercules_mcast_port_get,
     60     bcm_humv_mcast_init,
     61     _bcm_humv_mcast_detach,
     62     bcm_hercules_mcast_addr_add_w_l2mcindex,
     63     bcm_hercules_mcast_addr_remove_w_l2mcindex,
     64     bcm_hercules_mcast_port_add,
     65     bcm_hercules_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_sc_cosq_port_bandwidth_set,
     78     bcm_sc_cosq_port_bandwidth_get,
     79     bcm_sc_cosq_discard_set,
     80     bcm_sc_cosq_discard_get,
     81     bcm_sc_cosq_discard_port_set,
     82     bcm_sc_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_hercules_port_rate_egress_set,
     92     bcm_hercules_port_rate_egress_get,
     93 
     94 #ifdef INCLUDE_L3
     95     /* L3 functions */
     96     bcm_hercules_l3_tables_init,
     97     bcm_hercules_l3_tables_cleanup,
     98     bcm_hercules_l3_enable,
     99     bcm_hercules_l3_intf_get,
    100     bcm_hercules_l3_intf_get_by_vid,
    101     bcm_hercules_l3_intf_create,
    102     bcm_hercules_l3_intf_id_create,
    103     bcm_hercules_l3_intf_lookup,
    104     bcm_hercules_l3_intf_del,
    105     bcm_hercules_l3_intf_del_all,
    106 
    107     bcm_hercules_l3_get,
    108     bcm_hercules_l3_add,
    109     bcm_hercules_l3_del,
    110     bcm_hercules_l3_del_prefix,
    111     bcm_hercules_l3_del_intf,
    112     bcm_hercules_l3_del_all,
    113     bcm_hercules_l3_replace,
    114     bcm_hercules_l3_age,
    115     bcm_hercules_l3_traverse,
    116 
    117     bcm_hercules_l3_ip6_get,
    118     bcm_hercules_l3_ip6_add,
    119     bcm_hercules_l3_ip6_del,
    120     bcm_hercules_l3_ip6_del_prefix,
    121     bcm_hercules_l3_ip6_replace,
    122     bcm_hercules_l3_ip6_traverse,
    123 
    124     bcm_hercules_defip_cfg_get,
    125     bcm_hercules_defip_ecmp_get_all,
    126     bcm_hercules_defip_add,
    127     bcm_hercules_defip_del,
    128     bcm_hercules_defip_del_intf,
    129     bcm_hercules_defip_del_all,
    130     bcm_hercules_defip_age,
    131     bcm_hercules_defip_traverse,
    132 
    133     bcm_hercules_ip6_defip_cfg_get,
    134     bcm_hercules_ip6_defip_ecmp_get_all,
    135     bcm_hercules_ip6_defip_add,
    136     bcm_hercules_ip6_defip_del,
    137     bcm_hercules_ip6_defip_traverse,
    138 
    139     bcm_hercules_l3_conflict_get,
    140     bcm_hercules_l3_info,
    141 
    142     /* IPMC functions */
    143     bcm_hercules_ipmc_init,
    144     bcm_hercules_ipmc_detach,
    145     bcm_hercules_ipmc_enable,
    146     bcm_hercules_ipmc_src_port_check,
    147     bcm_hercules_ipmc_src_ip_search,
    148     bcm_hercules_ipmc_add,
    149     bcm_hercules_ipmc_delete,
    150     bcm_hercules_ipmc_delete_all,
    151     bcm_hercules_ipmc_lookup,
    152     bcm_hercules_ipmc_get,
    153     bcm_hercules_ipmc_put,
    154     bcm_hercules_ipmc_egress_port_get,
    155     bcm_hercules_ipmc_egress_port_set,    
    156     bcm_hercules_ipmc_repl_init,
    157     bcm_hercules_ipmc_repl_detach,
    158     bcm_hercules_ipmc_repl_get,
    159     bcm_hercules_ipmc_repl_add,
    160     bcm_hercules_ipmc_repl_delete,
    161     bcm_hercules_ipmc_repl_delete_all,
    162     bcm_hercules_ipmc_egress_intf_add,
    163     bcm_hercules_ipmc_egress_intf_delete,
    164     bcm_hercules_ipmc_age,
    165     bcm_hercules_ipmc_traverse,
    166 #endif /* INCLUDE_L3 */
    167 };