From 5aca8c3b2fbada188ff86781fba24685d346cef9 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sat, 26 May 2007 17:39:43 +0000 Subject: Split DMA controller in two Fix register size related bugs git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2869 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/pcnet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hw/pcnet.c') diff --git a/hw/pcnet.c b/hw/pcnet.c index 12d973479c..4c4278ffa3 100644 --- a/hw/pcnet.c +++ b/hw/pcnet.c @@ -1554,7 +1554,7 @@ static uint32_t pcnet_bcr_readw(PCNetState *s, uint32_t rap) return val; } -void pcnet_h_reset(void *opaque) +static void pcnet_h_reset(void *opaque) { PCNetState *s = opaque; int i; @@ -2032,6 +2032,8 @@ void *lance_init(NICInfo *nd, target_phys_addr_t leaddr, void *dma_opaque, cpu_register_io_memory(0, lance_mem_read, lance_mem_write, d); d->dma_opaque = dma_opaque; + sparc32_dma_set_reset_data(dma_opaque, pcnet_h_reset, d); + cpu_register_physical_memory(leaddr, 4, lance_io_memory); d->irq = irq; -- cgit v1.2.3