X-Git-Url: https://git.librecmc.org/?p=librecmc%2Fopen-ath9k-htc-firmware.wiki.git;a=blobdiff_plain;f=usb-regs.md;h=3767be2eafe8adb142d78f56d5fbedd52754da67;hp=8c0cabcd25490fab2ca72bfb4ca1eaac406e3423;hb=0985d9902d9291f6ace1c48a635268d7b48a60c8;hpb=70bb22d1a0a4cd215e0895b2795d5fd7707b5c93 diff --git a/usb-regs.md b/usb-regs.md index 8c0cabc..3767be2 100644 --- a/usb-regs.md +++ b/usb-regs.md @@ -17,9 +17,9 @@ Default # 0x00 ZM_MAIN_CTRL_OFFSET * BIT7 * BIT6 - 1 = HighSpeed is set (read only?) -* BIT5 -* BIT4 -* BIT3 +* BIT5 - chip enable +* BIT4 - sfrst. soft reset? +* BIT3 - go suspend * BIT2 - 1 = enable global Int * BIT1 * BIT0 - 1 = set Remote Wake Up; @@ -128,6 +128,8 @@ These bits indicate if fallowing groups got some interrupt. # 0x22 ZM_INTR_SOURCE_1_OFFSET # 0x23 ZM_INTR_SOURCE_2_OFFSET +short packed interrupts? + # 0x24 ZM_INTR_SOURCE_3_OFFSET # 0x25 ZM_INTR_SOURCE_4_OFFSET * BIT7 - End of data. @@ -141,10 +143,10 @@ these endpoints are handled by DMA * BIT6 - vUsb_Status_In()? # 0x28 ZM_INTR_SOURCE_7_OFFSET -* BIT7 -* BIT6 -* BIT5 -* BIT4 +* BIT7 - RX0BTYE_INT +* BIT6 - TX0BTYE_INT +* BIT5 - ISO seq abort +* BIT4 - ISO seq error * BIT3 - USB resume * BIT2 - USB suspend * BIT1 - USB reset interrupt. @@ -153,7 +155,9 @@ these endpoints are handled by DMA # 0x2F mUsbEPMap EP0 code use: ZM_FUSB_BASE+0x30+(EPn-1) (0x0F | FIFOn << 4) = OUT -(0xF0 | FIFOn) = IN +(0xF0 | FIFOn) = IN +**probably incorrect interpretation. It should be FUSB_REG_IDLE_CNT + set suspend delay in ms** for FIFOn see mUsbFIFOMap registers.