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

family.c (617B)


      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:        family.c
      8  * Purpose:     Implementation of bcm family management
      9  */
     10 
     11 #include <bcm_int/common/family.h>
     12 #include <bcm/types.h>
     13 #include <bcm/error.h>
     14 
     15 static bcm_chip_family_t _family[BCM_MAX_NUM_UNITS];
     16 
     17 int 
     18 bcm_chip_family_set(int unit, bcm_chip_family_t f)
     19 {
     20     _family[unit] = f; 
     21     return BCM_E_NONE;
     22 }
     23 
     24 bcm_chip_family_t
     25 bcm_chip_family_get(int unit)
     26 {
     27     return _family[unit]; 
     28 }
     29