From 9a607474bdd66dd716635cfed7f2c832c39b4523 Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Thu, 14 Mar 2019 15:52:30 -0700 Subject: add qhy headers......... --- include/qhy/winusbio.h | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 include/qhy/winusbio.h (limited to 'include/qhy/winusbio.h') diff --git a/include/qhy/winusbio.h b/include/qhy/winusbio.h new file mode 100644 index 0000000..6c10fc4 --- /dev/null +++ b/include/qhy/winusbio.h @@ -0,0 +1,85 @@ +/*************************************************************************** + +Copyright (c) 2002 Microsoft Corporation + +Module Name: + + wusbio.h + +Abstract: + + Public header for WINUSB + +Environment: + + User and Kernel Mode + +Notes: + + THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY + KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR + PURPOSE. + + Copyright (c) 2001 Microsoft Corporation. All Rights Reserved. + + +Revision History: + + 11/12/2002 : created + + +****************************************************************************/ + +#ifndef __WUSBIO_H__ +#define __WUSBIO_H__ + +#if(NTDDI_VERSION >= NTDDI_WINXP) + +#include "usb.h" + +// Pipe policy types +#define SHORT_PACKET_TERMINATE 0x01 +#define AUTO_CLEAR_STALL 0x02 +#define PIPE_TRANSFER_TIMEOUT 0x03 +#define IGNORE_SHORT_PACKETS 0x04 +#define ALLOW_PARTIAL_READS 0x05 +#define AUTO_FLUSH 0x06 +#define RAW_IO 0x07 +#define MAXIMUM_TRANSFER_SIZE 0x08 +#define RESET_PIPE_ON_RESUME 0x09 + +// Power policy types +// +// Add 0x80 for Power policy types in order to prevent overlap with +// Pipe policy types to prevent "accidentally" setting the wrong value for the +// wrong type. +// +#define AUTO_SUSPEND 0x81 +#define SUSPEND_DELAY 0x83 + +// Device Information types +#define DEVICE_SPEED 0x01 + +// Device Speeds +#define LowSpeed 0x01 +#define FullSpeed 0x02 +#define HighSpeed 0x03 + +// {DA812BFF-12C3-46a2-8E2B-DBD3B7834C43} +#include +DEFINE_GUID(WinUSB_TestGuid, 0xda812bff, 0x12c3, 0x46a2, 0x8e, 0x2b, 0xdb, 0xd3, 0xb7, 0x83, 0x4c, 0x43); + + +typedef struct _WINUSB_PIPE_INFORMATION { + USBD_PIPE_TYPE PipeType; + UCHAR PipeId; + USHORT MaximumPacketSize; + UCHAR Interval; +} WINUSB_PIPE_INFORMATION, *PWINUSB_PIPE_INFORMATION; + +#endif // (NTDDI_VERSION >= NTDDI_WINXP) + +#endif // __WUSBIO_H__ + + -- cgit v1.1