1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2019 - 2025 Beijing WangXun Technology Co., Ltd. */
3 
4 #ifndef _WX_PTP_H_
5 #define _WX_PTP_H_
6 
7 void wx_ptp_check_pps_event(struct wx *wx);
8 void wx_ptp_reset_cyclecounter(struct wx *wx);
9 void wx_ptp_reset(struct wx *wx);
10 void wx_ptp_init(struct wx *wx);
11 void wx_ptp_suspend(struct wx *wx);
12 void wx_ptp_stop(struct wx *wx);
13 void wx_ptp_rx_hwtstamp(struct wx *wx, struct sk_buff *skb);
14 int wx_hwtstamp_get(struct net_device *dev,
15 		    struct kernel_hwtstamp_config *cfg);
16 int wx_hwtstamp_set(struct net_device *dev,
17 		    struct kernel_hwtstamp_config *cfg,
18 		    struct netlink_ext_ack *extack);
19 
20 #endif /* _WX_PTP_H_ */
21