/*************************************************************************** * __________ __ ___. * 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 "debug.h" #include "screens.h" #include "button.h" #include "string.h" #include "lcd.h" #include "power.h" #include "ata.h" /* for volume definitions */ static bool storage_spinning = false; int fat_startsector(void) { return 63; } int ata_spinup_time(void) { return 100; } int storage_spinup_time(void) { return 0; } int storage_init(void) { return 1; } int storage_write_sectors(IF_MV(int drive,) unsigned long start, int count, const void* buf) { IF_MV((void)drive;) int i; for (i=0; i