| 1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
| 2 |
/* Renesas R-Car Gen4 gPTP device driver |
| 3 |
* |
| 4 |
* Copyright (C) 2022 Renesas Electronics Corporation |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef __RCAR_GEN4_PTP_H__ |
| 8 |
#define __RCAR_GEN4_PTP_H__ |
| 9 |
|
| 10 |
struct rcar_gen4_ptp_private; |
| 11 |
|
| 12 |
int rcar_gen4_ptp_register(struct rcar_gen4_ptp_private *ptp_priv, u32 rate); |
| 13 |
int rcar_gen4_ptp_unregister(struct rcar_gen4_ptp_private *ptp_priv); |
| 14 |
struct rcar_gen4_ptp_private *rcar_gen4_ptp_alloc(struct platform_device *pdev, |
| 15 |
void __iomem *addr); |
| 16 |
|
| 17 |
int rcar_gen4_ptp_clock_index(struct rcar_gen4_ptp_private *priv); |
| 18 |
void rcar_gen4_ptp_gettime64(struct rcar_gen4_ptp_private *priv, |
| 19 |
struct timespec64 *ts); |
| 20 |
|
| 21 |
#endif /* #ifndef __RCAR_GEN4_PTP_H__ */ |