diff options
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 4e742035e6..c91eab785a 100644 --- a/firmware/usbstack/controller.h +++ b/firmware/usbstack/controller.h | |||
@@ -20,6 +20,26 @@ | |||
20 | #ifndef _USBSTACK_CONTROLLER_H_ | 20 | #ifndef _USBSTACK_CONTROLLER_H_ |
21 | #define _USBSTACK_CONTROLLER_H_ | 21 | #define _USBSTACK_CONTROLLER_H_ |
22 | 22 | ||
23 | /* | ||
24 | * stack datatypes | ||
25 | */ | ||
26 | struct usb_response { | ||
27 | void* buf; | ||
28 | uint32_t length; | ||
29 | }; | ||
30 | |||
31 | struct usb_ep { | ||
32 | const char name[15]; | ||
33 | uint8_t type; | ||
34 | uint32_t ep_num; /* which endpoint? */ | ||
35 | uint32_t pipe_num; /* which pipe? */ | ||
36 | uint32_t maxpacket; | ||
37 | bool claimed; | ||
38 | |||
39 | struct usb_endpoint_descriptor *desc; | ||
40 | struct list_head list; | ||
41 | }; | ||
42 | |||
23 | struct usb_controller { | 43 | struct usb_controller { |
24 | const char* name; | 44 | const char* name; |
25 | enum usb_controller_type type; | 45 | enum usb_controller_type type; |