[6145] target-mips: DMA support for RC4030 chipset
Revision: 6145
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6145 Author: aurel32 Date: 2009-01-01 13:03:36 +0000 (Thu, 01 Jan 2009)
Log Message:
-----------
target-mips: DMA support for RC4030 chipset
Attached patch implements DMA support to RC4030 chipset and simplifies jazz IO part (at 0xf0000000), where registers contain 16 bit values. Config register has not a clear meaning (only one value is always valid, and sometimes another one), so use a magic value instead. The patch also wires DMA transfers for the SCSI adapter in the Jazz emulation (Mips Magnum 4000 and Acer Pica 61).
Modified Paths:
--------------
trunk/hw/mips.h
trunk/hw/mips_jazz.c
trunk/hw/rc4030.cModified: trunk/hw/mips.h
===================================================================
hw/mips.h +5 -1
@@ -27,6 +27,10 @@extern void cpu_mips_clock_init (CPUState *);/* rc4030.c */ -qemu_irq *rc4030_init (qemu_irq timer,qemu_irq jazz_bus); +typedef struct rc4030DMAState *rc4030_dma ; +typedef void (*rc4030_dma_function )(void *dma,uint8_t *buf,int len); +qemu_irq *rc4030_init (qemu_irq timer,qemu_irq jazz_bus, +rc4030_dma **dmas, +rc4030_dma_function *dma_read,rc4030_dma_function *dma_write);#endif
Modified: trunk/hw/mips_jazz.c
===================================================================
hw/mips_jazz.c +32 -14
97 lines not on this page · raw message
Modified: trunk/hw/rc4030.c
===================================================================
hw/rc4030.c +209 -77
469 lines not on this page · raw message