zephyr/drivers/usb
Johann Fischer 9cb777b95e drivers: uhc: rework transfer buffer handling
The current approach is a bit impractical in the upper layer.
This patch removes the two fifos that hold the transfer buffers
and replaces them with a byte array for the setup packet and
a pointer to a data buffer. The data buffer is mandatory for
all types of transfers except control without a data stage.
The waste of eight unused bytes for non-control transfers should
be insignificant, since an additional pointer would be at least
half of it, and then there would be the overhead of handling it.

This patch also clean up the transfer flags, rename owner to callback
as it reflects the upper layer use case, and add an additional member
to hold the pointer to the USB device (peripheral on the bus).

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2023-10-01 09:26:07 +03:00
..
bc12 i2c: use device instead of name for i2c dump messages 2023-09-06 17:54:53 +02:00
device kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
udc kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
uhc drivers: uhc: rework transfer buffer handling 2023-10-01 09:26:07 +03:00
uvb kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
CMakeLists.txt bc12: API and 1st driver implementation. 2023-03-30 17:34:36 -04:00
Kconfig bc12: API and 1st driver implementation. 2023-03-30 17:34:36 -04:00