Revision 1eed09cb hw/musicpal.c
b/hw/musicpal.c | ||
---|---|---|
437 | 437 |
s->wm = i2c_create_slave(i2c->bus, "wm8750", MP_WM_ADDR); |
438 | 438 |
wm8750_data_req_set(s->wm, audio_callback, s); |
439 | 439 |
|
440 |
iomemtype = cpu_register_io_memory(0, musicpal_audio_readfn,
|
|
440 |
iomemtype = cpu_register_io_memory(musicpal_audio_readfn, |
|
441 | 441 |
musicpal_audio_writefn, s); |
442 | 442 |
cpu_register_physical_memory(MP_AUDIO_BASE, MP_AUDIO_SIZE, iomemtype); |
443 | 443 |
|
... | ... | |
756 | 756 |
s->vc = qdev_get_vlan_client(&dev->qdev, |
757 | 757 |
eth_can_receive, eth_receive, NULL, |
758 | 758 |
eth_cleanup, s); |
759 |
s->mmio_index = cpu_register_io_memory(0, mv88w8618_eth_readfn,
|
|
759 |
s->mmio_index = cpu_register_io_memory(mv88w8618_eth_readfn, |
|
760 | 760 |
mv88w8618_eth_writefn, s); |
761 | 761 |
sysbus_init_mmio(dev, MP_ETH_SIZE, s->mmio_index); |
762 | 762 |
} |
... | ... | |
946 | 946 |
musicpal_lcd_state *s = FROM_SYSBUS(musicpal_lcd_state, dev); |
947 | 947 |
int iomemtype; |
948 | 948 |
|
949 |
iomemtype = cpu_register_io_memory(0, musicpal_lcd_readfn,
|
|
949 |
iomemtype = cpu_register_io_memory(musicpal_lcd_readfn, |
|
950 | 950 |
musicpal_lcd_writefn, s); |
951 | 951 |
sysbus_init_mmio(dev, MP_LCD_SIZE, iomemtype); |
952 | 952 |
cpu_register_physical_memory(MP_LCD_BASE, MP_LCD_SIZE, iomemtype); |
... | ... | |
1043 | 1043 |
|
1044 | 1044 |
qdev_init_gpio_in(&dev->qdev, mv88w8618_pic_set_irq, 32); |
1045 | 1045 |
sysbus_init_irq(dev, &s->parent_irq); |
1046 |
iomemtype = cpu_register_io_memory(0, mv88w8618_pic_readfn,
|
|
1046 |
iomemtype = cpu_register_io_memory(mv88w8618_pic_readfn, |
|
1047 | 1047 |
mv88w8618_pic_writefn, s); |
1048 | 1048 |
sysbus_init_mmio(dev, MP_PIC_SIZE, iomemtype); |
1049 | 1049 |
|
... | ... | |
1167 | 1167 |
mv88w8618_timer_init(dev, &s->timer[i], 1000000); |
1168 | 1168 |
} |
1169 | 1169 |
|
1170 |
iomemtype = cpu_register_io_memory(0, mv88w8618_pit_readfn,
|
|
1170 |
iomemtype = cpu_register_io_memory(mv88w8618_pit_readfn, |
|
1171 | 1171 |
mv88w8618_pit_writefn, s); |
1172 | 1172 |
sysbus_init_mmio(dev, MP_PIT_SIZE, iomemtype); |
1173 | 1173 |
} |
... | ... | |
1224 | 1224 |
mv88w8618_flashcfg_state *s = FROM_SYSBUS(mv88w8618_flashcfg_state, dev); |
1225 | 1225 |
|
1226 | 1226 |
s->cfgr0 = 0xfffe4285; /* Default as set by U-Boot for 8 MB flash */ |
1227 |
iomemtype = cpu_register_io_memory(0, mv88w8618_flashcfg_readfn,
|
|
1227 |
iomemtype = cpu_register_io_memory(mv88w8618_flashcfg_readfn, |
|
1228 | 1228 |
mv88w8618_flashcfg_writefn, s); |
1229 | 1229 |
sysbus_init_mmio(dev, MP_FLASHCFG_SIZE, iomemtype); |
1230 | 1230 |
} |
... | ... | |
1266 | 1266 |
{ |
1267 | 1267 |
int iomemtype; |
1268 | 1268 |
|
1269 |
iomemtype = cpu_register_io_memory(0, musicpal_misc_readfn,
|
|
1269 |
iomemtype = cpu_register_io_memory(musicpal_misc_readfn, |
|
1270 | 1270 |
musicpal_misc_writefn, NULL); |
1271 | 1271 |
cpu_register_physical_memory(MP_MISC_BASE, MP_MISC_SIZE, iomemtype); |
1272 | 1272 |
} |
... | ... | |
1311 | 1311 |
{ |
1312 | 1312 |
int iomemtype; |
1313 | 1313 |
|
1314 |
iomemtype = cpu_register_io_memory(0, mv88w8618_wlan_readfn,
|
|
1314 |
iomemtype = cpu_register_io_memory(mv88w8618_wlan_readfn, |
|
1315 | 1315 |
mv88w8618_wlan_writefn, NULL); |
1316 | 1316 |
sysbus_init_mmio(dev, MP_WLAN_SIZE, iomemtype); |
1317 | 1317 |
} |
... | ... | |
1412 | 1412 |
{ |
1413 | 1413 |
int iomemtype; |
1414 | 1414 |
|
1415 |
iomemtype = cpu_register_io_memory(0, musicpal_gpio_readfn,
|
|
1415 |
iomemtype = cpu_register_io_memory(musicpal_gpio_readfn, |
|
1416 | 1416 |
musicpal_gpio_writefn, NULL); |
1417 | 1417 |
cpu_register_physical_memory(MP_GPIO_BASE, MP_GPIO_SIZE, iomemtype); |
1418 | 1418 |
} |
Also available in: Unified diff