Changes in uspace/drv/ohci/hw_struct/completion_codes.h [f1be95c8:fc9f88d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hw_struct/completion_codes.h
rf1be95c8 rfc9f88d 35 35 #define DRV_OHCI_HW_STRUCT_COMPLETION_CODES_H 36 36 37 #include <errno.h>38 39 37 #define CC_NOERROR (0x0) 40 38 #define CC_CRC (0x1) … … 52 50 #define CC_NOACCESS2 (0xf) 53 51 54 inline static int cc_to_rc(int cc)55 {56 switch (cc) {57 case CC_NOERROR:58 return EOK;59 60 case CC_CRC:61 return EBADCHECKSUM;62 63 case CC_PIDUNEXPECTED:64 case CC_PIDFAIL:65 case CC_BITSTUFF:66 return EIO;67 68 case CC_TOGGLE:69 case CC_STALL:70 return ESTALL;71 72 case CC_NORESPONSE:73 return ETIMEOUT;74 75 case CC_DATAOVERRRUN:76 case CC_DATAUNDERRRUN:77 case CC_BUFFEROVERRRUN:78 case CC_BUFFERUNDERRUN:79 return EOVERFLOW;80 81 case CC_NOACCESS1:82 case CC_NOACCESS2:83 default:84 return ENOTSUP;85 }86 }87 88 52 #endif 89 53 /**
Note:
See TracChangeset
for help on using the changeset viewer.