summaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz2008-01-25 22:17:10 +0100
committerBartlomiej Zolnierkiewicz2008-01-25 22:17:10 +0100
commit807e35d695690011faa1ce3ad67dfc23c1e39bdc (patch)
tree4b9b8328ea27896ea6050a90949d79f6e158d573 /include/linux/ide.h
parentide: remove ide_cmd() helper (diff)
downloadkernel-qcow2-linux-807e35d695690011faa1ce3ad67dfc23c1e39bdc.tar.gz
kernel-qcow2-linux-807e35d695690011faa1ce3ad67dfc23c1e39bdc.tar.xz
kernel-qcow2-linux-807e35d695690011faa1ce3ad67dfc23c1e39bdc.zip
ide: use ide_tf_load() in execute_drive_cmd()
* Add IDE_TFLAG_OUT_DEVICE taskfile flag to indicate the need of writing the Device register and handle it in ide_tf_load(). Update ide_tf_load() and {do_rw,flagged}_taskfile() users accordingly. * Use struct ide_taskfile and ide_tf_load() in execute_drive_cmd(). * Make the debugging code dump all taskfile registers for both REQ_ATA_TYPE_{CMD,TASK} requests and move it to ide_tf_load() so it also covers REQ_ATA_TYPE_TASKFILE requests. There should be no functionality changes caused by this patch (unless DEBUG is defined). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r--include/linux/ide.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 0b088f18d422..e1f652c6440c 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1066,6 +1066,7 @@ enum {
IDE_TFLAG_OUT_LBAL |
IDE_TFLAG_OUT_LBAM |
IDE_TFLAG_OUT_LBAH,
+ IDE_TFLAG_OUT_DEVICE = (1 << 14),
};
struct ide_taskfile {