mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 15:31:42 +03:00
[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>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user