diff --git a/nx/include/switch/services/usb.h b/nx/include/switch/services/usb.h index 477e2bb1..7dba91c9 100644 --- a/nx/include/switch/services/usb.h +++ b/nx/include/switch/services/usb.h @@ -63,6 +63,18 @@ struct usb_device_descriptor { uint8_t bNumConfigurations; }; +/// Imported from libusb, with some adjustments. +struct usb_config_descriptor { + uint8_t bLength; + uint8_t bDescriptorType; + uint16_t wTotalLength; + uint8_t bNumInterfaces; + uint8_t bConfigurationValue; + uint8_t iConfiguration; + uint8_t bmAttributes; + uint8_t MaxPower; +}; + /// Imported from libusb, with some adjustments. struct usb_ss_endpoint_companion_descriptor { uint8_t bLength;