hw/alpha/dp264: Add the ISA DMA controller

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180308223946.26784-24-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Philippe Mathieu-Daudé 2018-03-08 23:39:44 +01:00 committed by Paolo Bonzini
parent 7bea0dd434
commit f4564fc0e8
2 changed files with 6 additions and 0 deletions

View File

@ -4,7 +4,9 @@ include pci.mak
include usb.mak include usb.mak
CONFIG_SERIAL=y CONFIG_SERIAL=y
CONFIG_SERIAL_ISA=y CONFIG_SERIAL_ISA=y
CONFIG_I82374=y
CONFIG_I8254=y CONFIG_I8254=y
CONFIG_I8257=y
CONFIG_PCKBD=y CONFIG_PCKBD=y
CONFIG_VGA_CIRRUS=y CONFIG_VGA_CIRRUS=y
CONFIG_IDE_CORE=y CONFIG_IDE_CORE=y

View File

@ -21,6 +21,7 @@
#include "hw/timer/i8254.h" #include "hw/timer/i8254.h"
#include "hw/input/i8042.h" #include "hw/input/i8042.h"
#include "hw/char/serial.h" #include "hw/char/serial.h"
#include "hw/dma/i8257.h"
#include "qemu/cutils.h" #include "qemu/cutils.h"
#define MAX_IDE_BUS 2 #define MAX_IDE_BUS 2
@ -95,6 +96,9 @@ static void clipper_init(MachineState *machine)
pci_nic_init_nofail(&nd_table[i], pci_bus, "e1000", NULL); pci_nic_init_nofail(&nd_table[i], pci_bus, "e1000", NULL);
} }
/* 2 82C37 (dma) */
isa_create_simple(isa_bus, "i82374");
/* IDE disk setup. */ /* IDE disk setup. */
{ {
DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS];