summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-07-12 15:29:22 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-07-12 15:29:22 +0000
commit11f9f3cd46facc74385d29510dae4ab292f22275 (patch)
treefd71206ffbc0da5745499b1815394c20f0e06aad /firmware
parentff7c0cd7c5574a58e968b48a0920dd16253297fb (diff)
downloadrockbox-11f9f3cd46facc74385d29510dae4ab292f22275.tar.gz
rockbox-11f9f3cd46facc74385d29510dae4ab292f22275.tar.bz2
rockbox-11f9f3cd46facc74385d29510dae4ab292f22275.zip
Add data structures
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21811 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/ohci.h27
1 files 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];
};
+
+