summaryrefslogtreecommitdiff
path: root/sys/src/9/port/usb.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-07-16 22:29:29 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-07-16 22:29:29 +0200
commit5e6f1b5769e3e8c391178d82c570fbb566e9bbfb (patch)
treedd97aab94763eb16022a23f8d6f9e0633edf5a40 /sys/src/9/port/usb.h
parent990a985836be2f3bc98755999006cb188815aad9 (diff)
usbxhci: commit work in progress xhci driver, no config yet
Diffstat (limited to 'sys/src/9/port/usb.h')
-rw-r--r--sys/src/9/port/usb.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/src/9/port/usb.h b/sys/src/9/port/usb.h
index 8ee5e5138..2853513e1 100644
--- a/sys/src/9/port/usb.h
+++ b/sys/src/9/port/usb.h
@@ -41,6 +41,7 @@ enum
Lowspeed,
Highspeed,
Nospeed,
+ Superspeed,
/* request type */
Rh2d = 0<<7,
@@ -184,8 +185,16 @@ struct Udev
int ishub; /* hubs can allocate devices */
int isroot; /* is a root hub */
int speed; /* Full/Low/High/No -speed */
- int hub; /* dev number for the parent hub */
+ int hub; /* device address for the parent hub */
int port; /* port number in the parent hub */
+ int addr; /* device address */
+ int depth; /* hub depth from root port */
+ int rootport; /* port number on root hub */
+ int routestr; /* route string */
+
+ void *aux;
+ void (*free)(void*);
+
Ep* eps[Ndeveps]; /* end points for this device (cached) */
};