diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-01 13:03:36 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-01 13:03:36 +0000 |
commit | c6945b153cff51712263ec4abfee5e3ecc5e2577 (patch) | |
tree | 8ede1e015ca21c3d177ad53ed18fdcca3ef6c070 /hw/mips.h | |
parent | 3aa9bd6c351daa73a84a19673e5c9b2694bb9eed (diff) |
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).
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6145 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/mips.h')
-rw-r--r-- | hw/mips.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -27,6 +27,10 @@ extern void cpu_mips_irq_init_cpu(CPUState *env); 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 |