|
@@ -503,14 +503,12 @@ static MemoryRegion *make_eth_dev(MPS2TZMachineState *mms, void *opaque,
|
|
const PPCExtraData *extradata)
|
|
const PPCExtraData *extradata)
|
|
{
|
|
{
|
|
SysBusDevice *s;
|
|
SysBusDevice *s;
|
|
- NICInfo *nd = &nd_table[0];
|
|
|
|
|
|
|
|
/* In hardware this is a LAN9220; the LAN9118 is software compatible
|
|
/* In hardware this is a LAN9220; the LAN9118 is software compatible
|
|
* except that it doesn't support the checksum-offload feature.
|
|
* except that it doesn't support the checksum-offload feature.
|
|
*/
|
|
*/
|
|
- qemu_check_nic_model(nd, "lan9118");
|
|
|
|
mms->lan9118 = qdev_new(TYPE_LAN9118);
|
|
mms->lan9118 = qdev_new(TYPE_LAN9118);
|
|
- qdev_set_nic_properties(mms->lan9118, nd);
|
|
|
|
|
|
+ qemu_configure_nic_device(mms->lan9118, true, NULL);
|
|
|
|
|
|
s = SYS_BUS_DEVICE(mms->lan9118);
|
|
s = SYS_BUS_DEVICE(mms->lan9118);
|
|
sysbus_realize_and_unref(s, &error_fatal);
|
|
sysbus_realize_and_unref(s, &error_fatal);
|
|
@@ -528,7 +526,6 @@ static MemoryRegion *make_eth_usb(MPS2TZMachineState *mms, void *opaque,
|
|
* irqs[] is the ethernet IRQ.
|
|
* irqs[] is the ethernet IRQ.
|
|
*/
|
|
*/
|
|
SysBusDevice *s;
|
|
SysBusDevice *s;
|
|
- NICInfo *nd = &nd_table[0];
|
|
|
|
|
|
|
|
memory_region_init(&mms->eth_usb_container, OBJECT(mms),
|
|
memory_region_init(&mms->eth_usb_container, OBJECT(mms),
|
|
"mps2-tz-eth-usb-container", 0x200000);
|
|
"mps2-tz-eth-usb-container", 0x200000);
|
|
@@ -537,9 +534,8 @@ static MemoryRegion *make_eth_usb(MPS2TZMachineState *mms, void *opaque,
|
|
* In hardware this is a LAN9220; the LAN9118 is software compatible
|
|
* In hardware this is a LAN9220; the LAN9118 is software compatible
|
|
* except that it doesn't support the checksum-offload feature.
|
|
* except that it doesn't support the checksum-offload feature.
|
|
*/
|
|
*/
|
|
- qemu_check_nic_model(nd, "lan9118");
|
|
|
|
mms->lan9118 = qdev_new(TYPE_LAN9118);
|
|
mms->lan9118 = qdev_new(TYPE_LAN9118);
|
|
- qdev_set_nic_properties(mms->lan9118, nd);
|
|
|
|
|
|
+ qemu_configure_nic_device(mms->lan9118, true, NULL);
|
|
|
|
|
|
s = SYS_BUS_DEVICE(mms->lan9118);
|
|
s = SYS_BUS_DEVICE(mms->lan9118);
|
|
sysbus_realize_and_unref(s, &error_fatal);
|
|
sysbus_realize_and_unref(s, &error_fatal);
|