diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/ata.c | 4 |
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 | ||
67 | static volatile unsigned char* ata_control; | 67 | static volatile unsigned char* ata_control; |
68 | 68 | ||
69 | bool old_recorder = false; | ||
70 | |||
69 | static int wait_for_bsy(void) | 71 | static 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 | ||