From d3240f026b864d9f858b4ac9a7eb801565570370 Mon Sep 17 00:00:00 2001 From: DizzyOfCRN Date: Tue, 12 Aug 2014 06:39:34 +0000 Subject: [PATCH] Added OTG descriptor as UsbStdOTGDesc. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@49310 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- compiler/include/devices/usb.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/compiler/include/devices/usb.h b/compiler/include/devices/usb.h index fa8c1a1a38..e69b271162 100644 --- a/compiler/include/devices/usb.h +++ b/compiler/include/devices/usb.h @@ -180,6 +180,28 @@ struct UsbStdBOSDesc UBYTE bNumDeviceCaps; }; +/* + The OTG supplement introduces the OTG Descriptor. This descriptor is sent by the B-Device + after a Get_Descriptor(config) request (for example inserted between the configuration and the + first interface descriptors). +*/ +struct UsbStdOTGDesc +{ + UBYTE bLength; + UBYTE bDescriptorType; + UBYTE bInterfaceNumber; +}; + +/* + The HNP Support bit is set if the device supports HNP. (Host Negotiation Protocol) + The SRP Support bit is set if the device supports SRP. (Session Request Protocol) +*/ +#define OTGB_SRP_SUPPORT 0 +#define OTGB_HNP_SUPPORT 1 + +#define OTGF_SRP_SUPPORT (1<