summaryrefslogtreecommitdiff
path: root/firmware/export/usb.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-01-19 13:41:25 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-01-19 13:41:25 +0000
commit616c98b38f6ddac0ac3dde8ec0fa248f835717e2 (patch)
tree5eeeabb85fbefa162a438edca88611c1bc688269 /firmware/export/usb.h
parentcef6399c4c3bcaa35733bdab8b9016b66b71a6f0 (diff)
downloadrockbox-616c98b38f6ddac0ac3dde8ec0fa248f835717e2.tar.gz
rockbox-616c98b38f6ddac0ac3dde8ec0fa248f835717e2.zip
USB detection changes. c200/e200: Consider USB to be powered when charger is plugged but detect USB connection by bus reset. When received, disconnect and restart the driver fully enabled. imx31: Fix hack used to make initial connect succeeded-- set PHY type before initial reset. General: Move some target code out of usb-drv-arc.c and implement it in respective usb sources and CPU headers so things stay clean.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19797 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/usb.h')
-rw-r--r--firmware/export/usb.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/export/usb.h b/firmware/export/usb.h
index a6cfad5889..0a0539a622 100644
--- a/firmware/export/usb.h
+++ b/firmware/export/usb.h
@@ -33,8 +33,11 @@
33enum { 33enum {
34 USB_INSERTED, /* Event+State */ 34 USB_INSERTED, /* Event+State */
35 USB_EXTRACTED, /* Event+State */ 35 USB_EXTRACTED, /* Event+State */
36#ifdef HAVE_USB_POWER 36#if defined(HAVE_USB_POWER) || defined(USB_DETECT_BY_DRV)
37 USB_POWERED, /* State */ 37 USB_POWERED, /* Event+State */
38#endif
39#ifdef USB_DETECT_BY_DRV
40 USB_UNPOWERED, /* Event */
38#endif 41#endif
39#ifdef HAVE_LCD_BITMAP 42#ifdef HAVE_LCD_BITMAP
40 USB_SCREENDUMP, /* State */ 43 USB_SCREENDUMP, /* State */
@@ -107,6 +110,7 @@ struct usb_transfer_completion_event_data
107 110
108void usb_init(void); 111void usb_init(void);
109void usb_enable(bool on); 112void usb_enable(bool on);
113void usb_attach(void);
110void usb_start_monitoring(void); 114void usb_start_monitoring(void);
111void usb_close(void); 115void usb_close(void);
112void usb_acknowledge(long id); 116void usb_acknowledge(long id);