summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-08-23 20:25:41 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-08-23 20:25:41 +0000
commit38f0dbf7f76ff2350f28e2a51702be3690fd5952 (patch)
tree3ff0120358a49f4c177c404ebdfbabed516bb02f
parent500927717f4e7a950a53bbfe63657e2d9fea556a (diff)
- add some more comment
- add missing include file git-svn-id: https://svn.openpcd.org:2342/trunk@126 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-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