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_modid_group_map.h (1247B)


      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 MODID GROUP MAP H
      9  */
     10  
     11 #ifndef _BCM_DNXF_MODID_GROUP_MAP_H_
     12 #define _BCM_DNXF_MODID_GROUP_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 
     20 #include <soc/dnxf/cmn/dnxf_drv.h>
     21 #include <soc/dnxf/cmn/dnxf_defs.h>
     22 
     23 #define DNXF_MODID_GROUP_MAP_ROWS(unit) (SOC_DNXF_MODID_GROUP_NOF(unit))
     24 
     25 #define DNXF_MODID_GROUP_IS_LEGAL(unit, group) (group < DNXF_MODID_GROUP_MAP_ROWS(unit))
     26 #define DNXF_MODID_GROUP_INVALID -1
     27 
     28 typedef  soc_dnxf_modid_group_map_t _bcm_dnxf_modid_group_map_t;
     29 
     30 int bcm_dnxf_modid_group_map_clear(int unit);
     31 int bcm_dnxf_modid_group_map_clear_group(int unit, bcm_module_t group);
     32 int bcm_dnxf_modid_group_map_add(int unit, bcm_module_t group, bcm_module_t module); 
     33 int bcm_dnxf_modid_group_map_get_list(int unit, bcm_module_t group, int modid_max_count, bcm_module_t *moidid_array, int *modid_count);
     34 int bcm_dnxf_modid_group_map_get_group(int unit, bcm_module_t module, bcm_module_t* group);
     35 
     36 
     37 #endif /*_BCM_DNXF_MODID_GROUP_MAP_H_*/