q6dsp-errno.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __Q6DSP_ERR_NO_H__
  3. #define __Q6DSP_ERR_NO_H__
  4. #include <linux/kernel.h>
  5. /* Success. The operation completed with no errors. */
  6. #define ADSP_EOK 0x00000000
  7. /* General failure. */
  8. #define ADSP_EFAILED 0x00000001
  9. /* Bad operation parameter. */
  10. #define ADSP_EBADPARAM 0x00000002
  11. /* Unsupported routine or operation. */
  12. #define ADSP_EUNSUPPORTED 0x00000003
  13. /* Unsupported version. */
  14. #define ADSP_EVERSION 0x00000004
  15. /* Unexpected problem encountered. */
  16. #define ADSP_EUNEXPECTED 0x00000005
  17. /* Unhandled problem occurred. */
  18. #define ADSP_EPANIC 0x00000006
  19. /* Unable to allocate resource. */
  20. #define ADSP_ENORESOURCE 0x00000007
  21. /* Invalid handle. */
  22. #define ADSP_EHANDLE 0x00000008
  23. /* Operation is already processed. */
  24. #define ADSP_EALREADY 0x00000009
  25. /* Operation is not ready to be processed. */
  26. #define ADSP_ENOTREADY 0x0000000A
  27. /* Operation is pending completion. */
  28. #define ADSP_EPENDING 0x0000000B
  29. /* Operation could not be accepted or processed. */
  30. #define ADSP_EBUSY 0x0000000C
  31. /* Operation aborted due to an error. */
  32. #define ADSP_EABORTED 0x0000000D
  33. /* Operation preempted by a higher priority. */
  34. #define ADSP_EPREEMPTED 0x0000000E
  35. /* Operation requests intervention to complete. */
  36. #define ADSP_ECONTINUE 0x0000000F
  37. /* Operation requests immediate intervention to complete. */
  38. #define ADSP_EIMMEDIATE 0x00000010
  39. /* Operation is not implemented. */
  40. #define ADSP_ENOTIMPL 0x00000011
  41. /* Operation needs more data or resources. */
  42. #define ADSP_ENEEDMORE 0x00000012
  43. /* Operation does not have memory. */
  44. #define ADSP_ENOMEMORY 0x00000014
  45. /* Item does not exist. */
  46. #define ADSP_ENOTEXIST 0x00000015
  47. /* Max count for adsp error code sent to HLOS*/
  48. #endif /*__Q6DSP_ERR_NO_H__ */