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

extender.h (1482B)


      1 /** \file bcm_int/dnx/extender/extender.h
      2  *
      3  *  Internal DNX EXTENDER APIs, which are used for
      4  *  Set/Get/Delete operation of extender entity.
      5  */
      6 /*
      7  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      8  * 
      9  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
     10  *  All Rights Reserved.
     11  */
     12 #include <bcm_int/dnx_dispatch.h>
     13 #ifndef EXTENDER_H_INCLUDED
     14 /* { */
     15 #define EXTENDER_H_INCLUDED
     16 
     17 #ifndef BCM_DNX_SUPPORT
     18 #error "This file is for use by DNX (JR2) family only!"
     19 #endif
     20 
     21 /*
     22  * DEFINEs
     23  * {
     24  */
     25 
     26 /*
     27  * }
     28  */
     29 /*
     30  * MACROs
     31  * {
     32  */
     33 
     34 /*
     35  * }
     36  */
     37 
     38 /*
     39  * DECLARATIONs
     40  * {
     41  */
     42 
     43 /**
     44  * \brief - Initialize Extender module. \n
     45  * 1. Initiate the HW table for E-TAG identification and TAG swap parameter..
     46  * 2. Allocate a SIT profile for 802.1BR, update the relevant HW table
     47  *
     48  * \param [in] unit - Unit-ID
     49  *
     50  * \return
     51  *   \retval Zero if no error was detected
     52  *   \retval Negative if error was detected. See \ref shr_error_e
     53  *
     54  * \remark
     55  *   * None
     56  * \see
     57  *  * None
     58  */
     59 shr_error_e dnx_extender_init(
     60     int unit);
     61 
     62 /**
     63  * \brief - Deinitialize Extender module. \n
     64  * \param [in] unit - Unit-ID
     65  *
     66  * \return
     67  *   \retval Zero if no error was detected
     68  *   \retval Negative if error was detected. See \ref shr_error_e
     69  *
     70  * \remark
     71  *  Doing nothing at the moment.
     72  * \see
     73  *   * None
     74  */
     75 shr_error_e dnx_extender_deinit(
     76     int unit);
     77 
     78 /*
     79  * }
     80  */
     81 
     82 #endif /* EXTENDER_H_INCLUDED */