projects
/
ppcskel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
intterupt transfers done right now. however, the keyboard driver behave
[ppcskel.git]
/
usb
/
host
/
ohci.h
diff --git
a/usb/host/ohci.h
b/usb/host/ohci.h
index 6bcd12186e64a25b45dae8a47c901938e8541199..a857ba0f33bfb654cb90769ef34c3149c8f148b4 100644
(file)
--- a/
usb/host/ohci.h
+++ b/
usb/host/ohci.h
@@
-65,8
+65,7
@@
Copyright (C) 2009 Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
/* For initializing controller (mask in an HCFS mode too) */
#define OHCI_CONTROL_INIT (3 << 0)
#define OHCI_INTR_INIT \
/* For initializing controller (mask in an HCFS mode too) */
#define OHCI_CONTROL_INIT (3 << 0)
#define OHCI_INTR_INIT \
- (OHCI_INTR_MIE | OHCI_INTR_RHSC | OHCI_INTR_UE \
- | OHCI_INTR_RD | OHCI_INTR_WDH)
+ (OHCI_INTR_MIE | OHCI_INTR_RHSC | OHCI_INTR_UE)
/* OHCI ROOT HUB REGISTER MASKS */
/* OHCI ROOT HUB REGISTER MASKS */
@@
-120,10
+119,15
@@
struct ohci_hcca {
} ALIGNED(256);
struct endpoint_descriptor {
} ALIGNED(256);
struct endpoint_descriptor {
+ /* required by HC */
u32 flags;
u32 tailp;
u32 headp;
u32 nexted;
u32 flags;
u32 tailp;
u32 headp;
u32 nexted;
+
+ /* required by software */
+ u32 tdcount;
+ u8 type;
} ALIGNED(16);
#define OHCI_ENDPOINT_ADDRESS_MASK 0x0000007f
} ALIGNED(16);
#define OHCI_ENDPOINT_ADDRESS_MASK 0x0000007f
@@
-157,7
+161,9
@@
struct general_td {
/* required by software */
u32 bufaddr;
/* required by software */
u32 bufaddr;
- u16 buflen;
+ u32 buflen;
+ u32 pad1;
+ u32 pad2;
} ALIGNED(16);
#define OHCI_TD_BUFFER_ROUNDING 0x00040000
} ALIGNED(16);
#define OHCI_TD_BUFFER_ROUNDING 0x00040000