qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

hw/ide: Move MAX_IDE_DEVS define to hw/ide/internal.h

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>

authored by

BALATON Zoltan and committed by
John Snow
d475fb12 be1765f3

+3 -2
+1
hw/mips/mips_r4k.c
··· 26 26 #include "qemu/log.h" 27 27 #include "hw/mips/bios.h" 28 28 #include "hw/ide.h" 29 + #include "hw/ide/internal.h" 29 30 #include "hw/loader.h" 30 31 #include "elf.h" 31 32 #include "hw/rtc/mc146818rtc.h"
-2
include/hw/ide.h
··· 4 4 #include "hw/isa/isa.h" 5 5 #include "exec/memory.h" 6 6 7 - #define MAX_IDE_DEVS 2 8 - 9 7 /* ide-isa.c */ 10 8 ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int isairq, 11 9 DriveInfo *hd0, DriveInfo *hd1);
+2
include/hw/ide/internal.h
··· 27 27 #define TYPE_IDE_BUS "IDE" 28 28 #define IDE_BUS(obj) OBJECT_CHECK(IDEBus, (obj), TYPE_IDE_BUS) 29 29 30 + #define MAX_IDE_DEVS 2 31 + 30 32 /* Bits of HD_STATUS */ 31 33 #define ERR_STAT 0x01 32 34 #define INDEX_STAT 0x02