X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fusbdescriptors.h;h=227b91995212acb32a73f6cf84d7d99ec0d539f0;hb=bbdf38698ee5c96138868d563c6825cd48bb26dc;hp=392fcf53780162fc87f6fbb58fdcb8496009111f;hpb=b2eb7d9bc6032e16b7dd898f7c0ea654f63b61db;p=oweals%2Fu-boot.git diff --git a/include/usbdescriptors.h b/include/usbdescriptors.h index 392fcf5378..227b919952 100644 --- a/include/usbdescriptors.h +++ b/include/usbdescriptors.h @@ -13,20 +13,7 @@ * Tom Rushworth , * Bruce Balden * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * + * SPDX-License-Identifier: GPL-2.0+ */ /* USB Descriptors - Create a complete description of all of the @@ -199,7 +186,7 @@ struct usb_endpoint_descriptor { u8 bmAttributes; u16 wMaxPacketSize; u8 bInterval; -} __attribute__ ((packed)) __attribute__ ((aligned(2))); +} __attribute__ ((packed)); struct usb_interface_descriptor { u8 bLength; @@ -241,6 +228,21 @@ struct usb_device_descriptor { u8 bNumConfigurations; } __attribute__ ((packed)); +#if defined(CONFIG_USBD_HS) +struct usb_qualifier_descriptor { + u8 bLength; + u8 bDescriptorType; + + u16 bcdUSB; + u8 bDeviceClass; + u8 bDeviceSubClass; + u8 bDeviceProtocol; + u8 bMaxPacketSize0; + u8 bNumConfigurations; + u8 breserved; +} __attribute__ ((packed)); +#endif + struct usb_string_descriptor { u8 bLength; u8 bDescriptorType; /* 0x03 */