summary refs log tree commit diff stats
path: root/include/hw
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2017-09-18 15:01:26 -0400
committerJohn Snow <jsnow@redhat.com>2017-09-18 15:01:26 -0400
commit0e168d35519ee04590a439cd6631f53cd954edd0 (patch)
tree7178387b5ee7b035ca3711bc7b94b3d4a501ee17 /include/hw
parent82a13ff821a785357a0ce6ed4d51cc85bcc993e9 (diff)
downloadfocaccia-qemu-0e168d35519ee04590a439cd6631f53cd954edd0.tar.gz
focaccia-qemu-0e168d35519ee04590a439cd6631f53cd954edd0.zip
IDE: replace DEBUG_AIO with trace events
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20170901001502.29915-6-jsnow@redhat.com
[Edited enum conditional for Clang --js]
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/ide/internal.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/hw/ide/internal.h b/include/hw/ide/internal.h
index 74efe8a53a..5b30d7a060 100644
--- a/include/hw/ide/internal.h
+++ b/include/hw/ide/internal.h
@@ -14,7 +14,6 @@
 #include "block/scsi.h"
 
 /* debug IDE devices */
-//#define DEBUG_AIO
 #define USE_DMA_CDROM
 
 typedef struct IDEBus IDEBus;
@@ -333,12 +332,16 @@ struct unreported_events {
 };
 
 enum ide_dma_cmd {
-    IDE_DMA_READ,
+    IDE_DMA__BEGIN = 0,
+    IDE_DMA_READ = IDE_DMA__BEGIN,
     IDE_DMA_WRITE,
     IDE_DMA_TRIM,
     IDE_DMA_ATAPI,
+    IDE_DMA__COUNT
 };
 
+extern const char *IDE_DMA_CMD_lookup[IDE_DMA__COUNT];
+
 #define ide_cmd_is_read(s) \
 	((s)->dma_cmd == IDE_DMA_READ)