Blue Swirl <blauwir...@gmail.com> writes: > 2010/9/8 Hervé Poussineau <hpous...@reactos.org>: >> Use it in Jazz emulation >> Remove rc4030_init() function, which is not used anymore >> >> Signed-off-by: Hervé Poussineau <hpous...@reactos.org> >> --- >> hw/mips.h | 4 +- >> hw/mips_jazz.c | 8 +-- >> hw/rc4030.c | 135 >> ++++++++++++++++++++++++++----------------------------- >> 3 files changed, 69 insertions(+), 78 deletions(-) >> >> diff --git a/hw/mips.h b/hw/mips.h >> index 2897ea6..bdbe024 100644 >> --- a/hw/mips.h >> +++ b/hw/mips.h >> @@ -16,8 +16,8 @@ typedef struct rc4030DMAState *rc4030_dma; >> 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, rc4030_dma **dmas); >> +extern rc4030_dma *rc4030_dmas; >> +extern void *rc4030_dma_opaque; > > These should be device properties (DEFINE_PROP_PTR, qdev_set_prop_ptr().
Note: DEFINE_PROP_PTR() & friends are for dirty hacks only. Maybe we should talk about how to do it cleanly. [...]