grml...
[seabios.git] / src / usb-hub.h
index 24d8f1f078564614d2d919f0416772af7d74600f..7672028dd7ddca59b09d10b24ea7b2d3c9b549da 100644 (file)
@@ -2,7 +2,8 @@
 #define __USB_HUB_H
 
 // usb-hub.c
-int usb_hub_init(u32 endp);
+struct usb_pipe;
+int usb_hub_init(struct usb_pipe *pipe);
 
 
 /****************************************************************
@@ -49,6 +50,8 @@ struct usb_port_status {
 #define USB_PORT_STAT_RESET             0x0010
 #define USB_PORT_STAT_L1                0x0020
 #define USB_PORT_STAT_POWER             0x0100
+#define USB_PORT_STAT_SPEED_SHIFT       9
+#define USB_PORT_STAT_SPEED_MASK        (0x3 << USB_PORT_STAT_SPEED_SHIFT)
 #define USB_PORT_STAT_LOW_SPEED         0x0200
 #define USB_PORT_STAT_HIGH_SPEED        0x0400
 #define USB_PORT_STAT_TEST              0x0800