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/usb.h | |
parent | 5f1e1a5e5efd9051c9aeda5a8cd671e523bac6e9 (diff) |
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/usb.h')
-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 { USB_REENABLE, USB_POWERED, USB_TRANSFER_COMPLETION, + USB_REQUEST_DISK, USB_REQUEST_REBOOT }; @@ -102,6 +103,8 @@ bool usb_charging_enabled(void); #ifdef HAVE_USBSTACK void usb_signal_transfer_completion(struct usb_transfer_completion_event_data* event_data); bool usb_driver_enabled(int driver); +bool usb_exclusive_ata(void); /* ata is available for usb */ +void usb_request_exclusive_ata(void); #endif #if defined(IPOD_COLOR) || defined(IPOD_4G) \ |