Data Fields
usb_hub Struct Reference

A USB hub. More...

#include <usb.h>

Data Fields

const char * name
 Name. More...
struct usb_busbus
 USB bus. More...
struct usb_deviceusb
 Underlying USB device, if any. More...
unsigned int protocol
 Hub protocol. More...
unsigned int ports
 Number of ports. More...
struct list_head list
 List of hubs. More...
struct usb_hub_host_operationshost
 Host controller operations. More...
struct usb_hub_driver_operationsdriver
 Driver operations. More...
void * priv
 Driver private data. More...
struct usb_port port [0]
 Port list. More...

Detailed Description

A USB hub.

Definition at line 826 of file usb.h.

Field Documentation

◆ name

const char* usb_hub::name


Definition at line 828 of file usb.h.

Referenced by alloc_usb(), alloc_usb_hub(), register_usb(), register_usb_hub(), and usb_hotplugged().

◆ bus

struct usb_bus* usb_hub::bus

◆ usb

struct usb_device* usb_hub::usb

◆ protocol

unsigned int usb_hub::protocol

Hub protocol.

Definition at line 834 of file usb.h.

Referenced by alloc_usb_hub(), hub_disable(), hub_enable(), and hub_speed().

◆ ports

unsigned int usb_hub::ports

◆ list

struct list_head usb_hub::list

List of hubs.

Definition at line 839 of file usb.h.

Referenced by register_usb_hub(), and unregister_usb_hub().

◆ host

struct usb_hub_host_operations* usb_hub::host

Host controller operations.

Definition at line 842 of file usb.h.

Referenced by alloc_usb_hub(), register_usb_hub(), and unregister_usb_hub().

◆ driver

struct usb_hub_driver_operations* usb_hub::driver

◆ priv

void* usb_hub::priv

Driver private data.

Definition at line 846 of file usb.h.

Referenced by usb_hub_get_drvdata(), and usb_hub_set_drvdata().

◆ port

struct usb_port usb_hub::port[0]

Port list.

This must be the last field within the structure.

Definition at line 852 of file usb.h.

Referenced by alloc_usb_hub(), and usb_port().

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