From ee72b3bbc6885628466bab093b181778bdfde974 Mon Sep 17 00:00:00 2001 From: Rob Purchase Date: Sat, 12 Jul 2008 23:01:49 +0000 Subject: Make the TCC780x NAND driver also build for 77x targets. This is work-in-progress stuff and does not yet work fully on 77x, but it's a step in the right direction. Also replace some magic numbers with #defines. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18019 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/tcc77x/ata-nand-tcc77x.c | 106 --------------------------- 1 file changed, 106 deletions(-) delete mode 100644 firmware/target/arm/tcc77x/ata-nand-tcc77x.c (limited to 'firmware/target/arm/tcc77x/ata-nand-tcc77x.c') diff --git a/firmware/target/arm/tcc77x/ata-nand-tcc77x.c b/firmware/target/arm/tcc77x/ata-nand-tcc77x.c deleted file mode 100644 index 34c17af8a1..0000000000 --- a/firmware/target/arm/tcc77x/ata-nand-tcc77x.c +++ /dev/null @@ -1,106 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2007 Dave Chapman - * - * 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 "ata.h" -#include "ata-target.h" -#include "ata_idle_notify.h" -#include "system.h" -#include -#include "thread.h" -#include "led.h" -#include "disk.h" -#include "panic.h" -#include "usb.h" - -/* for compatibility */ -int ata_spinup_time = 0; - -long last_disk_activity = -1; - -/* Used to store (fake?) identify info */ -static unsigned short identify_info[256]; - -/** static, private data **/ -static bool initialized = false; - -static long next_yield = 0; -#define MIN_YIELD_PERIOD 2000 - -/* API Functions */ - -void ata_led(bool onoff) -{ - led(onoff); -} - -int ata_read_sectors(IF_MV2(int drive,) unsigned long start, int incount, - void* inbuf) -{ - -} - -int ata_write_sectors(IF_MV2(int drive,) unsigned long start, int count, - const void* outbuf) -{ -} - -void ata_spindown(int seconds) -{ - (void)seconds; -} - -bool ata_disk_is_active(void) -{ - return 0; -} - -void ata_sleep(void) -{ -} - -void ata_spin(void) -{ -} - -/* Hardware reset protocol as specified in chapter 9.1, ATA spec draft v5 */ -int ata_hard_reset(void) -{ - return 0; -} - -int ata_soft_reset(void) -{ - return 0; -} - -void ata_enable(bool on) -{ -} - -int ata_init(void) -{ - return 0; -} - -/* TEMP: This will return junk, it's here for compilation only */ -unsigned short* ata_get_identify(void) -{ - return identify_info; -} -- cgit v1.2.3