#include <linux/delay.h>
#include <linux/hdreg.h>
#include <linux/ide.h>
-#include <linux/bitops.h>
#include <asm/byteorder.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <asm/io.h>
+#include <asm/bitops.h>
/*
* IDE library routines. These are plug in code that most
blk_queue_bounce_limit(drive->queue, addr);
}
+EXPORT_SYMBOL(ide_toggle_bounce);
+
/**
* ide_set_xfer_rate - set transfer rate
* @drive: drive to set
status.all = stat;
local_irq_set(flags);
- printk("%s: %s: status=0x%02x { ", drive->name, msg, stat);
+ printk("%s: %s: status=0x%02x", drive->name, msg, stat);
+ printk(" { ");
if (status.b.bsy)
printk("Busy ");
else {
if (status.b.idx) printk("Index ");
if (status.b.check) printk("Error ");
}
- printk("}\n");
+ printk("}");
+ printk("\n");
if ((status.all & (status.b.bsy|status.b.check)) == status.b.check) {
error.all = HWIF(drive)->INB(IDE_ERROR_REG);
- printk("%s: %s: error=0x%02x { ", drive->name, msg, error.all);
+ printk("%s: %s: error=0x%02x", drive->name, msg, error.all);
if (error.b.ili) printk("IllegalLengthIndication ");
if (error.b.eom) printk("EndOfMedia ");
- if (error.b.abrt) printk("AbortedCommand ");
+ if (error.b.abrt) printk("Aborted Command ");
if (error.b.mcr) printk("MediaChangeRequested ");
- if (error.b.sense_key) printk("LastFailedSense=0x%02x ",
+ if (error.b.sense_key) printk("LastFailedSense 0x%02x ",
error.b.sense_key);
- printk("}\n");
+ printk("\n");
}
local_irq_restore(flags);
return error.all;