Merge pull request #3321 from Cacodemon345/usb-work

usb: Transfer and endpoint descriptor structure
This commit is contained in:
Miran Grča
2023-05-07 13:31:12 +02:00
committed by GitHub
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.);
}