mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
15b49f360c
This patch is to removed unused code for dprtc. This code will be re-added along with more features of dpaa2-ptp added. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
46 lines
945 B
C
46 lines
945 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright 2013-2016 Freescale Semiconductor Inc.
|
|
* Copyright 2016-2018 NXP
|
|
*/
|
|
|
|
#ifndef __FSL_DPRTC_H
|
|
#define __FSL_DPRTC_H
|
|
|
|
/* Data Path Real Time Counter API
|
|
* Contains initialization APIs and runtime control APIs for RTC
|
|
*/
|
|
|
|
struct fsl_mc_io;
|
|
|
|
int dprtc_open(struct fsl_mc_io *mc_io,
|
|
u32 cmd_flags,
|
|
int dprtc_id,
|
|
u16 *token);
|
|
|
|
int dprtc_close(struct fsl_mc_io *mc_io,
|
|
u32 cmd_flags,
|
|
u16 token);
|
|
|
|
int dprtc_set_freq_compensation(struct fsl_mc_io *mc_io,
|
|
u32 cmd_flags,
|
|
u16 token,
|
|
u32 freq_compensation);
|
|
|
|
int dprtc_get_freq_compensation(struct fsl_mc_io *mc_io,
|
|
u32 cmd_flags,
|
|
u16 token,
|
|
u32 *freq_compensation);
|
|
|
|
int dprtc_get_time(struct fsl_mc_io *mc_io,
|
|
u32 cmd_flags,
|
|
u16 token,
|
|
uint64_t *time);
|
|
|
|
int dprtc_set_time(struct fsl_mc_io *mc_io,
|
|
u32 cmd_flags,
|
|
u16 token,
|
|
uint64_t time);
|
|
|
|
#endif /* __FSL_DPRTC_H */
|