From 11f9f3cd46facc74385d29510dae4ab292f22275 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 12 Jul 2009 15:29:22 +0000 Subject: [PATCH] Add data structures git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21811 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/ohci.h | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/firmware/export/ohci.h b/firmware/export/ohci.h index 35fae29ed8..4a82781c5d 100644 --- a/firmware/export/ohci.h +++ b/firmware/export/ohci.h @@ -44,12 +44,33 @@ #define OHCI_RH_STATUS (*(volatile unsigned int *)(OHCI_BASE+0x50)) #define OHCI_RH_PORT_STATUS_1 (*(volatile unsigned int *)(OHCI_BASE+0x54)) #define OHCI_RH_PORT_STATUS_2 (*(volatile unsigned int *)(OHCI_BASE+0x58)) - + +/* Transfer Descriptor */ +struct ohci_td +{ + uint32_t td_config; + void *current_buffer_pointer; + struct ohci_td *nextTD; + void *buffer_end; +}; + +/* Endpoint Descriptor */ +struct ohci_ed +{ + uint32_t ep_config; + struct ohci_td *tail; + struct ohct_td *head; + struct ohci_ed *nextED; +}; + +/* Host Controller Communications Area */ struct ohci_hcca { - int32_t interrupt_table[32]; + struct ohci_ed (*interrupt_ed_table)[32]; unsigned short frame_number; unsigned short pad1; - int32_t done_head; + uint32_t done_head; unsigned char reserved[116]; }; + +