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

vsi.h (992B)


      1 /*! \file bcm_int/dnx/vsi/vsi.h
      2  *
      3  * Internal DNX VSI APIs
      4  *
      5  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      6  * 
      7  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      8  */
      9 
     10 #ifndef _VSI_API_INCLUDED__
     11 /*
     12  * {
     13  */
     14 #define _VSI_API_INCLUDED__
     15 
     16 #ifndef BCM_DNX_SUPPORT
     17 #error "This file is for use by DNX (JR2) family only!"
     18 #endif
     19 
     20 /*
     21  * Include files
     22  * {
     23  */
     24 #include <soc/dnx/dnx_data/auto_generated/dnx_data_l2.h>
     25 
     26 /*
     27  * }
     28  */
     29 
     30 /*
     31  * DEFINEs
     32  * {
     33  */
     34 
     35 /** Default vsi value*/
     36 #define DNX_VSI_DEFAULT (0)
     37 
     38 /*
     39  * }
     40  */
     41 /*
     42  * MACROs
     43  * {
     44  */
     45 
     46 /*
     47  * }
     48  */
     49 
     50 /*
     51  * { 
     52  */
     53 
     54 /**
     55  * \brief - Retrieve the maximum number of VSIs in the system
     56  *
     57  * \param [in] unit - unit id
     58  * \param [out] nof_vsis - number of vsis
     59  *
     60  * \return
     61  *   shr_error_e
     62  *
     63  * \remark
     64  *   * None
     65  * \see
     66  *   * None
     67  */
     68 shr_error_e dnx_vsi_count_get(
     69     int unit,
     70     int *nof_vsis);
     71 
     72 /*
     73  * } 
     74  */
     75 #endif/*_VSI_API_INCLUDED__*/