1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Marvell PTP driver
3  *
4  * Copyright (C) 2020 Marvell International Ltd.
5  */
6 
7 #ifndef PTP_H
8 #define PTP_H
9 
10 #include <linux/timecounter.h>
11 #include <linux/time64.h>
12 #include <linux/spinlock.h>
13 
14 struct ptp {
15 	struct pci_dev *pdev;
16 	void __iomem *reg_base;
17 	u32 clock_rate;
18 };
19 
20 struct ptp *ptp_get(void);
21 void ptp_put(struct ptp *ptp);
22 
23 extern struct pci_driver ptp_driver;
24 
25 #endif
26