From 70bb22d1a0a4cd215e0895b2795d5fd7707b5c93 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Tue, 24 Sep 2013 11:36:49 -0700 Subject: [PATCH] Updated usb regs (markdown) --- usb-regs.md | 44 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/usb-regs.md b/usb-regs.md index bc22852..8c0cabc 100644 --- a/usb-regs.md +++ b/usb-regs.md @@ -366,23 +366,59 @@ Current layout: # 0x9e mUsbFIFOConfig FIFO14 # 0x9f mUsbFIFOConfig FIFO15 -# 0xAE ZM_EP3_BYTE_COUNT_HIGH_OFFSET +# 0xa0 FUSB_REG_FIFO0_INS +* BIT0 - BIT2 - high offset of byte count in fifo. + +# 0xa1 FUSB_REG_FIFO1_INS +# 0xa2 FUSB_REG_FIFO2_INS +# 0xa3 FUSB_REG_FIFO3_INS +# 0xa4 FUSB_REG_FIFO4_INS +# 0xa5 FUSB_REG_FIFO5_INS +# 0xa6 FUSB_REG_FIFO6_INS +# 0xa7 FUSB_REG_FIFO7_INS +# 0xa8 FUSB_REG_FIFO8_INS +# 0xa9 FUSB_REG_FIFO9_INS +# 0xaa FUSB_REG_FIFO10_INS +# 0xab FUSB_REG_FIFO11_INS +# 0xac FUSB_REG_FIFO12_INS +# 0xad FUSB_REG_FIFO13_INS +# 0xae FUSB_REG_FIFO14_INS +or known as ZM_EP3_BYTE_COUNT_HIGH_OFFSET BIT3 - 1 xfer done? comments: after sending data from target to host, set BIT3 -# 0xAF ZM_EP4_BYTE_COUNT_HIGH_OFFSET +# 0xaf FUSB_REG_FIFO15_INS +or known ZM_EP4_BYTE_COUNT_HIGH_OFFSET BIT4 - 1 - reset fifo; 0 - disable reset? comments: probably compatible with ZM_EP3_BYTE_COUNT_HIGH_OFFSET. **These name reg do not fit to pattern!!!** Compare with 0x3e, 0x3f and 0x5e, 0x5f. If we have 0x3e, 0x3f and 0x5e, 0x5f, why do we need this register? -# 0xBE ZM_EP3_BYTE_COUNT_LOW_OFFSET +# 0xb0 FUSB_REG_FIFO0_BCNT +# 0xb1 FUSB_REG_FIFO1_BCNT +# 0xb2 FUSB_REG_FIFO2_BCNT +# 0xb3 FUSB_REG_FIFO3_BCNT +# 0xb4 FUSB_REG_FIFO4_BCNT +# 0xb5 FUSB_REG_FIFO5_BCNT +# 0xb6 FUSB_REG_FIFO6_BCNT +# 0xb7 FUSB_REG_FIFO7_BCNT +# 0xb8 FUSB_REG_FIFO8_BCNT +# 0xb9 FUSB_REG_FIFO9_BCNT +# 0xba FUSB_REG_FIFO10_BCNT +# 0xbb FUSB_REG_FIFO11_BCNT +# 0xbc FUSB_REG_FIFO12_BCNT +# 0xbd FUSB_REG_FIFO13_BCNT +# 0xbe FUSB_REG_FIFO14_BCNT +or known as ZM_EP3_BYTE_COUNT_LOW_OFFSET size of data in fifo buffer? never used? -# 0xBF ZM_EP4_BYTE_COUNT_LOW_OFFSET +# 0xbf FUSB_REG_FIFO15_BCNT +or known as ZM_EP4_BYTE_COUNT_LOW_OFFSET size of data in fifo buffer. Maximum size of EP4 should be 64 Bytes. If reported value is bigger, then buffer is defiantly corrupt. # 0xc0 FIFO0 DATA OFFSET? +or known as FUSB_REG_FIFO0_DP + # 0xc4 FIFO1 DATA OFFSET? # 0xc8 FIFO2 DATA OFFSET? # 0xcc FIFO3 DATA OFFSET? -- 2.25.1