|
|
9ae3a8 |
From bfc4f8a432d111a63ae2a5bf9846b2b3413c2479 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Kevin Wolf <kwolf@redhat.com>
|
|
|
9ae3a8 |
Date: Wed, 10 Sep 2014 11:06:07 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 08/12] ide-test: Add enum value for DEV
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Message-id: <1410347169-4368-2-git-send-email-kwolf@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 60953
|
|
|
9ae3a8 |
O-Subject: [RHEL-7.1 qemu-kvm PATCH 1/3] ide-test: Add enum value for DEV
|
|
|
9ae3a8 |
Bugzilla: 1123372
|
|
|
9ae3a8 |
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Fam Zheng <famz@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Get rid of the magic number.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit c27d565604038c1572b16dd1cd06e277e6ef02e2)
|
|
|
9ae3a8 |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
tests/ide-test.c | 3 ++-
|
|
|
9ae3a8 |
1 files changed, 2 insertions(+), 1 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/tests/ide-test.c b/tests/ide-test.c
|
|
|
9ae3a8 |
index 177ab00..ac59259 100644
|
|
|
9ae3a8 |
--- a/tests/ide-test.c
|
|
|
9ae3a8 |
+++ b/tests/ide-test.c
|
|
|
9ae3a8 |
@@ -64,6 +64,7 @@ enum {
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
enum {
|
|
|
9ae3a8 |
+ DEV = 0x10,
|
|
|
9ae3a8 |
LBA = 0x40,
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
@@ -394,7 +395,7 @@ static void test_identify(void)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
/* Read in the IDENTIFY buffer and check registers */
|
|
|
9ae3a8 |
data = inb(IDE_BASE + reg_device);
|
|
|
9ae3a8 |
- g_assert_cmpint(data & 0x10, ==, 0);
|
|
|
9ae3a8 |
+ g_assert_cmpint(data & DEV, ==, 0);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
for (i = 0; i < 256; i++) {
|
|
|
9ae3a8 |
data = inb(IDE_BASE + reg_status);
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|