[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 34/35] target-alpha: Enable PCI IDE
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 34/35] target-alpha: Enable PCI IDE |
Date: |
Mon, 9 May 2011 14:34:48 -0700 |
The CMD646 is the candidate that might be closest to something
that may have existed on real Alpha hardware.
Signed-off-by: Richard Henderson <address@hidden>
---
default-configs/alpha-softmmu.mak | 1 +
hw/alpha_dp264.c | 10 ++++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/default-configs/alpha-softmmu.mak
b/default-configs/alpha-softmmu.mak
index abadcff..32167cd 100644
--- a/default-configs/alpha-softmmu.mak
+++ b/default-configs/alpha-softmmu.mak
@@ -7,3 +7,4 @@ CONFIG_VGA_PCI=y
CONFIG_IDE_CORE=y
CONFIG_IDE_QDEV=y
CONFIG_VMWARE_VGA=y
+CONFIG_IDE_CMD646=y
diff --git a/hw/alpha_dp264.c b/hw/alpha_dp264.c
index dea0ef6..30ae567 100644
--- a/hw/alpha_dp264.c
+++ b/hw/alpha_dp264.c
@@ -13,7 +13,9 @@
#include "alpha_sys.h"
#include "sysemu.h"
#include "mc146818rtc.h"
+#include "ide.h"
+#define MAX_IDE_BUS 2
static uint64_t cpu_alpha_superpage_to_phys(void *opaque, uint64_t addr)
{
@@ -97,6 +99,14 @@ static void clipper_init(ram_addr_t ram_size,
pci_nic_init_nofail(&nd_table[i], "e1000", NULL);
}
+ /* IDE disk setup. */
+ {
+ DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS];
+ ide_drive_get(hd, MAX_IDE_BUS);
+
+ pci_cmd646_ide_init(pci_bus, hd, 0);
+ }
+
/* Load PALcode. Given that this is not "real" cpu palcode,
but one explicitly written for the emulation, we might as
well load it directly from and ELF image. */
--
1.7.4.4
- [Qemu-devel] [PATCH 19/35] target-alpha: All ISA checks to use TB->FLAGS., (continued)
- [Qemu-devel] [PATCH 19/35] target-alpha: All ISA checks to use TB->FLAGS., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 22/35] target-alpha: Implement cpu_alpha_handle_mmu_fault for system mode., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 23/35] target-alpha: Remap PIO space for 43-bit KSEG for EV6., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 24/35] target-alpha: Trap for unassigned and unaligned addresses., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 25/35] target-alpha: Include the PCC_OFS in the RPCC return value., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 26/35] target-alpha: Use a fixed frequency for the RPCC in system mode., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 27/35] target-alpha: Implement TLB flush primitives., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 30/35] target-alpha: Implement WAIT IPR., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 33/35] target-alpha: Properly select the VGA controler to use., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 29/35] target-alpha: Add CLIPPER emulation., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 34/35] target-alpha: Enable PCI IDE,
Richard Henderson <=
- [Qemu-devel] [PATCH 35/35] target-alpha: Add ps2 keyboard., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 31/35] target-alpha: Implement HALT IPR., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 32/35] target-alpha: Add high-resolution access to wall clock and an alarm., Richard Henderson, 2011/05/09
- [Qemu-devel] [PATCH 28/35] target-alpha: Add custom PALcode image for CLIPPER emulation., Richard Henderson, 2011/05/09
- Re: [Qemu-devel] [PATCH 00/35] Alpha system emulation, v4, Paul Brook, 2011/05/10