aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-10-16 18:28:04 +0200
committerAndrey Konovalov <andreyknvl@gmail.com>2019-10-16 18:28:52 +0200
commit8c88c9c1c99c8cd8dabc951164c820b9c9f25114 (patch)
tree230357b7f72c9d525c817010dcac43191a4351e3 /sys/linux
parentd4ea592f78feb8f04941a301b93e09880c3546a3 (diff)
sys/linux/vusb.txt: add some TODOs
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/vusb.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/linux/vusb.txt b/sys/linux/vusb.txt
index aa33a1bc1..8c39c2ec5 100644
--- a/sys/linux/vusb.txt
+++ b/sys/linux/vusb.txt
@@ -84,6 +84,8 @@ type usb_device_descriptor_t[CLASS, SUBCLASS, PROTOCOL, VENDOR, PRODUCT, DEVICE,
usb_versions = 0x110, 0x200, 0x201, 0x250, 0x300, 0x310
# https://elixir.bootlin.com/linux/v5.1.7/source/drivers/usb/core/hub.c#L4661
+# TODO: dummy driver has complex requirements for packet sizes, account for those:
+# https://elixir.bootlin.com/linux/v5.3.6/source/drivers/usb/gadget/udc/dummy_hcd.c#L497
usb_device_max_packet_sizes = 8, 16, 32, 64, 255
type usb_config_descriptor_t[NUM, IFSNUM, ATTRS, IFS] {
@@ -259,6 +261,9 @@ type vusb_response_t[CLASS, REQ, DATA] {
# USB descriptors requested by the kernel before the SET_CONFIGURATION request.
+# TODO: figure out when is the USB_DT_OTG descriptor used.
+# TODO: figure out when is the USB_DT_INTERFACE_ASSOCIATION descriptor used.
+
type usb_string_descriptor_t[DATA] {
bLength len[parent, int8]
bDescriptorType const[USB_DT_STRING, int8]