1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 2 /* 3 * Management Complex (MC) userspace public in 3 * Management Complex (MC) userspace public interface 4 * 4 * 5 * Copyright 2021 NXP 5 * Copyright 2021 NXP 6 * 6 * 7 */ 7 */ 8 #ifndef _UAPI_FSL_MC_H_ 8 #ifndef _UAPI_FSL_MC_H_ 9 #define _UAPI_FSL_MC_H_ 9 #define _UAPI_FSL_MC_H_ 10 10 11 #include <linux/types.h> 11 #include <linux/types.h> 12 12 13 #define MC_CMD_NUM_OF_PARAMS 7 13 #define MC_CMD_NUM_OF_PARAMS 7 14 14 15 /** 15 /** 16 * struct fsl_mc_command - Management Complex 16 * struct fsl_mc_command - Management Complex (MC) command structure 17 * @header: MC command header 17 * @header: MC command header 18 * @params: MC command parameters 18 * @params: MC command parameters 19 * 19 * 20 * Used by FSL_MC_SEND_MC_COMMAND 20 * Used by FSL_MC_SEND_MC_COMMAND 21 */ 21 */ 22 struct fsl_mc_command { 22 struct fsl_mc_command { 23 __le64 header; 23 __le64 header; 24 __le64 params[MC_CMD_NUM_OF_PARAMS]; 24 __le64 params[MC_CMD_NUM_OF_PARAMS]; 25 }; 25 }; 26 26 27 #define FSL_MC_SEND_CMD_IOCTL_TYPE 'R' 27 #define FSL_MC_SEND_CMD_IOCTL_TYPE 'R' 28 #define FSL_MC_SEND_CMD_IOCTL_SEQ 0xE0 28 #define FSL_MC_SEND_CMD_IOCTL_SEQ 0xE0 29 29 30 #define FSL_MC_SEND_MC_COMMAND \ 30 #define FSL_MC_SEND_MC_COMMAND \ 31 _IOWR(FSL_MC_SEND_CMD_IOCTL_TYPE, FSL_ 31 _IOWR(FSL_MC_SEND_CMD_IOCTL_TYPE, FSL_MC_SEND_CMD_IOCTL_SEQ, \ 32 struct fsl_mc_command) 32 struct fsl_mc_command) 33 33 34 #endif /* _UAPI_FSL_MC_H_ */ 34 #endif /* _UAPI_FSL_MC_H_ */ 35 35
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.