diff options
author | JiebingLi <jiebing.li@intel.com> | 2010-08-05 17:18:29 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 21:21:19 +0400 |
commit | 912c93d1606f60932de3e2f31db3722a9f069ed9 (patch) | |
tree | 24f25c940fcdce6f9d889241397881c970977274 /drivers/usb/gadget/langwell_udc.h | |
parent | 3211cbc20b406799423385cf62e1f1879b1ca8cc (diff) | |
download | linux-912c93d1606f60932de3e2f31db3722a9f069ed9.tar.xz |
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.h | 12 |
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; }; |