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

compat_655.h (2206B)


      1 /*
      2  * $Id: compat_655.h,v 1.1 2016/10/20
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      6  *
      7  * RPC Compatibility with sdk-6.5.5 routines
      8  */
      9 
     10 #ifndef _COMPAT_655_H_
     11 #define _COMPAT_655_H_
     12 
     13 #ifdef	BCM_RPC_SUPPORT
     14 
     15 #include <bcm/types.h>
     16 #include <bcm/trunk.h>
     17 #include <bcm/field.h>
     18 #include <bcm_int/compat/compat_6516.h>
     19 
     20 typedef struct bcm_compat655_trunk_member_s {
     21     uint32 flags;                   /* BCM_TRUNK_MEMBER_xxx */
     22     bcm_gport_t gport;              /* Trunk member GPORT ID. */
     23     int dynamic_scaling_factor;     /* Dynamic load balancing threshold scaling
     24                                        factor. */
     25     int dynamic_load_weight;        /* Relative weight of historical load in
     26                                        determining member quality. */
     27 } bcm_compat655_trunk_member_t;
     28 
     29 extern int bcm_compat655_trunk_set(
     30     int unit,
     31     bcm_trunk_t tid,
     32     bcm_compat6516_trunk_info_t *trunk_info,
     33     int member_count,
     34     bcm_compat655_trunk_member_t *member_array);
     35 
     36 extern int bcm_compat655_trunk_get(
     37     int unit,
     38     bcm_trunk_t tid,
     39     bcm_compat6516_trunk_info_t *t_data,
     40     int member_max,
     41     bcm_compat655_trunk_member_t *member_array,
     42     int *member_count);
     43 
     44 #define BCM_COMPAT655_FIELD_QUALIFY_CNT     (609)
     45 #define BCM_COMPAT655_FIELD_USER_NUM_UDFS   (93)
     46 
     47 typedef struct bcm_compat655_field_qset_s {
     48     SHR_BITDCL w[_SHR_BITDCLSIZE(BCM_COMPAT655_FIELD_QUALIFY_CNT +
     49                                  BCM_COMPAT655_FIELD_USER_NUM_UDFS)];
     50     SHR_BITDCL udf_map[_SHR_BITDCLSIZE(BCM_COMPAT655_FIELD_USER_NUM_UDFS)];
     51 } bcm_compat655_field_qset_t;
     52 
     53 extern int bcm_compat655_field_group_create(
     54     int unit,
     55     bcm_compat655_field_qset_t qset,
     56     int pri,
     57     bcm_field_group_t *group);
     58 
     59 extern int bcm_compat655_field_group_create_id(
     60     int unit,
     61     bcm_compat655_field_qset_t qset,
     62     int pri,
     63     bcm_field_group_t group);
     64 
     65 extern int bcm_compat655_field_qset_data_qualifier_add(
     66     int unit,
     67     bcm_compat655_field_qset_t *qset,
     68     int qual_id);
     69 
     70 #endif	/* BCM_RPC_SUPPORT */
     71 
     72 #endif	/* !_COMPAT_655_H */