summaryrefslogtreecommitdiff
path: root/hw/pcnet.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-26 17:39:43 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-26 17:39:43 +0000
commit5aca8c3b2fbada188ff86781fba24685d346cef9 (patch)
treed3cc0526e7c45b23dfddf42a123d4261f87a93b4 /hw/pcnet.c
parentdb7b5426a4b424249b4aba3496bf14da69a6625b (diff)
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
Diffstat (limited to 'hw/pcnet.c')
-rw-r--r--hw/pcnet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/pcnet.c b/hw/pcnet.c
index 12d973479..4c4278ffa 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;