From e4363c116cd398721ad1eea6d7cfc68ebfaaf136 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Wed, 19 Sep 2007 23:20:55 +0000 Subject: 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 --- firmware/usbstack/controller.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'firmware/usbstack/controller.h') diff --git a/firmware/usbstack/controller.h b/firmware/usbstack/controller.h index 4e742035e6..c91eab785a 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; -- cgit v1.2.3