From 50aa0215a7b7e00ab8ef34f4ed5900a0a73fc901 Mon Sep 17 00:00:00 2001 From: Damjan Jovanovic Date: Wed, 14 Apr 2010 04:52:27 +0200 Subject: [PATCH] usb.h: Add and fix some USBD_STATUS codes. --- include/ddk/usb.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/ddk/usb.h b/include/ddk/usb.h index af1c10d7f65..0cda6a4e43f 100644 --- a/include/ddk/usb.h +++ b/include/ddk/usb.h @@ -84,6 +84,11 @@ typedef PVOID USBD_INTERFACE_HANDLE; #define USBD_STATUS_SUCCESS ((USBD_STATUS)0x00000000) #define USBD_STATUS_PENDING ((USBD_STATUS)0x40000000) +#define USBD_STATUS_ERROR ((USBD_STATUS)0x80000000) +#define USBD_STATUS_HALTED ((USBD_STATUS)0xC0000000) + +#define USBD_STATUS_CANCELED ((USBD_STATUS)0x00010000) +#define USBD_STATUS_CANCELING ((USBD_STATUS)0x00020000) #define USBD_STATUS_CRC ((USBD_STATUS)0xC0000001) #define USBD_STATUS_BTSTUFF ((USBD_STATUS)0xC0000002) #define USBD_STATUS_DATA_TOGGLE_MISMATCH ((USBD_STATUS)0xC0000003) @@ -103,9 +108,11 @@ typedef PVOID USBD_INTERFACE_HANDLE; #define USBD_STATUS_BABBLE_DETECTED ((USBD_STATUS)0xC0000012) #define USBD_STATUS_DATA_BUFFER_ERROR ((USBD_STATUS)0xC0000013) #define USBD_STATUS_ENDPOINT_HALTED ((USBD_STATUS)0xC0000030) +#define USBD_STATUS_NO_MEMORY ((USBD_STATUS)0x80000100) #define USBD_STATUS_INVALID_URB_FUNCTION ((USBD_STATUS)0x80000200) #define USBD_STATUS_INVALID_PARAMETER ((USBD_STATUS)0x80000300) #define USBD_STATUS_ERROR_BUSY ((USBD_STATUS)0x80000400) +#define USBD_STATUS_REQUEST_FAILED ((USBD_STATUS)0x80000500) #define USBD_STATUS_INVALID_PIPE_HANDLE ((USBD_STATUS)0x80000600) #define USBD_STATUS_NO_BANDWIDTH ((USBD_STATUS)0x80000700) #define USBD_STATUS_INTERNAL_HC_ERROR ((USBD_STATUS)0x80000800) @@ -124,7 +131,6 @@ typedef PVOID USBD_INTERFACE_HANDLE; #define USBD_STATUS_TIMEOUT ((USBD_STATUS)0xC0006000) #define USBD_STATUS_DEVICE_GONE ((USBD_STATUS)0xC0007000) #define USBD_STATUS_STATUS_NOT_MAPPED ((USBD_STATUS)0xC0008000) -#define USBD_STATUS_CANCELED ((USBD_STATUS)0xC0010000) #define USBD_STATUS_ISO_NOT_ACCESSED_BY_HW ((USBD_STATUS)0xC0020000) #define USBD_STATUS_ISO_TD_ERROR ((USBD_STATUS)0xC0030000) #define USBD_STATUS_ISO_NA_LATE_USBPORT ((USBD_STATUS)0xC0040000)