time-mbox.h (1496B)
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-2019 Broadcom Inc. All rights reserved. 6 * 7 * This file contains BroadSync Time Interface definitions internal to the BCM library. 8 */ 9 10 #ifndef _BCM_INT_TIME_MBOX_H 11 #define _BCM_INT_TIME_MBOX_H 12 13 #include <bcm/time.h> 14 15 int _bcm_time_bs_init(int unit, unsigned isOutput); 16 int _bcm_time_bs_frequency_offset_set(int unit, bcm_time_spec_t new_offset); 17 int _bcm_time_bs_phase_offset_set(int unit, bcm_time_spec_t new_offset); 18 int _bcm_time_bs_ntp_offset_set(int unit, bcm_time_spec_t new_offset); 19 int _bcm_time_bs_debug_1pps_set(int unit, uint8 enableOutput); 20 int _bcm_time_bs_status_get(int unit, int *lock_status); 21 int _bcm_time_bs_debug(uint32 flags); 22 int _bcm_time_bs_log_configure(int unit, 23 uint32 debug_mask, uint64 udp_log_mask, 24 bcm_mac_t src_mac, bcm_mac_t dest_mac, 25 uint16 tpid, uint16 vid, uint8 ttl, 26 bcm_ip_t src_addr, bcm_ip_t dest_addr, 27 uint16 udp_port); 28 int _bcm_time_bs_log_configure_get(int unit, bcm_time_bs_log_cfg_t *bs_log_cfg); 29 int _bcm_time_bs_time_get(int unit, bcm_time_spec_t* bs_time); /* get broadsync time */ 30 int _bcm_time_bs_time_set(int unit, bcm_time_spec_t bs_time); /* set UTC time or system time for broadsync */ 31 32 #endif /* _BCM_INT_TIME_MBOX_H */ 33