[zircon][usb-request]Add node_offset field to usb_request_pool
usb_request_pool is a pool of usb_requests that a driver keeps track of, to avoid reallocation of requests. With the recent changes to usb stack, each driver in the usb stack has its own list_node_t* so as to avoid stamping on other driver's lists. The library is unaware of the private portions of the usb_request_t where the node pointer is stored for each driver. To queue the usb_requests to the pool, this changeset informs the usb-request library, the offset of list_node_t* from the usb_request_t. Test: vim2: fx serve. lsusb, iochk on mass storage device. Astro: lsusb. Pixelbook: fx serve. iochk Change-Id: I78ea612472742ad93b6e5c61ffe09da7819276fd
Showing
- system/dev/lib/usb/include/usb/usb-request.h 4 additions, 2 deletionssystem/dev/lib/usb/include/usb/usb-request.h
- system/dev/lib/usb/usb-request.c 16 additions, 6 deletionssystem/dev/lib/usb/usb-request.c
- system/dev/test/ddk-test/usb-request-test.c 3 additions, 3 deletionssystem/dev/test/ddk-test/usb-request-test.c
- system/dev/usb/usb-bus/usb-device.c 6 additions, 2 deletionssystem/dev/usb/usb-bus/usb-device.c
- system/dev/usb/usb-bus/util.c 4 additions, 1 deletionsystem/dev/usb/usb-bus/util.c
- system/dev/usb/xhci/xdc.cpp 4 additions, 4 deletionssystem/dev/usb/xhci/xdc.cpp
- system/dev/usb/xhci/xhci-transfer.cpp 4 additions, 1 deletionsystem/dev/usb/xhci/xhci-transfer.cpp
- system/dev/usb/xhci/xhci.cpp 3 additions, 2 deletionssystem/dev/usb/xhci/xhci.cpp
Loading
Please register or sign in to comment