add proper dummy storage implementation for sims
[kugel-rb.git] / firmware / storage-sim.c
blob24b3f18b4e56cd630c099c01683433a1e7c58887
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: $
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 */
22 #include "storage.h"
24 #ifdef SIMULATOR
25 void storage_enable(bool on)
27 (void)on;
29 void storage_sleep(void)
32 void storage_sleepnow(void)
35 bool storage_disk_is_active(void)
37 return 0;
39 int storage_hard_reset(void)
41 return 0;
43 int storage_soft_reset(void)
45 return 0;
47 int storage_init(void)
49 return 0;
51 void storage_close(void)
54 int storage_read_sectors(int drive, unsigned long start, int count, void* buf)
56 (void)drive;
57 (void)start;
58 (void)count;
59 (void)buf;
60 return 0;
62 int storage_write_sectors(int drive, unsigned long start, int count, const void* buf)
64 (void)drive;
65 (void)start;
66 (void)count;
67 (void)buf;
68 return 0;
71 void storage_spin(void)
74 void storage_spindown(int seconds)
76 (void)seconds;
79 #if (CONFIG_LED == LED_REAL)
80 void storage_set_led_enabled(bool enabled)
82 (void)enabled;
84 #endif /*LED*/
86 long storage_last_disk_activity(void)
88 return 0;
91 int storage_spinup_time(void)
93 return 0;
96 #ifdef STORAGE_GET_INFO
97 void storage_get_info(int drive, struct storage_info *info)
99 (void)drive;
100 (void)info;
102 #endif
104 #ifdef HAVE_HOTSWAP
105 bool storage_removable(int drive)
107 (void)drive;
108 return 0;
111 bool storage_present(int drive)
113 (void)drive;
114 return 0;
116 #endif /* HOTSWAP */
118 #endif