diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-07-12 23:01:49 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-07-12 23:01:49 +0000 |
commit | ee72b3bbc6885628466bab093b181778bdfde974 (patch) | |
tree | 48021443c9e6f0ff22438fdfa3746c6c08ee3b77 /firmware/target/arm/tcc77x/ata-nand-tcc77x.c | |
parent | 6e4aab0fe97bb58f36d113ccc9e7b5ac7fddf923 (diff) | |
download | rockbox-ee72b3bbc6885628466bab093b181778bdfde974.tar.gz rockbox-ee72b3bbc6885628466bab093b181778bdfde974.zip |
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
Diffstat (limited to 'firmware/target/arm/tcc77x/ata-nand-tcc77x.c')
-rw-r--r-- | firmware/target/arm/tcc77x/ata-nand-tcc77x.c | 106 |
1 files changed, 0 insertions, 106 deletions
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 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 Dave Chapman | ||
11 | * | ||
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. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #include "ata.h" | ||
22 | #include "ata-target.h" | ||
23 | #include "ata_idle_notify.h" | ||
24 | #include "system.h" | ||
25 | #include <string.h> | ||
26 | #include "thread.h" | ||
27 | #include "led.h" | ||
28 | #include "disk.h" | ||
29 | #include "panic.h" | ||
30 | #include "usb.h" | ||
31 | |||
32 | /* for compatibility */ | ||
33 | int ata_spinup_time = 0; | ||
34 | |||
35 | long last_disk_activity = -1; | ||
36 | |||
37 | /* Used to store (fake?) identify info */ | ||
38 | static unsigned short identify_info[256]; | ||
39 | |||
40 | /** static, private data **/ | ||
41 | static bool initialized = false; | ||
42 | |||
43 | static long next_yield = 0; | ||
44 | #define MIN_YIELD_PERIOD 2000 | ||
45 | |||
46 | /* API Functions */ | ||
47 | |||
48 | void ata_led(bool onoff) | ||
49 | { | ||
50 | led(onoff); | ||
51 | } | ||
52 | |||
53 | int ata_read_sectors(IF_MV2(int drive,) unsigned long start, int incount, | ||
54 | void* inbuf) | ||
55 | { | ||
56 | |||
57 | } | ||
58 | |||
59 | int ata_write_sectors(IF_MV2(int drive,) unsigned long start, int count, | ||
60 | const void* outbuf) | ||
61 | { | ||
62 | } | ||
63 | |||
64 | void ata_spindown(int seconds) | ||
65 | { | ||
66 | (void)seconds; | ||
67 | } | ||
68 | |||
69 | bool ata_disk_is_active(void) | ||
70 | { | ||
71 | return 0; | ||
72 | } | ||
73 | |||
74 | void ata_sleep(void) | ||
75 | { | ||
76 | } | ||
77 | |||
78 | void ata_spin(void) | ||
79 | { | ||
80 | } | ||
81 | |||
82 | /* Hardware reset protocol as specified in chapter 9.1, ATA spec draft v5 */ | ||
83 | int ata_hard_reset(void) | ||
84 | { | ||
85 | return 0; | ||
86 | } | ||
87 | |||
88 | int ata_soft_reset(void) | ||
89 | { | ||
90 | return 0; | ||
91 | } | ||
92 | |||
93 | void ata_enable(bool on) | ||
94 | { | ||
95 | } | ||
96 | |||
97 | int ata_init(void) | ||
98 | { | ||
99 | return 0; | ||
100 | } | ||
101 | |||
102 | /* TEMP: This will return junk, it's here for compilation only */ | ||
103 | unsigned short* ata_get_identify(void) | ||
104 | { | ||
105 | return identify_info; | ||
106 | } | ||