summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci.h
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-08-01 09:19:28 -0400
committerTom Rini <trini@ti.com>2013-08-01 09:19:28 -0400
commit245d65b6e503f3a159cffb3392ac3b2c25606d8e (patch)
tree468379202891d516817dfad73ac6ba907bb1156a /drivers/usb/host/ehci.h
parent327b5c9f7cde4e621c2f49fbd2e9890d32f2bef8 (diff)
parent8bc3603675f7bf4dfa4eb6bdaf2aa0a8ddce9fa6 (diff)
downloadu-boot-imx-245d65b6e503f3a159cffb3392ac3b2c25606d8e.zip
u-boot-imx-245d65b6e503f3a159cffb3392ac3b2c25606d8e.tar.gz
u-boot-imx-245d65b6e503f3a159cffb3392ac3b2c25606d8e.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r--drivers/usb/host/ehci.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index d090f0a..bd52afe 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -22,6 +22,8 @@
#ifndef USB_EHCI_H
#define USB_EHCI_H
+#include <usb.h>
+
#if !defined(CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS)
#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 2
#endif
@@ -252,6 +254,17 @@ struct QH {
};
};
+struct ehci_ctrl {
+ struct ehci_hccr *hccr; /* R/O registers, not need for volatile */
+ struct ehci_hcor *hcor;
+ int rootdev;
+ uint16_t portreset;
+ struct QH qh_list __aligned(USB_DMA_MINALIGN);
+ struct QH periodic_queue __aligned(USB_DMA_MINALIGN);
+ uint32_t *periodic_list;
+ int ntds;
+};
+
/* Low level init functions */
int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor);
int ehci_hcd_stop(int index);