diff options
| author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-09-19 23:20:55 +0000 |
|---|---|---|
| committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-09-19 23:20:55 +0000 |
| commit | e4363c116cd398721ad1eea6d7cfc68ebfaaf136 (patch) | |
| tree | d3982a5d13991f171bdb492795bdc656c611da0f /firmware/usbstack/controller.h | |
| parent | 72e7ea22b53773850bee3d496fac0f97d3677503 (diff) | |
| download | rockbox-e4363c116cd398721ad1eea6d7cfc68ebfaaf136.zip rockbox-e4363c116cd398721ad1eea6d7cfc68ebfaaf136.tar.gz rockbox-e4363c116cd398721ad1eea6d7cfc68ebfaaf136.tar.bz2 rockbox-e4363c116cd398721ad1eea6d7cfc68ebfaaf136.tar.xz | |
usb stack code police, fix some warnings and set svn keywords correctly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14761 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/controller.h')
| -rw-r--r-- | firmware/usbstack/controller.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/firmware/usbstack/controller.h b/firmware/usbstack/controller.h index 4e74203..c91eab7 100644 --- a/firmware/usbstack/controller.h +++ b/firmware/usbstack/controller.h @@ -20,6 +20,26 @@ #ifndef _USBSTACK_CONTROLLER_H_ #define _USBSTACK_CONTROLLER_H_ +/* + * stack datatypes + */ +struct usb_response { + void* buf; + uint32_t length; +}; + +struct usb_ep { + const char name[15]; + uint8_t type; + uint32_t ep_num; /* which endpoint? */ + uint32_t pipe_num; /* which pipe? */ + uint32_t maxpacket; + bool claimed; + + struct usb_endpoint_descriptor *desc; + struct list_head list; +}; + struct usb_controller { const char* name; enum usb_controller_type type; |