synx_err.h 617 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #ifndef __SYNX_ERR_H__
  6. #define __SYNX_ERR_H__
  7. #include <linux/err.h>
  8. /**
  9. * Error codes returned from framework
  10. *
  11. * Return codes are mapped to platform specific
  12. * return values.
  13. */
  14. #define SYNX_SUCCESS 0
  15. #define SYNX_NOMEM ENOMEM
  16. #define SYNX_NOSUPPORT EOPNOTSUPP
  17. #define SYNX_NOPERM EPERM
  18. #define SYNX_TIMEOUT ETIMEDOUT
  19. #define SYNX_ALREADY EALREADY
  20. #define SYNX_NOENT ENOENT
  21. #define SYNX_INVALID EINVAL
  22. #define SYNX_BUSY EBUSY
  23. #endif /* __SYNX_ERR_H__ */