]> git.proxmox.com Git - qemu.git/commitdiff
ide: Use some already defined page macros instead of constants
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Mon, 30 Nov 2009 19:36:54 +0000 (17:36 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 21:26:01 +0000 (15:26 -0600)
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>
hw/ide/core.c

index a5b00ae0d71d7b2e1b5c7cbb3706e1634f284e4b..e40fc75a223a65d7e02bd729bab3f85441a8a341 100644 (file)
@@ -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;