Merge pull request #3321 from Cacodemon345/usb-work
usb: Transfer and endpoint descriptor structure
This commit is contained in:
@@ -87,6 +87,25 @@ typedef struct
|
|||||||
uint16_t HccaPad1;
|
uint16_t HccaPad1;
|
||||||
uint32_t HccaDoneHead;
|
uint32_t HccaDoneHead;
|
||||||
} usb_hcca_t;
|
} 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. */
|
/* USB endpoint device struct. Incomplete and unused. */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@@ -341,7 +341,6 @@ ohci_poll_interrupt_descriptors(void* priv)
|
|||||||
|
|
||||||
/* TODO: Actually poll the interrupt descriptors. */
|
/* TODO: Actually poll the interrupt descriptors. */
|
||||||
|
|
||||||
dev->ohci_interrupt_counter++;
|
|
||||||
timer_on_auto(&dev->ohci_interrupt_desc_poll_timer, 1000.);
|
timer_on_auto(&dev->ohci_interrupt_desc_poll_timer, 1000.);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user