1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2008 by Frank Gevaerts
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #include "config.h" /* for HAVE_MULTIVOLUME or not */
25 void storage_enable(bool on
)
29 void storage_sleep(void)
32 void storage_sleepnow(void)
35 bool storage_disk_is_active(void)
39 int storage_hard_reset(void)
43 int storage_soft_reset(void)
47 int storage_init(void)
51 void storage_close(void)
54 int storage_read_sectors(int drive
, unsigned long start
, int count
, void* buf
)
62 int storage_write_sectors(int drive
, unsigned long start
, int count
, const void* buf
)
71 void storage_spin(void)
74 void storage_spindown(int seconds
)
79 #if (CONFIG_LED == LED_REAL)
80 void storage_set_led_enabled(bool enabled
)
86 long storage_last_disk_activity(void)
91 int storage_spinup_time(void)
96 #ifdef STORAGE_GET_INFO
97 void storage_get_info(int drive
, struct storage_info
*info
)
105 bool storage_removable(int drive
)
111 bool storage_present(int drive
)