mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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
This commit is contained in:
parent
3aa9bd6c35
commit
c6945b153c
3 changed files with 250 additions and 96 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue