summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/langwell_udc.h
diff options
context:
space:
mode:
authorJiebingLi <jiebing.li@intel.com>2010-08-05 14:18:29 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 10:21:19 -0700
commit912c93d1606f60932de3e2f31db3722a9f069ed9 (patch)
tree24f25c940fcdce6f9d889241397881c970977274 /drivers/usb/gadget/langwell_udc.h
parent3211cbc20b406799423385cf62e1f1879b1ca8cc (diff)
USB: langwell: USB Client driver memory handling
SRAM Memory handling for USB client function Signed-off-by: JiebingLi <jiebing.li@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/langwell_udc.h')
-rw-r--r--drivers/usb/gadget/langwell_udc.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/usb/gadget/langwell_udc.h b/drivers/usb/gadget/langwell_udc.h
index 3d3206eec544..f1d9c1bb04f3 100644
--- a/drivers/usb/gadget/langwell_udc.h
+++ b/drivers/usb/gadget/langwell_udc.h
@@ -18,11 +18,7 @@
*/
#include <linux/usb/langwell_udc.h>
-
-#if defined(CONFIG_USB_LANGWELL_OTG)
#include <linux/usb/langwell_otg.h>
-#endif
-
/*-------------------------------------------------------------------------*/
@@ -199,7 +195,9 @@ struct langwell_udc {
vbus_active:1,
suspended:1,
stopped:1,
- lpm:1; /* LPM capability */
+ lpm:1, /* LPM capability */
+ has_sram:1, /* SRAM caching */
+ got_sram:1;
/* pci state used to access those endpoints */
struct pci_dev *pdev;
@@ -225,6 +223,10 @@ struct langwell_udc {
/* make sure release() is done */
struct completion *done;
+ /* for private SRAM caching */
+ unsigned int sram_addr;
+ unsigned int sram_size;
+
/* device status data for get_status request */
u16 dev_status;
};