Revision a41b2ff2 hw/sun4m.c
b/hw/sun4m.c | ||
---|---|---|
257 | 257 |
} |
258 | 258 |
|
259 | 259 |
tcx = tcx_init(ds, PHYS_JJ_TCX_FB, phys_ram_base + ram_size, ram_size, vram_size, graphic_width, graphic_height); |
260 |
lance_init(&nd_table[0], PHYS_JJ_LE_IRQ, PHYS_JJ_LE, PHYS_JJ_LEDMA); |
|
260 |
if (nd_table[0].vlan) { |
|
261 |
if (nd_table[0].model == NULL |
|
262 |
|| strcmp(nd_table[0].model, "lance") == 0) { |
|
263 |
lance_init(&nd_table[0], PHYS_JJ_LE_IRQ, PHYS_JJ_LE, PHYS_JJ_LEDMA); |
|
264 |
} else { |
|
265 |
fprintf(stderr, "qemu: Unsupported NIC: %s\n", nd_table[0].model); |
|
266 |
exit (1); |
|
267 |
} |
|
268 |
} |
|
261 | 269 |
nvram = m48t59_init(0, PHYS_JJ_EEPROM, 0, PHYS_JJ_EEPROM_SIZE, 8); |
262 | 270 |
for (i = 0; i < MAX_CPUS; i++) { |
263 | 271 |
slavio_timer_init(PHYS_JJ_CLOCK + i * TARGET_PAGE_SIZE, PHYS_JJ_CLOCK_IRQ, 0, i); |
Also available in: Unified diff