summary refs log tree commit diff stats
path: root/hw/ide/core.c
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>2009-11-30 17:36:54 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 15:26:01 -0600
commita70089ceebc287da39782717d3249daba71c4e15 (patch)
tree55d809e01e21f0c1a82a7cc4736caf4e11b8ce7c /hw/ide/core.c
parentb8f6ba0d0ced574c0685ee6f1b00ac3e750b0b0e (diff)
downloadfocaccia-qemu-a70089ceebc287da39782717d3249daba71c4e15.tar.gz
focaccia-qemu-a70089ceebc287da39782717d3249daba71c4e15.zip
ide: Use some already defined page macros instead of constants
Some PAGE constants were used instead of the macros we already have
defined in internal.h.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ide/core.c')
-rw-r--r--hw/ide/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ide/core.c b/hw/ide/core.c
index a5b00ae0d7..e40fc75a22 100644
--- a/hw/ide/core.c
+++ b/hw/ide/core.c
@@ -1250,7 +1250,7 @@ static void ide_atapi_cmd(IDEState *s)
             switch(action) {
             case 0: /* current values */
                 switch(code) {
-                case 0x01: /* error recovery */
+                case GPMODE_R_W_ERROR_PAGE: /* error recovery */
                     cpu_to_ube16(&buf[0], 16 + 6);
                     buf[2] = 0x70;
                     buf[3] = 0;
@@ -1269,7 +1269,7 @@ static void ide_atapi_cmd(IDEState *s)
                     buf[15] = 0x00;
                     ide_atapi_cmd_reply(s, 16, max_len);
                     break;
-                case 0x2a:
+                case GPMODE_CAPABILITIES_PAGE:
                     cpu_to_ube16(&buf[0], 28 + 6);
                     buf[2] = 0x70;
                     buf[3] = 0;