fsl_dpmng.h 1.2 KB

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