mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
dm: usb: Add a generic descriptor struct
This is useful for creating lists of descriptors, and is better than using void * for this purpose. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -379,6 +379,11 @@ struct usb_endpoint_descriptor {
|
||||
#define USB_DT_ENDPOINT_SIZE 7
|
||||
#define USB_DT_ENDPOINT_AUDIO_SIZE 9 /* Audio extension */
|
||||
|
||||
/* Used to access common fields */
|
||||
struct usb_generic_descriptor {
|
||||
__u8 bLength;
|
||||
__u8 bDescriptorType;
|
||||
};
|
||||
|
||||
/*
|
||||
* Endpoints
|
||||
|
Reference in New Issue
Block a user