File Index
Files and directories
Sign in
FILE

rcar_gen4_ptp.h

File preview with syntax highlighting.

linux-6.19.14/drivers/net/ethernet/renesas/rcar_gen4_ptp.h C
 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#include <linux/ptp_clock_kernel.h>
11
12struct rcar_gen4_ptp_private {
13	void __iomem *addr;
14	struct ptp_clock *clock;
15	struct ptp_clock_info info;
16	spinlock_t lock;	/* For multiple registers access */
17	s64 default_addend;
18	bool initialized;
19};
20
21int rcar_gen4_ptp_register(struct rcar_gen4_ptp_private *ptp_priv, u32 rate);
22int rcar_gen4_ptp_unregister(struct rcar_gen4_ptp_private *ptp_priv);
23struct rcar_gen4_ptp_private *rcar_gen4_ptp_alloc(struct platform_device *pdev);
24
25#endif	/* #ifndef __RCAR_GEN4_PTP_H__ */
~/ Read-only file preview.