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

timesync.h (1374B)


      1 /*
      2  * 
      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  * Timesync Internal functions and definitions
      8  */
      9 
     10 #ifndef __BCM_INT_TIMESYNC_H__
     11 #define __BCM_INT_TIMESYNC_H__
     12 
     13 #include <bcm/port.h>
     14 
     15 extern int _bcm_esw_port_timesync_profile_init(int unit);
     16 
     17 extern int _bcm_esw_port_timesync_profile_delete(int unit);
     18 
     19 extern int
     20 _bcm_esw_port_timesync_config_set(int unit, bcm_port_t port, int config_count,
     21                              bcm_port_timesync_config_t *config_array, int is_remote_port);
     22 
     23 extern int
     24 _bcm_esw_port_timesync_config_get(int unit, bcm_port_t port, int array_size,
     25                              bcm_port_timesync_config_t *config_array, 
     26                              int *array_count, int is_remote_port);
     27 extern int
     28 _bcm_esw_port_timesync_timestamping_mode_set(int unit, bcm_port_t port,
     29                     bcm_switch_timesync_timestamping_mode_t timestamping_mode);
     30 
     31 extern int
     32 _bcm_esw_port_timesync_timestamping_mode_get(int unit, bcm_port_t port,
     33                     bcm_switch_timesync_timestamping_mode_t *timestamping_mode);
     34 extern int
     35 _bcm_esw_port_timesync_tx_info_get(int unit, bcm_port_t port,
     36                     bcm_port_timesync_tx_info_t *tx_info);
     37 
     38 #endif /* !__BCM_INT_TIMESYNC_H__ */