iPXE
Data Fields
usb_function Struct Reference

A USB function. More...

#include <usb.h>

Data Fields

const char * name
 Name. More...
 
struct usb_deviceusb
 USB device. More...
 
struct usb_function_descriptor desc
 Function descriptor. More...
 
struct device dev
 Generic device. More...
 
struct list_head list
 List of functions within this USB device. More...
 
struct usb_driverdriver
 Driver. More...
 
void * priv
 Driver private data. More...
 
struct usb_device_idid
 Driver device ID. More...
 
uint8_t interface [0]
 List of interface numbers. More...
 

Detailed Description

A USB function.

A USB function represents an association of interfaces within a USB device.

Definition at line 657 of file usb.h.

Field Documentation

◆ name

const char* usb_function::name

◆ usb

struct usb_device* usb_function::usb

◆ desc

struct usb_function_descriptor usb_function::desc

Function descriptor.

Definition at line 663 of file usb.h.

Referenced by efi_usb_probe(), usb_probe(), usb_probe_all(), usbio_interface(), usbnet_comms_describe(), and usbnet_data_describe().

◆ dev

struct device usb_function::dev

◆ list

struct list_head usb_function::list

List of functions within this USB device.

Definition at line 667 of file usb.h.

Referenced by usb_probe_all(), usb_remove_all(), and usbio_interface().

◆ driver

struct usb_driver* usb_function::driver

Driver.

Definition at line 670 of file usb.h.

Referenced by usb_probe(), and usb_remove().

◆ priv

void* usb_function::priv

Driver private data.

Definition at line 672 of file usb.h.

Referenced by usb_func_get_drvdata(), and usb_func_set_drvdata().

◆ id

struct usb_device_id* usb_function::id

Driver device ID.

Definition at line 674 of file usb.h.

Referenced by hub_probe(), and usb_probe().

◆ interface

uint8_t usb_function::interface[0]

List of interface numbers.

This must be the last field within the structure.

Definition at line 680 of file usb.h.

Referenced by efi_usb_probe(), usb_probe_all(), usbhid_describe(), usbio_interface(), usbkbd_probe(), usbkbd_set_leds(), usbnet_comms_describe(), and usbnet_data_describe().


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