From 32945af3f271506d49e17ab0709abfeaec309c79 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 27 Feb 2009 21:23:01 -0500 Subject: [PATCH] Don't 'autodetect' ATA PIO32 mode - use compile def instead. The PIO32 detection appears to use a hack built for emulators. It wont work on real hardware. Implement with a compile time define instead. This also improves the quality of the compiled code. --- src/ata.c | 16 ++++++---------- src/config.h | 10 ++++++---- src/disk.c | 3 +-- src/disk.h | 1 - 4 files changed, 13 insertions(+), 17 deletions(-) diff --git a/src/ata.c b/src/ata.c index adf3929..e9f9c7c 100644 --- a/src/ata.c +++ b/src/ata.c @@ -220,10 +220,10 @@ send_cmd(int driveid, struct ata_pio_command *cmd) // Read and discard x number of bytes from an io channel. static void -insx_discard(int mode, int iobase1, int bytes) +insx_discard(int iobase1, int bytes) { int count, i; - if (mode == ATA_MODE_PIO32) { + if (CONFIG_ATA_PIO32) { count = bytes / 4; for (i=0; i