Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * Management Complex (MC) userspace public interface
0004  *
0005  * Copyright 2021 NXP
0006  *
0007  */
0008 #ifndef _UAPI_FSL_MC_H_
0009 #define _UAPI_FSL_MC_H_
0010 
0011 #include <linux/types.h>
0012 
0013 #define MC_CMD_NUM_OF_PARAMS    7
0014 
0015 /**
0016  * struct fsl_mc_command - Management Complex (MC) command structure
0017  * @header: MC command header
0018  * @params: MC command parameters
0019  *
0020  * Used by FSL_MC_SEND_MC_COMMAND
0021  */
0022 struct fsl_mc_command {
0023     __le64 header;
0024     __le64 params[MC_CMD_NUM_OF_PARAMS];
0025 };
0026 
0027 #define FSL_MC_SEND_CMD_IOCTL_TYPE  'R'
0028 #define FSL_MC_SEND_CMD_IOCTL_SEQ   0xE0
0029 
0030 #define FSL_MC_SEND_MC_COMMAND \
0031     _IOWR(FSL_MC_SEND_CMD_IOCTL_TYPE, FSL_MC_SEND_CMD_IOCTL_SEQ, \
0032     struct fsl_mc_command)
0033 
0034 #endif /* _UAPI_FSL_MC_H_ */