diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-09-12 15:20:29 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-10-12 22:36:29 +0100 |
commit | fe643d4e4b66cd49f6d0502b108e64ebc49b2da0 (patch) | |
tree | 837d83e0a1ffb0b3b204b754471d2b9e3d2120f4 /include | |
parent | 30b7a12230fbf1a0e30d99e0640b230d6dd232b4 (diff) |
bus: fsl-mc: add uapi interface for restool
Add the uapi interface for restool, picked from the QoriQ kernel tree
commit f2278d43b7ca ("bus: fsl-mc: add fsl-mc userspace support")
by Ioana Ciornei <ioana.ciornei@nxp.com>.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/fsl_mc.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/uapi/linux/fsl_mc.h b/include/uapi/linux/fsl_mc.h new file mode 100644 index 000000000000..4989c1bed5c8 --- /dev/null +++ b/include/uapi/linux/fsl_mc.h @@ -0,0 +1,34 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +/* + * Management Complex (MC) userspace public interface + * + * Copyright 2018 NXP + * + */ +#ifndef _UAPI_FSL_MC_H_ +#define _UAPI_FSL_MC_H_ + +#include <linux/types.h> + +#define MC_CMD_NUM_OF_PARAMS 7 + +/** + * struct fsl_mc_command - Management Complex (MC) command structure + * @header: MC command header + * @params: MC command parameters + * + * Used by FSL_MC_SEND_MC_COMMAND + */ +struct fsl_mc_command { + __le64 header; + __le64 params[MC_CMD_NUM_OF_PARAMS]; +}; + +#define FSL_MC_SEND_CMD_IOCTL_TYPE 'R' +#define FSL_MC_SEND_CMD_IOCTL_SEQ 0xE0 + +#define FSL_MC_SEND_MC_COMMAND \ + _IOWR(FSL_MC_SEND_CMD_IOCTL_TYPE, FSL_MC_SEND_CMD_IOCTL_SEQ, \ + struct fsl_mc_command) + +#endif /* _UAPI_FSL_MC_H_ */ |