diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-07-12 15:29:22 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-07-12 15:29:22 +0000 |
commit | 11f9f3cd46facc74385d29510dae4ab292f22275 (patch) | |
tree | fd71206ffbc0da5745499b1815394c20f0e06aad | |
parent | ff7c0cd7c5574a58e968b48a0920dd16253297fb (diff) | |
download | rockbox-11f9f3cd46facc74385d29510dae4ab292f22275.tar.gz rockbox-11f9f3cd46facc74385d29510dae4ab292f22275.zip |
Add data structures
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21811 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/export/ohci.h | 27 |
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 @@ | |||
44 | #define OHCI_RH_STATUS (*(volatile unsigned int *)(OHCI_BASE+0x50)) | 44 | #define OHCI_RH_STATUS (*(volatile unsigned int *)(OHCI_BASE+0x50)) |
45 | #define OHCI_RH_PORT_STATUS_1 (*(volatile unsigned int *)(OHCI_BASE+0x54)) | 45 | #define OHCI_RH_PORT_STATUS_1 (*(volatile unsigned int *)(OHCI_BASE+0x54)) |
46 | #define OHCI_RH_PORT_STATUS_2 (*(volatile unsigned int *)(OHCI_BASE+0x58)) | 46 | #define OHCI_RH_PORT_STATUS_2 (*(volatile unsigned int *)(OHCI_BASE+0x58)) |
47 | 47 | ||
48 | /* Transfer Descriptor */ | ||
49 | struct ohci_td | ||
50 | { | ||
51 | uint32_t td_config; | ||
52 | void *current_buffer_pointer; | ||
53 | struct ohci_td *nextTD; | ||
54 | void *buffer_end; | ||
55 | }; | ||
56 | |||
57 | /* Endpoint Descriptor */ | ||
58 | struct ohci_ed | ||
59 | { | ||
60 | uint32_t ep_config; | ||
61 | struct ohci_td *tail; | ||
62 | struct ohct_td *head; | ||
63 | struct ohci_ed *nextED; | ||
64 | }; | ||
65 | |||
66 | /* Host Controller Communications Area */ | ||
48 | struct ohci_hcca | 67 | struct ohci_hcca |
49 | { | 68 | { |
50 | int32_t interrupt_table[32]; | 69 | struct ohci_ed (*interrupt_ed_table)[32]; |
51 | unsigned short frame_number; | 70 | unsigned short frame_number; |
52 | unsigned short pad1; | 71 | unsigned short pad1; |
53 | int32_t done_head; | 72 | uint32_t done_head; |
54 | unsigned char reserved[116]; | 73 | unsigned char reserved[116]; |
55 | }; | 74 | }; |
75 | |||
76 | |||