summaryrefslogtreecommitdiff
path: root/openpcd/firmware.txt
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-07-24 18:53:34 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-07-24 18:53:34 +0000
commit500fb4be8abbbc80c58ebe2a6d25f0ee407b928a (patch)
treec3606205036d8aba0dfe0fa2ae571061cbd84c12 /openpcd/firmware.txt
parentcaf5000333d37d2a772236bd6c3d539b0ee39c86 (diff)
remaining changes after half-failing commit
git-svn-id: https://svn.openpcd.org:2342/trunk@36 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpcd/firmware.txt')
-rw-r--r--openpcd/firmware.txt18
1 files changed, 17 insertions, 1 deletions
diff --git a/openpcd/firmware.txt b/openpcd/firmware.txt
index b34113c..6f8f85c 100644
--- a/openpcd/firmware.txt
+++ b/openpcd/firmware.txt
@@ -65,6 +65,22 @@ EP3 interrupt
3.1 dumb interface
+struct usb_pcd_out_hdr {
+ u_int8_t cmd; /* command */
+ u_int8_t flags;
+ u_int8_t reg; /* register */
+ u_int8_t res;
+ u_int16_t len;
+ u_int8_t data[0];
+} __attribute__ ((packed));
+
+#define USB_PCD_CMD_WRITE_REG 0x01
+#define USB_PCD_CMD_WRITE_FIFO 0x02
+#define USB_PCD_CMD_WRITE_VFIFO 0x03
+#define USB_PCD_CMD_READ_REG 0x11
+#define USB_PCD_CMD_READ_FIFO 0x12
+#define USB_PCD_CMD_WRITE_VFIFO 0x13
+
TBD
3.2 Intelligent interface
@@ -102,7 +118,7 @@ is used to search for a free buffer using which the UDC RX DMA can be refilled.
4.1.1 Performing SPI Register Read
-[ UDC has configured RX dma for reception of usb packets ]
+[ UDC has configured RX FIFO for reception of usb packets ]
- UDC issues interrupt that USB endpoint receive has completed (FIFO)
- UDC driver defragments multiple packets into one transfer [optional]
- UDC driver submits another buffer for DMA reception
personal git repositories of Harald Welte. Your mileage may vary