Revision 1eed09cb hw/stellaris.c
b/hw/stellaris.c | ||
---|---|---|
347 | 347 |
sysbus_init_irq(dev, &s->irq); |
348 | 348 |
qdev_init_gpio_out(&dev->qdev, &s->trigger, 1); |
349 | 349 |
|
350 |
iomemtype = cpu_register_io_memory(0, gptm_readfn,
|
|
350 |
iomemtype = cpu_register_io_memory(gptm_readfn, |
|
351 | 351 |
gptm_writefn, s); |
352 | 352 |
sysbus_init_mmio(dev, 0x1000, iomemtype); |
353 | 353 |
|
... | ... | |
668 | 668 |
s->user0 = macaddr[0] | (macaddr[1] << 8) | (macaddr[2] << 16); |
669 | 669 |
s->user1 = macaddr[3] | (macaddr[4] << 8) | (macaddr[5] << 16); |
670 | 670 |
|
671 |
iomemtype = cpu_register_io_memory(0, ssys_readfn,
|
|
671 |
iomemtype = cpu_register_io_memory(ssys_readfn, |
|
672 | 672 |
ssys_writefn, s); |
673 | 673 |
cpu_register_physical_memory(base, 0x00001000, iomemtype); |
674 | 674 |
ssys_reset(s); |
... | ... | |
880 | 880 |
bus = i2c_init_bus(&dev->qdev, "i2c"); |
881 | 881 |
s->bus = bus; |
882 | 882 |
|
883 |
iomemtype = cpu_register_io_memory(0, stellaris_i2c_readfn,
|
|
883 |
iomemtype = cpu_register_io_memory(stellaris_i2c_readfn, |
|
884 | 884 |
stellaris_i2c_writefn, s); |
885 | 885 |
sysbus_init_mmio(dev, 0x1000, iomemtype); |
886 | 886 |
/* ??? For now we only implement the master interface. */ |
... | ... | |
1188 | 1188 |
sysbus_init_irq(dev, &s->irq[n]); |
1189 | 1189 |
} |
1190 | 1190 |
|
1191 |
iomemtype = cpu_register_io_memory(0, stellaris_adc_readfn,
|
|
1191 |
iomemtype = cpu_register_io_memory(stellaris_adc_readfn, |
|
1192 | 1192 |
stellaris_adc_writefn, s); |
1193 | 1193 |
sysbus_init_mmio(dev, 0x1000, iomemtype); |
1194 | 1194 |
stellaris_adc_reset(s); |
Also available in: Unified diff