usb: Transfer and endpoint descriptor structure

This commit is contained in:
Cacodemon345
2023-05-07 17:29:06 +06:00
parent ae123f1f38
commit 708f00699b
2 changed files with 19 additions and 1 deletions

View File

@@ -87,6 +87,25 @@ typedef struct
uint16_t HccaPad1;
uint32_t HccaDoneHead;
} usb_hcca_t;
/* Transfer descriptors */
typedef struct
{
uint32_t Control;
uint32_t CBP;
uint32_t NextTD;
uint32_t BE;
} usb_td_t;
/* Endpoint descriptors */
typedef struct
{
uint32_t Control;
uint32_t TailP;
uint32_t HeadP;
uint32_t NextED;
} usb_ed_t;
/* USB endpoint device struct. Incomplete and unused. */
typedef struct
{

View File

@@ -341,7 +341,6 @@ ohci_poll_interrupt_descriptors(void* priv)
/* TODO: Actually poll the interrupt descriptors. */
dev->ohci_interrupt_counter++;
timer_on_auto(&dev->ohci_interrupt_desc_poll_timer, 1000.);
}