summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openpcd/firmware/src/usb_handler.c4
-rw-r--r--openpcd/firmware/src/usb_handler.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/openpcd/firmware/src/usb_handler.c b/openpcd/firmware/src/usb_handler.c
index 4252369..7a736e8 100644
--- a/openpcd/firmware/src/usb_handler.c
+++ b/openpcd/firmware/src/usb_handler.c
@@ -48,6 +48,8 @@ static int usb_in(struct req_ctx *rctx)
DEBUGPCR("no handler for this class\n");
}
+/* Process all pending request contexts that want to Tx on either
+ * IN or INTERRUPT endpoint */
void usb_out_process(void)
{
struct req_ctx *rctx;
@@ -67,6 +69,8 @@ void usb_out_process(void)
}
}
+/* process incoming USB packets (OUT pipe) that have already been
+ * put into request contexts by the UDP IRQ handler */
void usb_in_process(void)
{
struct req_ctx *rctx;
diff --git a/openpcd/firmware/src/usb_handler.h b/openpcd/firmware/src/usb_handler.h
index b4ecfbd..a281c66 100644
--- a/openpcd/firmware/src/usb_handler.h
+++ b/openpcd/firmware/src/usb_handler.h
@@ -1,6 +1,8 @@
#ifndef _USB_HANDLER_H
#define _USB_HANDLER_H
+#include "openpcd.h"
+
#define MAX_PAYLOAD_LEN (64 - sizeof(struct openpcd_hdr))
typedef int usb_cmd_fn(struct req_ctx *rctx);
personal git repositories of Harald Welte. Your mileage may vary