summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/usb.h
diff options
context:
space:
mode:
authorMichael Brown2015-09-13 01:49:56 +0200
committerMichael Brown2015-09-13 13:54:30 +0200
commitf9e192605c7095497438398c2653ede3c78ebe1b (patch)
tree10ee45b16836a8e4bebbce1eb0d506bb98d29620 /src/include/ipxe/usb.h
parent[tcpip] Avoid generating positive zero for transmitted UDP checksums (diff)
downloadipxe-f9e192605c7095497438398c2653ede3c78ebe1b.tar.gz
ipxe-f9e192605c7095497438398c2653ede3c78ebe1b.tar.xz
ipxe-f9e192605c7095497438398c2653ede3c78ebe1b.zip
[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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/ipxe/usb.h b/src/include/ipxe/usb.h
index dfe0f348..0640f9e3 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 */