iPXE
Data Fields
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. More...
 
void(* close )(struct usb_endpoint *ep)
 Close endpoint. More...
 
int(* reset )(struct usb_endpoint *ep)
 Reset endpoint. More...
 
int(* mtu )(struct usb_endpoint *ep)
 Update MTU. More...
 
int(* message )(struct usb_endpoint *ep, struct io_buffer *iobuf)
 Enqueue message transfer. More...
 
int(* stream )(struct usb_endpoint *ep, struct io_buffer *iobuf, int zlp)
 Enqueue stream transfer. More...
 

Detailed Description

USB endpoint host controller operations.

Definition at line 429 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 435 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 440 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 447 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 453 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 460 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 469 of file usb.h.

Referenced by usb_stream().


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