algo_ptp.h (1225B)
1 /** 2 * \file algo_ptp.h Internal DNX Managment APIs 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 6 */ 7 8 #ifndef ALGO_PTP_H_INCLUDED 9 /* 10 * { 11 */ 12 #define ALGO_PTP_H_INCLUDED 13 14 #include <shared/shrextend/shrextend_debug.h> 15 #include <bcm_int/dnx/algo/template_mngr/template_manager_types.h> 16 17 #ifndef BCM_DNX_SUPPORT 18 #error "This file is for use by DNX (JR2) family only!" 19 #endif 20 21 /** template manager defines */ 22 #define DNX_PTP_PORT_TEMPLATE_NAME "ptp port profile" 23 24 /** 25 * \brief 26 * callback print function for template manager. print the ptp port profile 27 * \param [in] unit -unit id 28 * \param [in] data -const pointer to profile data 29 * \return 30 * void 31 * \remark 32 * NONE 33 * \see 34 * NONE 35 */ 36 void dnx_algo_ptp_tm_port_profile_print_cb( 37 int unit, 38 const void *data); 39 40 /** 41 * \brief - Init function, init all ptp resources 42 * 43 * \param [in] unit - Number of hardware unit used. 44 * 45 * \return 46 * shr_error_e 47 * 48 * \remark 49 * * None 50 * \see 51 * * None 52 */ 53 shr_error_e dnx_algo_ptp_init( 54 int unit); 55 56 /* 57 * } 58 */ 59 #endif /* ALGO_PTP_H_INCLUDED */