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>
41 lines
891 B
C
41 lines
891 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright 2013-2016 Freescale Semiconductor Inc.
|
|
* Copyright 2016-2018 NXP
|
|
*/
|
|
|
|
#ifndef _FSL_DPRTC_CMD_H
|
|
#define _FSL_DPRTC_CMD_H
|
|
|
|
/* Command versioning */
|
|
#define DPRTC_CMD_BASE_VERSION 1
|
|
#define DPRTC_CMD_ID_OFFSET 4
|
|
|
|
#define DPRTC_CMD(id) (((id) << DPRTC_CMD_ID_OFFSET) | DPRTC_CMD_BASE_VERSION)
|
|
|
|
/* Command IDs */
|
|
#define DPRTC_CMDID_CLOSE DPRTC_CMD(0x800)
|
|
#define DPRTC_CMDID_OPEN DPRTC_CMD(0x810)
|
|
|
|
#define DPRTC_CMDID_SET_FREQ_COMPENSATION DPRTC_CMD(0x1d1)
|
|
#define DPRTC_CMDID_GET_FREQ_COMPENSATION DPRTC_CMD(0x1d2)
|
|
#define DPRTC_CMDID_GET_TIME DPRTC_CMD(0x1d3)
|
|
#define DPRTC_CMDID_SET_TIME DPRTC_CMD(0x1d4)
|
|
|
|
#pragma pack(push, 1)
|
|
struct dprtc_cmd_open {
|
|
__le32 dprtc_id;
|
|
};
|
|
|
|
struct dprtc_get_freq_compensation {
|
|
__le32 freq_compensation;
|
|
};
|
|
|
|
struct dprtc_time {
|
|
__le64 time;
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#endif /* _FSL_DPRTC_CMD_H */
|