summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-06-26 12:36:29 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-06-26 12:36:29 +0000
commit1a5032e7edfd7e8feaa3c3696f2de561f5d08c91 (patch)
treee55dff7fe3fac1407d9c37ee5386b31c64d88e58 /firmware
parent200d226a7c49f42232eecba977ca0c840c4318cc (diff)
Added old_recorder variable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1195 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/ata.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 5bb9c12970..5af3efe793 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -66,6 +66,8 @@ static char device; /* device 0 (master) or 1 (slave) */
static volatile unsigned char* ata_control;
+bool old_recorder = false;
+
static int wait_for_bsy(void)
{
int timeout = current_tick + HZ*4;
@@ -346,11 +348,13 @@ static int io_address_detect(void)
if(tmp == ((*ATA_CONTROL2) & 0xf9))
{
DEBUGF("CONTROL is at 0x306\n");
+ old_recorder = true;
ata_control = ATA_CONTROL2;
}
else
{
DEBUGF("CONTROL is at 0x206\n");
+ old_recorder = false;
ata_control = ATA_CONTROL1;
}