hv_drv_UsbErrNo.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * @file hv_drv_UsbErrNo.h
  3. * @brief Error number define.
  4. *
  5. * @author HiView SoC Software Team
  6. * @version 1.0.0
  7. * @date 2022-06-15
  8. */
  9. #ifndef __HV_DRV_USB_ERR_NO_H_
  10. #define __HV_DRV_USB_ERR_NO_H_
  11. #define ENOERR 0 /* No error */
  12. #define EREMOTEIO 121 /* Remote I/O error */
  13. #define ENOTSUPP 524 /* Operation is not supported */
  14. #define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */
  15. #define ENOMEM 12 /* Out of memory */
  16. #define EIO 5 /* I/O error */
  17. #define ENOENT 2 /* No such file or directory */
  18. #define EEXIST 17 /* File exists */
  19. #define ENXIO 6 /* No such device or address */
  20. #define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
  21. #define EINVAL 22 /* Invalid argument */
  22. #define EBUSY 16 /* Device or resource busy */
  23. #define ENODATA 61 /* No data available */
  24. #define ENODEV 19 /* No such device */
  25. //#define ECONNABORTED 103 /* Software caused connection abort */
  26. #define ECONNRESET 104 /* Connection reset by peer */
  27. #define EAGAIN 11 /* Try again */
  28. //#define ENOSYS 38 /* Invalid system call number */
  29. #define ERESTARTSYS 512
  30. #endif