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

l2_addr.h (1519B)


      1 /**
      2  * \file bcm_int/dnx/l2/l2_addr.h
      3  * Internal DNX L2 APIs 
      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 
      9 #ifndef L2_ADDR_H_INCLUDED
     10 /*
     11  * {
     12  */
     13 #define L2_ADDR_H_INCLUDED
     14 
     15 #ifndef BCM_DNX_SUPPORT
     16 #error "This file is for use by DNX (JR2) family only!"
     17 #endif
     18 
     19 /*
     20  * Include files.
     21  * {
     22  */
     23 #include <shared/bslenum.h>
     24 
     25 #include <bcm/l2.h>
     26 #include <bcm/error.h>
     27 #include <bcm/types.h>
     28 /*
     29  * }
     30  */
     31 
     32 /*
     33  * DEFINES
     34  * {
     35  */
     36 
     37 /*
     38  * }
     39  */
     40 
     41 /*
     42   * Internal functions.
     43   * {
     44   */
     45 
     46 /**
     47  * \brief - Get an handle to a FWD_MACT table. The handle should have one entry fetched in it. 
     48  * The function is retrieving the entry and parse it to l2addr struct.
     49  * 
     50  * \param [in] unit - unit id.
     51  * \param [in] entry_handle_id - handle to FWD_MACT with one entry fetched. 
     52  * \param [in] table_id - table ID associated with the entry_handle_id.
     53  * \param [in] l2addr - bcm_l2_addr_t struct that will be filled by the function.
     54  *   
     55  * \return
     56  *   shr_error_e 
     57  *   
     58  * \remark
     59  *   * None
     60  * \see
     61  *   * None
     62  */
     63 shr_error_e dnx_l2_addr_from_dbal_to_struct(
     64     int unit,
     65     uint32 entry_handle_id,
     66     dbal_tables_e table_id,
     67     bcm_l2_addr_t * l2addr);
     68 
     69 shr_error_e dnx_convert_l2_addr_to_dest(
     70     int unit,
     71     bcm_l2_addr_t * l2addr,
     72     uint32 *destination,
     73     uint32 *outlif,
     74     uint32 *result_type,
     75     uint32 *eei);
     76 /*
     77  * }
     78  */
     79 #endif /* L2_ADDR_H_INCLUDED */