1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /* TI K3 AM65 CPTS driver interface
4 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com
10 #include <linux/device.h>
15 #if IS_ENABLED(CONFIG_TI_K3_AM65_CPTS)
16 struct am65_cpts *am65_cpts_create(struct device *dev, void __iomem *regs,
17 struct device_node *node);
18 int am65_cpts_phc_index(struct am65_cpts *cpts);
19 void am65_cpts_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb);
20 void am65_cpts_prep_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb);
21 void am65_cpts_rx_enable(struct am65_cpts *cpts, bool en);
23 static inline struct am65_cpts *am65_cpts_create(struct device *dev,
25 struct device_node *node)
27 return ERR_PTR(-EOPNOTSUPP);
30 static inline int am65_cpts_phc_index(struct am65_cpts *cpts)
35 static inline void am65_cpts_tx_timestamp(struct am65_cpts *cpts,
40 static inline void am65_cpts_prep_tx_timestamp(struct am65_cpts *cpts,
45 static inline void am65_cpts_rx_enable(struct am65_cpts *cpts, bool en)
50 #endif /* K3_CPTS_H_ */