summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
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/drivers/ata.c
parent200d226a7c49f42232eecba977ca0c840c4318cc (diff)
downloadrockbox-1a5032e7edfd7e8feaa3c3696f2de561f5d08c91.tar.gz
rockbox-1a5032e7edfd7e8feaa3c3696f2de561f5d08c91.zip
Added old_recorder variable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1195 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata.c')
-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) */
66 66
67static volatile unsigned char* ata_control; 67static volatile unsigned char* ata_control;
68 68
69bool old_recorder = false;
70
69static int wait_for_bsy(void) 71static int wait_for_bsy(void)
70{ 72{
71 int timeout = current_tick + HZ*4; 73 int timeout = current_tick + HZ*4;
@@ -346,11 +348,13 @@ static int io_address_detect(void)
346 if(tmp == ((*ATA_CONTROL2) & 0xf9)) 348 if(tmp == ((*ATA_CONTROL2) & 0xf9))
347 { 349 {
348 DEBUGF("CONTROL is at 0x306\n"); 350 DEBUGF("CONTROL is at 0x306\n");
351 old_recorder = true;
349 ata_control = ATA_CONTROL2; 352 ata_control = ATA_CONTROL2;
350 } 353 }
351 else 354 else
352 { 355 {
353 DEBUGF("CONTROL is at 0x206\n"); 356 DEBUGF("CONTROL is at 0x206\n");
357 old_recorder = false;
354 ata_control = ATA_CONTROL1; 358 ata_control = ATA_CONTROL1;
355 } 359 }
356 360