iPXE
Data Fields
usb_hub_driver_operations Struct Reference

USB hub driver operations. More...

#include <usb.h>

Data Fields

int(* open )(struct usb_hub *hub)
 Open hub. More...
 
void(* close )(struct usb_hub *hub)
 Close hub. More...
 
int(* enable )(struct usb_hub *hub, struct usb_port *port)
 Enable port. More...
 
int(* disable )(struct usb_hub *hub, struct usb_port *port)
 Disable port. More...
 
int(* speed )(struct usb_hub *hub, struct usb_port *port)
 Update port speed. More...
 
int(* clear_tt )(struct usb_hub *hub, struct usb_port *port, struct usb_endpoint *ep)
 Clear transaction translator buffer. More...
 

Detailed Description

USB hub driver operations.

Definition at line 869 of file usb.h.

Field Documentation

◆ open

int( * usb_hub_driver_operations::open) (struct usb_hub *hub)

Open hub.

Parameters
hubUSB hub
Return values
rcReturn status code

Definition at line 875 of file usb.h.

Referenced by register_usb_hub().

◆ close

void( * usb_hub_driver_operations::close) (struct usb_hub *hub)

Close hub.

Parameters
hubUSB hub

Definition at line 880 of file usb.h.

Referenced by register_usb_hub(), and unregister_usb_hub().

◆ enable

int( * usb_hub_driver_operations::enable) (struct usb_hub *hub, struct usb_port *port)

Enable port.

Parameters
hubUSB hub
portUSB port
Return values
rcReturn status code

Definition at line 887 of file usb.h.

Referenced by register_usb().

◆ disable

int( * usb_hub_driver_operations::disable) (struct usb_hub *hub, struct usb_port *port)

Disable port.

Parameters
hubUSB hub
portUSB port
Return values
rcReturn status code

Definition at line 894 of file usb.h.

Referenced by unregister_usb().

◆ speed

int( * usb_hub_driver_operations::speed) (struct usb_hub *hub, struct usb_port *port)

Update port speed.

Parameters
hubUSB hub
portUSB port
Return values
rcReturn status code

Definition at line 901 of file usb.h.

Referenced by register_usb(), and usb_hotplugged().

◆ clear_tt

int( * usb_hub_driver_operations::clear_tt) (struct usb_hub *hub, struct usb_port *port, struct usb_endpoint *ep)

Clear transaction translator buffer.

Parameters
hubUSB hub
portUSB port
epUSB endpoint
Return values
rcReturn status code

Definition at line 909 of file usb.h.

Referenced by usb_endpoint_clear_tt().


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