xref: /kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/ptp.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/* Marvell PTP driver
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (C) 2020 Marvell International Ltd.
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifndef PTP_H
88c2ecf20Sopenharmony_ci#define PTP_H
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <linux/timecounter.h>
118c2ecf20Sopenharmony_ci#include <linux/time64.h>
128c2ecf20Sopenharmony_ci#include <linux/spinlock.h>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_cistruct ptp {
158c2ecf20Sopenharmony_ci	struct pci_dev *pdev;
168c2ecf20Sopenharmony_ci	void __iomem *reg_base;
178c2ecf20Sopenharmony_ci	u32 clock_rate;
188c2ecf20Sopenharmony_ci};
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_cistruct ptp *ptp_get(void);
218c2ecf20Sopenharmony_civoid ptp_put(struct ptp *ptp);
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciextern struct pci_driver ptp_driver;
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif
26

Indexes created Thu Nov 07 10:32:03 CST 2024