]>
git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/dpdk/drivers/net/dpaa2/mc/fsl_dprtc.h
1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
7 /** @addtogroup dprtc Data Path Real Time Counter API
8 * Contains initialization APIs and runtime control APIs for RTC
14 int dprtc_open(struct fsl_mc_io
*mc_io
,
19 int dprtc_close(struct fsl_mc_io
*mc_io
,
24 * struct dprtc_cfg - Structure representing DPRTC configuration
25 * @options: place holder
31 int dprtc_create(struct fsl_mc_io
*mc_io
,
34 const struct dprtc_cfg
*cfg
,
37 int dprtc_destroy(struct fsl_mc_io
*mc_io
,
42 int dprtc_enable(struct fsl_mc_io
*mc_io
,
46 int dprtc_disable(struct fsl_mc_io
*mc_io
,
50 int dprtc_is_enabled(struct fsl_mc_io
*mc_io
,
55 int dprtc_reset(struct fsl_mc_io
*mc_io
,
59 int dprtc_set_clock_offset(struct fsl_mc_io
*mc_io
,
64 int dprtc_set_freq_compensation(struct fsl_mc_io
*mc_io
,
67 uint32_t freq_compensation
);
69 int dprtc_get_freq_compensation(struct fsl_mc_io
*mc_io
,
72 uint32_t *freq_compensation
);
74 int dprtc_get_time(struct fsl_mc_io
*mc_io
,
79 int dprtc_set_time(struct fsl_mc_io
*mc_io
,
84 int dprtc_set_alarm(struct fsl_mc_io
*mc_io
,
90 * struct dprtc_attr - Structure representing DPRTC attributes
91 * @id: DPRTC object ID
99 int dprtc_get_attributes(struct fsl_mc_io
*mc_io
,
102 struct dprtc_attr
*attr
);
104 int dprtc_get_api_version(struct fsl_mc_io
*mc_io
,
107 uint16_t *minor_ver
);
109 #endif /* __FSL_DPRTC_H */