summaryrefslogtreecommitdiff
path: root/hw/mips.h
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-10 21:26:55 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-10 21:26:55 +0000
commit68238a9e90708740200e652631ee1356dd55147d (patch)
treeec40170ed3aa80c84da08d1d65c77cfe41532ad5 /hw/mips.h
parentMake PCI config status register read-only (diff)
downloadqemu-kvm-68238a9e90708740200e652631ee1356dd55147d.tar.gz
qemu-kvm-68238a9e90708740200e652631ee1356dd55147d.tar.bz2
qemu-kvm-68238a9e90708740200e652631ee1356dd55147d.zip
Clean up rc4030 init function
At the moment, rc4030 init function is returning some function pointers. Mark them non-static and define them in header file instead. Export also a function to read/write DMA memory, it will be required by the netcard. 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@7072 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/mips.h')
-rw-r--r--hw/mips.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/hw/mips.h b/hw/mips.h
index ba0ad6d83..26f022939 100644
--- a/hw/mips.h
+++ b/hw/mips.h
@@ -28,9 +28,11 @@ extern void cpu_mips_clock_init(CPUState *);
/* rc4030.c */
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);
+void rc4030_dma_memory_rw(void *opaque, target_phys_addr_t addr, uint8_t *buf, int len, int is_write);
+void rc4030_dma_read(void *dma, uint8_t *buf, int len);
+void rc4030_dma_write(void *dma, uint8_t *buf, int len);
+
+void *rc4030_init(qemu_irq timer, qemu_irq jazz_bus,
+ qemu_irq **irqs, rc4030_dma **dmas);
#endif