hw/ide: Move MAX_IDE_DEVS define to hw/ide/internal.h
authorBALATON Zoltan <balaton@eik.bme.hu>
Tue, 17 Mar 2020 15:05:37 +0000 (16:05 +0100)
committerJohn Snow <jsnow@redhat.com>
Tue, 17 Mar 2020 16:22:36 +0000 (12:22 -0400)
We can move this define now that less files use it to internal.h to
further reduce dependency on hw/ide.h.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: e68675d2f6252f229cf788b7cd163bb76fa3e26b.1584457537.git.balaton@eik.bme.hu
Signed-off-by: John Snow <jsnow@redhat.com>
hw/mips/mips_r4k.c
include/hw/ide.h
include/hw/ide/internal.h

index ad8b75e2860d48187c52f31d592f9351d336ff10..3487013a4a15061a56e1ba3e7a5462d026a5f019 100644 (file)
@@ -26,6 +26,7 @@
 #include "qemu/log.h"
 #include "hw/mips/bios.h"
 #include "hw/ide.h"
+#include "hw/ide/internal.h"
 #include "hw/loader.h"
 #include "elf.h"
 #include "hw/rtc/mc146818rtc.h"
index d52c211f32dac06225dfd8ee44689f2447c50793..c5ce5da4f478d31f61297eb981fc711932aab7ac 100644 (file)
@@ -4,8 +4,6 @@
 #include "hw/isa/isa.h"
 #include "exec/memory.h"
 
-#define MAX_IDE_DEVS   2
-
 /* ide-isa.c */
 ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int isairq,
                         DriveInfo *hd0, DriveInfo *hd1);
index 1bc1fc73e5fa13a05ef062e57882a0e3ea23af3f..55da35d768cf2f6cd56b1672f3291f21fef1d7ee 100644 (file)
@@ -27,6 +27,8 @@ typedef struct IDEDMAOps IDEDMAOps;
 #define TYPE_IDE_BUS "IDE"
 #define IDE_BUS(obj) OBJECT_CHECK(IDEBus, (obj), TYPE_IDE_BUS)
 
+#define MAX_IDE_DEVS 2
+
 /* Bits of HD_STATUS */
 #define ERR_STAT               0x01
 #define INDEX_STAT             0x02