diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2009-01-19 13:41:25 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2009-01-19 13:41:25 +0000 |
commit | 616c98b38f6ddac0ac3dde8ec0fa248f835717e2 (patch) | |
tree | 5eeeabb85fbefa162a438edca88611c1bc688269 /firmware/usbstack/usb_core.c | |
parent | cef6399c4c3bcaa35733bdab8b9016b66b71a6f0 (diff) | |
download | rockbox-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/usbstack/usb_core.c')
-rw-r--r-- | firmware/usbstack/usb_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c index 50c9d8589c..5fac5d3815 100644 --- a/firmware/usbstack/usb_core.c +++ b/firmware/usbstack/usb_core.c | |||
@@ -175,7 +175,7 @@ static struct | |||
175 | completion_handler_t completion_handler[2]; | 175 | completion_handler_t completion_handler[2]; |
176 | control_handler_t control_handler[2]; | 176 | control_handler_t control_handler[2]; |
177 | struct usb_transfer_completion_event_data completion_event; | 177 | struct usb_transfer_completion_event_data completion_event; |
178 | } ep_data[NUM_ENDPOINTS]; | 178 | } ep_data[USB_NUM_ENDPOINTS]; |
179 | 179 | ||
180 | static struct usb_class_driver drivers[USB_NUM_DRIVERS] = | 180 | static struct usb_class_driver drivers[USB_NUM_DRIVERS] = |
181 | { | 181 | { |
@@ -240,7 +240,7 @@ static struct usb_class_driver drivers[USB_NUM_DRIVERS] = | |||
240 | 240 | ||
241 | static void usb_core_control_request_handler(struct usb_ctrlrequest* req); | 241 | static void usb_core_control_request_handler(struct usb_ctrlrequest* req); |
242 | 242 | ||
243 | static unsigned char response_data[256] USBDEVBSS_ATTR; | 243 | static unsigned char response_data[256] USB_DEVBSS_ATTR; |
244 | 244 | ||
245 | 245 | ||
246 | static short hex[16] = {'0','1','2','3','4','5','6','7', | 246 | static short hex[16] = {'0','1','2','3','4','5','6','7', |
@@ -476,7 +476,7 @@ static void allocate_interfaces_and_endpoints(void) | |||
476 | 476 | ||
477 | memset(ep_data,0,sizeof(ep_data)); | 477 | memset(ep_data,0,sizeof(ep_data)); |
478 | 478 | ||
479 | for (i = 0; i < NUM_ENDPOINTS; i++) { | 479 | for (i = 0; i < USB_NUM_ENDPOINTS; i++) { |
480 | usb_drv_release_endpoint(i | USB_DIR_OUT); | 480 | usb_drv_release_endpoint(i | USB_DIR_OUT); |
481 | usb_drv_release_endpoint(i | USB_DIR_IN); | 481 | usb_drv_release_endpoint(i | USB_DIR_IN); |
482 | } | 482 | } |