Remove the calls to backlight_lcd_sleep_countdown from target specific code and move...
[kugel-rb.git] / firmware / export / ramdisk.h
bloba0c011faddac7ab7c9de718ebbfc8950adf9899c
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Alan Korr
11 * Copyright (C) 2008 by Frank Gevaerts
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
22 #ifndef __RAMDISK_H__
23 #define __RAMDISK_H__
25 #include <stdbool.h>
26 #include "mv.h" /* for HAVE_MULTIVOLUME or not */
28 struct storage_info;
30 void ramdisk_enable(bool on);
31 void ramdisk_spindown(int seconds);
32 void ramdisk_sleep(void);
33 bool ramdisk_disk_is_active(void);
34 int ramdisk_soft_reset(void);
35 int ramdisk_init(void);
36 void ramdisk_close(void);
37 int ramdisk_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf);
38 int ramdisk_write_sectors(IF_MV2(int drive,) unsigned long start, int count, const void* buf);
39 void ramdisk_spin(void);
40 void ramdisk_sleepnow(void);
42 #ifdef STORAGE_GET_INFO
43 void ramdisk_get_info(IF_MV2(int drive,) struct storage_info *info);
44 #endif
46 long ramdisk_last_disk_activity(void);
48 #endif