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

dnxf_multicast_id_map.h (949B)


      1 /*
      2  * 
      3  *
      4  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      5  * 
      6  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      7  *
      8  * DNXF MULTICAST ID MAP H
      9  */
     10  
     11 #ifndef _BCM_DNXF_MULTICAST_ID_MAP_H_
     12 #define _BCM_DNXF_MULTICAST_ID_MAP_H_
     13 
     14 #ifndef BCM_DNXF_SUPPORT 
     15 #error "This file is for use by DNXF (Ramon) family only!" 
     16 #endif
     17 
     18 #include <bcm/types.h>
     19 #include <soc/dnxf/cmn/dnxf_defs.h>
     20 
     21 int bcm_dnxf_multicst_id_map_init(int unit, soc_dnxf_multicast_table_mode_t mc_mode);
     22 int bcm_dnxf_multicst_id_map_clear_id(int unit, int id);
     23 int bcm_dnxf_multicst_id_map_mark_id(int unit, int id);
     24 int bcm_dnxf_multicst_id_map_is_legal_id(int unit, bcm_multicast_t id, int* is_legal);
     25 int bcm_dnxf_multicst_id_map_is_free_id(int unit, int id, int* is_free);
     26 int bcm_dnxf_multicst_id_map_get_free_id(int unit, bcm_multicast_t* id);
     27 
     28 
     29 #endif /*_BCM_DNXF_MULTICAST_ID_MAP_H_*/