usb: host: pehci: Add USB core changes needed by PEHCI
A user can initiate host compliance tests or suspend/resume requests over the ISP1763A USB Host controller by issuing IOCTLs on the pehci device. Add necessary changes in USB core to support these requests. These changes are taken from the 1.0.6.0 version of ST-E pehci driver present at: http://www.box.net/shared/static/o5esh7r14q.zip along with the fixes for checkpatch errors and removal of unused variables. Change-Id: Ic6b175bcd3104730bac90278456e3bfbcd507801 Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
This commit is contained in:
committed by
Stephen Boyd
parent
e3c0e555c3
commit
05ea6076b8
@@ -372,6 +372,16 @@ struct usb_bus {
|
||||
* limit. Because the arrays need to add a bit for hub status data, we
|
||||
* do 31, so plus one evens out to four bytes.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_USB_PEHCI_HCD) || defined(CONFIG_USB_PEHCI_HCD_MODULE)
|
||||
#define USB_OTG_SUSPEND 0x1
|
||||
#define USB_OTG_ENUMERATE 0x2
|
||||
#define USB_OTG_DISCONNECT 0x4
|
||||
#define USB_OTG_RESUME 0x8
|
||||
#define USB_OTG_REMOTEWAKEUP 0x10
|
||||
#define USB_OTG_WAKEUP_ALL 0x20
|
||||
#endif
|
||||
|
||||
#define USB_MAXCHILDREN (31)
|
||||
|
||||
struct usb_tt;
|
||||
@@ -500,6 +510,18 @@ struct usb_device {
|
||||
struct dentry *usbfs_dentry;
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_USB_PEHCI_HCD) || defined(CONFIG_USB_PEHCI_HCD_MODULE)
|
||||
/*otg add ons */
|
||||
u8 otgdevice; /*device is otg type */
|
||||
|
||||
/*otg states from otg driver, suspend, enumerate, disconnect */
|
||||
u8 otgstate;
|
||||
void *otgpriv;
|
||||
void (*otg_notif) (void *otg_priv,
|
||||
unsigned long notif, unsigned long data);
|
||||
void *hcd_priv;
|
||||
void (*hcd_suspend) (void *hcd_priv);
|
||||
#endif
|
||||
int maxchild;
|
||||
struct usb_device **children;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user