1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Management Complex (MC) userspace public interface
8 #ifndef _UAPI_FSL_MC_H_
9 #define _UAPI_FSL_MC_H_
11 #include <linux/types.h>
13 #define MC_CMD_NUM_OF_PARAMS 7
16 * struct fsl_mc_command - Management Complex (MC) command structure
17 * @header: MC command header
18 * @params: MC command parameters
20 * Used by FSL_MC_SEND_MC_COMMAND
22 struct fsl_mc_command
{
24 __le64 params
[MC_CMD_NUM_OF_PARAMS
];
27 #define FSL_MC_SEND_CMD_IOCTL_TYPE 'R'
28 #define FSL_MC_SEND_CMD_IOCTL_SEQ 0xE0
30 #define FSL_MC_SEND_MC_COMMAND \
31 _IOWR(FSL_MC_SEND_CMD_IOCTL_TYPE, FSL_MC_SEND_CMD_IOCTL_SEQ, \
32 struct fsl_mc_command)
34 #endif /* _UAPI_FSL_MC_H_ */