[usb] Generalise zero-length packet generation logic
authorMichael Brown <mcb30@ipxe.org>
Sat, 12 Sep 2015 23:49:56 +0000 (00:49 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 13 Sep 2015 11:54:30 +0000 (12:54 +0100)
commitf9e192605c7095497438398c2653ede3c78ebe1b
tree10ee45b16836a8e4bebbce1eb0d506bb98d29620
parent8baefad65915defc493f28c6d8ac313b1152c858
[usb] Generalise zero-length packet generation logic

The decision on whether or not a zero-length packet needs to be
transmitted is independent of the host controller and belongs in the
USB core.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/bus/usb.c
src/drivers/usb/ehci.c
src/drivers/usb/uhci.c
src/drivers/usb/usbio.c
src/drivers/usb/xhci.c
src/include/ipxe/usb.h