1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Mock-up PTP Hardware Clock driver for virtual network devices
14 #if IS_ENABLED(CONFIG_PTP_1588_CLOCK_MOCK)
16 struct mock_phc
*mock_phc_create(struct device
*dev
);
17 void mock_phc_destroy(struct mock_phc
*phc
);
18 int mock_phc_index(struct mock_phc
*phc
);
22 static inline struct mock_phc
*mock_phc_create(struct device
*dev
)
27 static inline void mock_phc_destroy(struct mock_phc
*phc
)
31 static inline int mock_phc_index(struct mock_phc
*phc
)
38 #endif /* _PTP_MOCK_H_ */