History

ptp_qoriq: make ptp operations global

This patch is to make functions of ptp operations global, so that ENETC PTP driver which is a PCI driver for same 1588 timer IP block could reuse them.

Yangbo Lu committed 7 years ago

Commit 73356e41 parent 1e562c82 files · +25 −11Browse files

Showing the changes to include/linux/fsl (1 of 2 files). Show all

Unified · Split

include/linux/fsl/ptp_qoriq.h+9−0
@@ -7,6 +7,7 @@ · 6 unmodified lines
7#define __PTP_QORIQ_H__7#define __PTP_QORIQ_H__
8 8
9#include <linux/io.h>9#include <linux/io.h>
10#include <linux/interrupt.h>
10#include <linux/ptp_clock_kernel.h>11#include <linux/ptp_clock_kernel.h>
11 12
12/*13/*
@@ -171,6 +172,14 @@ static inline void qoriq_write(unsigned __iomem *addr, u32 val) · 158 unmodified lines
171 iowrite32be(val, addr);172 iowrite32be(val, addr);
172}173}
173 174
175irqreturn_t ptp_qoriq_isr(int irq, void *priv);
176int ptp_qoriq_adjfine(struct ptp_clock_info *ptp, long scaled_ppm);
177int ptp_qoriq_adjtime(struct ptp_clock_info *ptp, s64 delta);
178int ptp_qoriq_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts);
179int ptp_qoriq_settime(struct ptp_clock_info *ptp,
180 const struct timespec64 *ts);
181int ptp_qoriq_enable(struct ptp_clock_info *ptp,
182 struct ptp_clock_request *rq, int on);
174#ifdef CONFIG_DEBUG_FS183#ifdef CONFIG_DEBUG_FS
175void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq);184void ptp_qoriq_create_debugfs(struct ptp_qoriq *ptp_qoriq);
176void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq);185void ptp_qoriq_remove_debugfs(struct ptp_qoriq *ptp_qoriq);