iPXE
usb_endpoint_host_operations Struct Reference

USB endpoint host controller operations. More...

#include <usb.h>

Data Fields

int(* open )(struct usb_endpoint *ep)
 Open endpoint.
void(* close )(struct usb_endpoint *ep)
 Close endpoint.
int(* reset )(struct usb_endpoint *ep)
 Reset endpoint.
int(* mtu )(struct usb_endpoint *ep)
 Update MTU.
int(* message )(struct usb_endpoint *ep, struct io_buffer *iobuf)
 Enqueue message transfer.
int(* stream )(struct usb_endpoint *ep, struct io_buffer *iobuf, int zlp)
 Enqueue stream transfer.

Detailed Description

USB endpoint host controller operations.

Definition at line 444 of file usb.h.

Field Documentation

◆ open

int(* usb_endpoint_host_operations::open) (struct usb_endpoint *ep)

Open endpoint.

Parameters
epUSB endpoint
Return values
rcReturn status code

Definition at line 450 of file usb.h.

Referenced by usb_endpoint_open().

◆ close

void(* usb_endpoint_host_operations::close) (struct usb_endpoint *ep)

Close endpoint.

Parameters
epUSB endpoint

Definition at line 455 of file usb.h.

Referenced by usb_endpoint_close(), and usb_endpoint_open().

◆ reset

int(* usb_endpoint_host_operations::reset) (struct usb_endpoint *ep)

Reset endpoint.

Parameters
epUSB endpoint
Return values
rcReturn status code

Definition at line 462 of file usb.h.

Referenced by usb_endpoint_reset().

◆ mtu

int(* usb_endpoint_host_operations::mtu) (struct usb_endpoint *ep)

Update MTU.

Parameters
epUSB endpoint
Return values
rcReturn status code

Definition at line 468 of file usb.h.

Referenced by usb_endpoint_mtu().

◆ message

int(* usb_endpoint_host_operations::message) (struct usb_endpoint *ep, struct io_buffer *iobuf)

Enqueue message transfer.

Parameters
epUSB endpoint
iobufI/O buffer
Return values
rcReturn status code

Definition at line 475 of file usb.h.

Referenced by usb_message().

◆ stream

int(* usb_endpoint_host_operations::stream) (struct usb_endpoint *ep, struct io_buffer *iobuf, int zlp)

Enqueue stream transfer.

Parameters
epUSB endpoint
iobufI/O buffer
zlpAppend a zero-length packet
Return values
rcReturn status code

Definition at line 484 of file usb.h.

Referenced by usb_stream().


The documentation for this struct was generated from the following file: