M4521_BSP V3.02.000
The Board Support Package for M4521
usbh_err_code.h
Go to the documentation of this file.
1#ifndef _USB_ERR_CODE_H_
2#define _USB_ERR_CODE_H_
3
4#define USB_OK 0
5#define USB_ERR_NOENT 0xf0001002 /* No such file or directory */
6#define USB_ERR_IO 0xf0001005 /* I/O error */
7#define USB_ERR_AGAIN 0xf0001011 /* Try again */
8#define USB_ERR_NOMEM 0xf0001012 /* Out of memory */
9#define USB_ERR_BUSY 0xf0001016 /* Device or resource busy */
10#define USB_ERR_XDEV 0xf0001018 /* Cross-device link */
11#define USB_ERR_NODEV 0xf0001019 /* No such device */
12#define USB_ERR_INVAL 0xf0001022 /* Invalid argument */
13#define USB_ERR_PIPE 0xf0001032 /* Broken pipe */
14#define EWOULDBLOCK USB_ERR_AGAIN /* Operation would block */
15#define USB_ERR_NOLINK 0xf0001067 /* Link has been severed */
16#define USB_ERR_CONNRESET 0xf0001104 /* Connection reset by peer */
17#define USB_ERR_SHUTDOWN 0xf0001108 /* Cannot send after transport endpoint shutdown */
18#define USB_ERR_TIMEOUT 0xf0001110 /* Connection timed out */
19#define USB_ERR_INPROGRESS 0xf0001115 /* Operation now in progress */
20
21#define USB_ERR_URB_PENDING USB_ERR_INPROGRESS
22
23#define CC_ERR_CRC 0xf0003001 /* OHCI CC - CRC Error */
24#define CC_ERR_BITSTUFF 0xf0003002 /* OHCI CC - Bit Stuff */
25#define CC_ERR_DATA_TOGGLE 0xf0003003 /* OHCI CC - Data Togg */
26#define CC_ERR_STALL 0xf0003004 /* OHCI CC - Stall */
27#define CC_ERR_NORESPONSE 0xf0003005 /* OHCI CC - Device Not Responding */
28#define CC_ERR_PID_CHECK 0xf0003006 /* OHCI CC - PID Check Failure */
29#define CC_ERR_INVALID_PID 0xf0003007 /* OHCI CC - Invalid PID */
30#define CC_ERR_DATAOVERRUN 0xf0003008 /* OHCI CC - Data Overrun */
31#define CC_ERR_DATAUNDERRUN 0xf0003009 /* OHCI CC - Data Underrun */
32#define CC_ERR_NOT_DEFINED 0xf0003010
33#define CC_ERR_BUFFEROVERRUN 0xf0003012 /* OHCI CC - Buffer Overrun */
34#define CC_ERR_BUFFERUNDERRUN 0xf0003013 /* OHCI CC - Buffer Underrun */
35#define CC_ERR_NOT_ACCESS 0xf0003014 /* OHCI CC - Not Access */
36
37#endif /* _USB_ERR_CODE_H_ */