/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * $Id$ * * Copyright (C) 2002 by Björn Stenberg * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * ****************************************************************************/ #include #include #include #include "thread-sdl.h" #include "debug.h" #include "screens.h" #include "button.h" #include "string.h" #include "lcd.h" #include "power.h" #include "ata.h" /* for volume definitions */ extern char having_new_lcd; static bool storage_spinning = false; #if CONFIG_CODEC != SWCODEC void audio_set_buffer_margin(int seconds) { (void)seconds; } #endif int fat_startsector(void) { return 63; } bool fat_ismounted(int volume) { (void)volume; return true; } int storage_spinup_time(void) { return 0; } int storage_init(void) { return 1; } int storage_write_sectors(IF_MV2(int drive,) unsigned long start, int count, const void* buf) { IF_MV((void)drive;) int i; for (i=0; i