logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

fsl_mc.h (734B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Management Complex (MC) userspace public interface
  4. *
  5. * Copyright 2021 NXP
  6. *
  7. */
  8. #ifndef _FSL_MC_H_
  9. #define _FSL_MC_H_
  10. #include <linux/types.h>
  11. #define MC_CMD_NUM_OF_PARAMS 7
  12. /**
  13. * struct fsl_mc_command - Management Complex (MC) command structure
  14. * @header: MC command header
  15. * @params: MC command parameters
  16. *
  17. * Used by FSL_MC_SEND_MC_COMMAND
  18. */
  19. struct fsl_mc_command {
  20. __le64 header;
  21. __le64 params[MC_CMD_NUM_OF_PARAMS];
  22. };
  23. #define FSL_MC_SEND_CMD_IOCTL_TYPE 'R'
  24. #define FSL_MC_SEND_CMD_IOCTL_SEQ 0xE0
  25. #define FSL_MC_SEND_MC_COMMAND \
  26. _IOWR(FSL_MC_SEND_CMD_IOCTL_TYPE, FSL_MC_SEND_CMD_IOCTL_SEQ, \
  27. struct fsl_mc_command)
  28. #endif /* _FSL_MC_H_ */