From f18d20ee36f8a23e0f37fd342cf186e3b6a91408 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 2 Mar 2008 00:15:02 +0000 Subject: 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 --- firmware/export/usb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/export/usb.h') 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) \ -- cgit v1.2.3