diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-09-13 00:49:56 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-09-13 12:54:30 +0100 |
commit | f9e192605c7095497438398c2653ede3c78ebe1b (patch) | |
tree | 10ee45b16836a8e4bebbce1eb0d506bb98d29620 /src/include/ipxe/usb.h | |
parent | 8baefad65915defc493f28c6d8ac313b1152c858 (diff) | |
download | ipxe-f9e192605c7095497438398c2653ede3c78ebe1b.tar.gz |
[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>
Diffstat (limited to 'src/include/ipxe/usb.h')
-rw-r--r-- | src/include/ipxe/usb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/ipxe/usb.h b/src/include/ipxe/usb.h index dfe0f3482..0640f9e38 100644 --- a/src/include/ipxe/usb.h +++ b/src/include/ipxe/usb.h @@ -458,11 +458,11 @@ struct usb_endpoint_host_operations { * * @v ep USB endpoint * @v iobuf I/O buffer - * @v terminate Terminate using a short packet + * @v zlp Append a zero-length packet * @ret rc Return status code */ int ( * stream ) ( struct usb_endpoint *ep, struct io_buffer *iobuf, - int terminate ); + int zlp ); }; /** USB endpoint driver operations */ |