fsl_dpmng.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /* Copyright 2013-2015 Freescale Semiconductor Inc.
  3. */
  4. #ifndef __FSL_DPMNG_H
  5. #define __FSL_DPMNG_H
  6. /* Management Complex General API
  7. * Contains general API for the Management Complex firmware
  8. */
  9. struct fsl_mc_io;
  10. /**
  11. * Management Complex firmware version information
  12. */
  13. #define MC_VER_MAJOR 9
  14. #define MC_VER_MINOR 0
  15. /**
  16. * struct mc_versoin
  17. * @major: Major version number: incremented on API compatibility changes
  18. * @minor: Minor version number: incremented on API additions (that are
  19. * backward compatible); reset when major version is incremented
  20. * @revision: Internal revision number: incremented on implementation changes
  21. * and/or bug fixes that have no impact on API
  22. */
  23. struct mc_version {
  24. uint32_t major;
  25. uint32_t minor;
  26. uint32_t revision;
  27. };
  28. /**
  29. * mc_get_version() - Retrieves the Management Complex firmware
  30. * version information
  31. * @mc_io: Pointer to opaque I/O object
  32. * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_'
  33. * @mc_ver_info: Returned version information structure
  34. *
  35. * Return: '0' on Success; Error code otherwise.
  36. */
  37. int mc_get_version(struct fsl_mc_io *mc_io,
  38. uint32_t cmd_flags,
  39. struct mc_version *mc_ver_info);
  40. #endif /* __FSL_DPMNG_H */