scmi.h 914 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: BSD-3-Clause */
  2. /*
  3. * Copyright (c) 2015-2019, Arm Limited and Contributors. All rights reserved.
  4. */
  5. #ifndef SCMI_MSG_SCMI_H
  6. #define SCMI_MSG_SCMI_H
  7. #define SCMI_PROTOCOL_ID_BASE 0x10U
  8. #define SCMI_PROTOCOL_ID_POWER_DOMAIN 0x11U
  9. #define SCMI_PROTOCOL_ID_SYS_POWER 0x12U
  10. #define SCMI_PROTOCOL_ID_PERF 0x13U
  11. #define SCMI_PROTOCOL_ID_CLOCK 0x14U
  12. #define SCMI_PROTOCOL_ID_SENSOR 0x15U
  13. #define SCMI_PROTOCOL_ID_RESET_DOMAIN 0x16U
  14. /* SCMI error codes reported to agent through server-to-agent messages */
  15. #define SCMI_SUCCESS 0
  16. #define SCMI_NOT_SUPPORTED (-1)
  17. #define SCMI_INVALID_PARAMETERS (-2)
  18. #define SCMI_DENIED (-3)
  19. #define SCMI_NOT_FOUND (-4)
  20. #define SCMI_OUT_OF_RANGE (-5)
  21. #define SCMI_BUSY (-6)
  22. #define SCMI_COMMS_ERROR (-7)
  23. #define SCMI_GENERIC_ERROR (-8)
  24. #define SCMI_HARDWARE_ERROR (-9)
  25. #define SCMI_PROTOCOL_ERROR (-10)
  26. #endif /* SCMI_MSG_SCMI_H */