mirror of https://github.com/xemu-project/xemu.git
ide-test: Add enum value for DEV
Get rid of the magic number. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
bf736fe34c
commit
c27d565604
|
@ -64,6 +64,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
DEV = 0x10,
|
||||||
LBA = 0x40,
|
LBA = 0x40,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -394,7 +395,7 @@ static void test_identify(void)
|
||||||
|
|
||||||
/* Read in the IDENTIFY buffer and check registers */
|
/* Read in the IDENTIFY buffer and check registers */
|
||||||
data = inb(IDE_BASE + reg_device);
|
data = inb(IDE_BASE + reg_device);
|
||||||
g_assert_cmpint(data & 0x10, ==, 0);
|
g_assert_cmpint(data & DEV, ==, 0);
|
||||||
|
|
||||||
for (i = 0; i < 256; i++) {
|
for (i = 0; i < 256; i++) {
|
||||||
data = inb(IDE_BASE + reg_status);
|
data = inb(IDE_BASE + reg_status);
|
||||||
|
|
Loading…
Reference in New Issue