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.
void(* close )(struct usb_hub *hub)
 Close hub.
int(* enable )(struct usb_hub *hub, struct usb_port *port)
 Enable port.
int(* disable )(struct usb_hub *hub, struct usb_port *port)
 Disable port.
int(* speed )(struct usb_hub *hub, struct usb_port *port)
 Update port speed.
int(* clear_tt )(struct usb_hub *hub, struct usb_port *port, struct usb_endpoint *ep)
 Clear transaction translator buffer.

Detailed Description

USB hub driver operations.

Definition at line 869 of file usb.h.


Field Documentation

Open hub.

Parameters:
hubUSB hub
Return values:
rcReturn status code

Definition at line 875 of file usb.h.

Referenced by register_usb_hub().

Close hub.

Parameters:
hubUSB hub

Definition at line 880 of file usb.h.

Referenced by register_usb_hub(), and unregister_usb_hub().

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 port.

Parameters:
hubUSB hub
portUSB port
Return values:
rcReturn status code

Definition at line 894 of file usb.h.

Referenced by register_usb(), and unregister_usb().

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().

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: