diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-03-02 00:15:02 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-03-02 00:15:02 +0000 |
commit | f18d20ee36f8a23e0f37fd342cf186e3b6a91408 (patch) | |
tree | d5917d19491bc5fa80c61ea440279c4ed168c91f /firmware/export | |
parent | 5f1e1a5e5efd9051c9aeda5a8cd671e523bac6e9 (diff) | |
download | rockbox-f18d20ee36f8a23e0f37fd342cf186e3b6a91408.tar.gz rockbox-f18d20ee36f8a23e0f37fd342cf186e3b6a91408.zip |
Only show the usb screen once a real usb connection is established. In case other threads are slow in acknowledging the SYS_USB_CONNECTED message, tell the OS that the disk is not ready yet (the OS interprets this as "spinning up")
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16471 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/usb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/export/usb.h b/firmware/export/usb.h index 4bfbfd4b75..833d2ab35e 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h | |||
@@ -29,6 +29,7 @@ enum { | |||
29 | USB_REENABLE, | 29 | USB_REENABLE, |
30 | USB_POWERED, | 30 | USB_POWERED, |
31 | USB_TRANSFER_COMPLETION, | 31 | USB_TRANSFER_COMPLETION, |
32 | USB_REQUEST_DISK, | ||
32 | USB_REQUEST_REBOOT | 33 | USB_REQUEST_REBOOT |
33 | }; | 34 | }; |
34 | 35 | ||
@@ -102,6 +103,8 @@ bool usb_charging_enabled(void); | |||
102 | #ifdef HAVE_USBSTACK | 103 | #ifdef HAVE_USBSTACK |
103 | void usb_signal_transfer_completion(struct usb_transfer_completion_event_data* event_data); | 104 | void usb_signal_transfer_completion(struct usb_transfer_completion_event_data* event_data); |
104 | bool usb_driver_enabled(int driver); | 105 | bool usb_driver_enabled(int driver); |
106 | bool usb_exclusive_ata(void); /* ata is available for usb */ | ||
107 | void usb_request_exclusive_ata(void); | ||
105 | #endif | 108 | #endif |
106 | 109 | ||
107 | #if defined(IPOD_COLOR) || defined(IPOD_4G) \ | 110 | #if defined(IPOD_COLOR) || defined(IPOD_4G) \ |