提交 c27d5656 编写于 作者: K Kevin Wolf 提交者: Stefan Hajnoczi

ide-test: Add enum value for DEV

Get rid of the magic number.
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
上级 bf736fe3
......@@ -64,6 +64,7 @@ enum {
};
enum {
DEV = 0x10,
LBA = 0x40,
};
......@@ -394,7 +395,7 @@ static void test_identify(void)
/* Read in the IDENTIFY buffer and check registers */
data = inb(IDE_BASE + reg_device);
g_assert_cmpint(data & 0x10, ==, 0);
g_assert_cmpint(data & DEV, ==, 0);
for (i = 0; i < 256; i++) {
data = inb(IDE_BASE + reg_status);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册