iPXE
Data Fields
usb_driver Struct Reference

A USB driver. More...

#include <usb.h>

Data Fields

struct usb_device_idids
 USB ID table.
unsigned int id_count
 Number of entries in ID table.
struct usb_class_id class
 Class ID.
unsigned int score
 Driver score.
int(* probe )(struct usb_function *func, struct usb_configuration_descriptor *config)
 Probe device.
void(* remove )(struct usb_function *func)
 Remove device.

Detailed Description

A USB driver.

Definition at line 1363 of file usb.h.


Field Documentation

USB ID table.

Definition at line 1365 of file usb.h.

Referenced by usb_find_driver().

unsigned int usb_driver::id_count

Number of entries in ID table.

Definition at line 1367 of file usb.h.

Referenced by usb_find_driver().

Class ID.

Definition at line 1369 of file usb.h.

Referenced by usb_find_driver().

unsigned int usb_driver::score

Driver score.

This is used to determine the preferred configuration for a USB device.

Definition at line 1375 of file usb.h.

Referenced by usb_score().

int( * usb_driver::probe)(struct usb_function *func, struct usb_configuration_descriptor *config)

Probe device.

Parameters:
funcUSB function
configConfiguration descriptor
Return values:
rcReturn status code

Definition at line 1383 of file usb.h.

Referenced by usb_probe().

void( * usb_driver::remove)(struct usb_function *func)

Remove device.

Parameters:
funcUSB function

Definition at line 1390 of file usb.h.

Referenced by usb_remove().


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