X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=usb%2Fcore%2Fcore.h;h=b8149d3aef08230afb11d4918c0c1d92b7979883;hb=e8dd6b27d501339472cb5c8e0c94f3d2484e7810;hp=cb521fc394cd8c3861b85595644910f4b81d1252;hpb=428b93c4f10532ef7f4ce17f6d641e9e86dbc331;p=ppcskel.git diff --git a/usb/core/core.h b/usb/core/core.h index cb521fc..b8149d3 100644 --- a/usb/core/core.h +++ b/usb/core/core.h @@ -82,6 +82,35 @@ struct usb_conf { u8 iConfiguration; u8 bmAttributes; u8 bMaxPower; + + struct usb_conf *next; + struct usb_intf *intf; +}; + +struct usb_intf { + u8 bLength; + u8 bDescriptorType; + u8 bInterfaceNumber; + u8 bAlternateSetting; + u8 bNumEndpoints; + u8 bInterfaceClass; + u8 bInterfaceSubClass; + u8 bInterfaceProtocol; + u8 iInterface; + + struct usb_intf *next; + struct usb_endp *endp; +}; + +struct usb_endp { + u8 bLength; + u8 bDescriptorType; + u8 bEndpointAddress; + u8 bmAttributes; + u16 wMaxPacketSize; + u8 bInterval; + + struct usb_endp *next; }; struct usb_endpoint { @@ -168,7 +197,7 @@ u8 usb_remove_device(struct usb_device *dev); u8 usb_register_driver(struct usb_driver *driver); void usb_probe_driver(); - +void lsusb(struct usb_device *dev); struct usb_irp *usb_get_irp(); u8 usb_remove_irp(struct usb_irp *irp);