Revision 2507c12a hw/stellaris.c
b/hw/stellaris.c | ||
---|---|---|
348 | 348 |
qdev_init_gpio_out(&dev->qdev, &s->trigger, 1); |
349 | 349 |
|
350 | 350 |
iomemtype = cpu_register_io_memory(gptm_readfn, |
351 |
gptm_writefn, s); |
|
351 |
gptm_writefn, s, |
|
352 |
DEVICE_NATIVE_ENDIAN); |
|
352 | 353 |
sysbus_init_mmio(dev, 0x1000, iomemtype); |
353 | 354 |
|
354 | 355 |
s->opaque[0] = s->opaque[1] = s; |
... | ... | |
671 | 672 |
s->user1 = macaddr[3] | (macaddr[4] << 8) | (macaddr[5] << 16); |
672 | 673 |
|
673 | 674 |
iomemtype = cpu_register_io_memory(ssys_readfn, |
674 |
ssys_writefn, s); |
|
675 |
ssys_writefn, s, |
|
676 |
DEVICE_NATIVE_ENDIAN); |
|
675 | 677 |
cpu_register_physical_memory(base, 0x00001000, iomemtype); |
676 | 678 |
ssys_reset(s); |
677 | 679 |
register_savevm(NULL, "stellaris_sys", -1, 1, ssys_save, ssys_load, s); |
... | ... | |
884 | 886 |
s->bus = bus; |
885 | 887 |
|
886 | 888 |
iomemtype = cpu_register_io_memory(stellaris_i2c_readfn, |
887 |
stellaris_i2c_writefn, s); |
|
889 |
stellaris_i2c_writefn, s, |
|
890 |
DEVICE_NATIVE_ENDIAN); |
|
888 | 891 |
sysbus_init_mmio(dev, 0x1000, iomemtype); |
889 | 892 |
/* ??? For now we only implement the master interface. */ |
890 | 893 |
stellaris_i2c_reset(s); |
... | ... | |
1193 | 1196 |
} |
1194 | 1197 |
|
1195 | 1198 |
iomemtype = cpu_register_io_memory(stellaris_adc_readfn, |
1196 |
stellaris_adc_writefn, s); |
|
1199 |
stellaris_adc_writefn, s, |
|
1200 |
DEVICE_NATIVE_ENDIAN); |
|
1197 | 1201 |
sysbus_init_mmio(dev, 0x1000, iomemtype); |
1198 | 1202 |
stellaris_adc_reset(s); |
1199 | 1203 |
qdev_init_gpio_in(&dev->qdev, stellaris_adc_trigger, 1); |
Also available in: Unified diff