summaryrefslogtreecommitdiff
path: root/firmware/usbstack/controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usbstack/controller.h')
-rw-r--r--firmware/usbstack/controller.h20
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;