diff options
| author | hathach <[email protected]> | 2023-05-18 15:44:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-05-18 15:44:08 +0700 |
| commit | 27acaa013bd8af8ac29e966d7dc145b33dd6bc73 (patch) | |
| tree | a1e584eb73b6ef5977c4d4c96af670ec99bc4a3b /src/portable/ehci/ehci.h | |
| parent | 49e2aabc819f761284dd490fd4f1c5d4ad5c3695 (diff) | |
refactor ehci, since usbh only queue 1 TD per queue head
Diffstat (limited to 'src/portable/ehci/ehci.h')
| -rw-r--r-- | src/portable/ehci/ehci.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/portable/ehci/ehci.h b/src/portable/ehci/ehci.h index d7d37d627..b525131c6 100644 --- a/src/portable/ehci/ehci.h +++ b/src/portable/ehci/ehci.h @@ -164,12 +164,10 @@ typedef struct TU_ATTR_ALIGNED(32) uint8_t pid; uint8_t interval_ms; // polling interval in frames (or millisecond) - uint16_t total_xferred_bytes; // number of bytes xferred until a qtd with ioc bit set - uint8_t reserved2[2]; + uint8_t TU_RESERVED[8]; - // TODO USBH will only queue 1 TD per QHD, thus we can remove the list - ehci_qtd_t * volatile p_qtd_list_head; // head of the scheduled TD list - ehci_qtd_t * volatile p_qtd_list_tail; // tail of the scheduled TD list + // usbh will only queue 1 TD per QHD + ehci_qtd_t * volatile p_attached_qtd; } ehci_qhd_t; TU_VERIFY_STATIC( sizeof(ehci_qhd_t) == 64, "size is not correct" ); @@ -248,14 +246,6 @@ typedef struct TU_ATTR_ALIGNED(32) /// Word 4-5: Buffer Pointer List uint32_t buffer[2]; // buffer[1] TP: Transaction Position - T-Count: Transaction Count -// union{ -// uint32_t BufferPointer1; -// struct { -// volatile uint32_t TCount : 3; -// volatile uint32_t TPosition : 2; -// }; -// }; - /*---------- Word 6 ----------*/ ehci_link_t back; |
