tx.h (1146B)
1 /** 2 * \file bcm_int/dnx/tx/tx.h 3 * 4 * Internal DNX TX APIs 5 PIs This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 6 PIs 7 PIs Copyright 2007-2020 Broadcom Inc. All rights reserved. 8 */ 9 10 #ifndef _TX_API_INCLUDED__ 11 /* 12 * { 13 */ 14 #define _TX_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 * \brief 22 * Initialize BCM TX API 23 * \par DIRECT INPUT: 24 * \param [in] unit - Unit ID 25 * \par INDIRECT INPUT: 26 * * None 27 * \par DIRECT OUTPUT: 28 * shr_error_e - Error Type 29 * \par INDIRECT OUTPUT: 30 * * None 31 * \remark 32 * Please see bcm_common_tx_init 33 * \see 34 * * None 35 */ 36 shr_error_e dnx_tx_init( 37 int unit); 38 39 /** 40 * \brief 41 * De-initialize BCM TX API 42 * \par DIRECT INPUT: 43 * \param [in] unit - Unit ID 44 * \par INDIRECT INPUT: 45 * * None 46 * \par DIRECT OUTPUT: 47 * shr_error_e - Error Type 48 * \par INDIRECT OUTPUT: 49 * * None 50 * \remark 51 * free resource allocated in bcm_tx_init 52 * \see 53 * * None 54 */ 55 shr_error_e dnx_tx_deinit( 56 int unit); 57 58 /* 59 * } 60 */ 61 #endif/*_TX_API_INCLUDED__*/