iPXE
Data Fields
usb_port Struct Reference

A USB port. More...

#include <usb.h>

Data Fields

struct usb_hubhub
 USB hub. More...
 
unsigned int address
 Port address. More...
 
unsigned int protocol
 Port protocol. More...
 
unsigned int speed
 Port speed. More...
 
int disconnected
 Port disconnection has been detected. More...
 
int attached
 Port has an attached device. More...
 
struct usb_deviceusb
 Currently attached device (if in use) More...
 
struct list_head changed
 List of changed ports. More...
 

Detailed Description

A USB port.

Definition at line 796 of file usb.h.

Field Documentation

◆ hub

struct usb_hub* usb_port::hub

◆ address

unsigned int usb_port::address

◆ protocol

unsigned int usb_port::protocol

Port protocol.

Definition at line 802 of file usb.h.

Referenced by alloc_usb_hub(), and hub_probe().

◆ speed

unsigned int usb_port::speed

Port speed.

Definition at line 804 of file usb.h.

◆ disconnected

int usb_port::disconnected

Port disconnection has been detected.

This should be set whenever the underlying hardware reports a connection status change.

Definition at line 810 of file usb.h.

Referenced by hub_remove().

◆ attached

int usb_port::attached

Port has an attached device.

Definition at line 812 of file usb.h.

◆ usb

struct usb_device* usb_port::usb

Currently attached device (if in use)

Note that this field will be NULL if the attached device has been freed (e.g. because there were no drivers found).

Definition at line 818 of file usb.h.

Referenced by alloc_usb_hub(), ehci_endpoint_capabilities(), hub_remove(), register_usb(), unregister_usb(), usb_endpoint_clear_tt(), usb_message(), usb_stream(), xhci_device_address(), and xhci_device_open().

◆ changed

struct list_head usb_port::changed

List of changed ports.

Definition at line 820 of file usb.h.

Referenced by free_usb_bus(), and usb_hotplug().


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