summaryrefslogtreecommitdiff
path: root/include/hw/ide
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/ide')
-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)