mirror of https://github.com/xemu-project/xemu.git
Merge pull request #66 from mborgerson/networking
Add networking support
This commit is contained in:
commit
1fef6b47ef
994
hw/xbox/nvnet.c
994
hw/xbox/nvnet.c
File diff suppressed because it is too large
Load Diff
|
@ -42,6 +42,8 @@
|
||||||
|
|
||||||
#include "hw/xbox/xbox.h"
|
#include "hw/xbox/xbox.h"
|
||||||
|
|
||||||
|
#include "net/net.h"
|
||||||
|
|
||||||
/* mostly from pc_memory_init */
|
/* mostly from pc_memory_init */
|
||||||
static void xbox_memory_init(MemoryRegion *system_memory,
|
static void xbox_memory_init(MemoryRegion *system_memory,
|
||||||
ram_addr_t mem_size,
|
ram_addr_t mem_size,
|
||||||
|
@ -234,7 +236,14 @@ void xbox_init_common(QEMUMachineInitArgs *args,
|
||||||
qdev_init_nofail(&usb0->qdev);
|
qdev_init_nofail(&usb0->qdev);
|
||||||
|
|
||||||
/* Ethernet! */
|
/* Ethernet! */
|
||||||
PCIDevice *nvnet = pci_create_simple(host_bus, PCI_DEVFN(4, 0), "nvnet");
|
PCIDevice *nvnet = pci_create(host_bus, PCI_DEVFN(4, 0), "nvnet");
|
||||||
|
|
||||||
|
for (i = 0; i < nb_nics; i++) {
|
||||||
|
NICInfo *nd = &nd_table[i];
|
||||||
|
qemu_check_nic_model(nd, "nvnet");
|
||||||
|
qdev_set_nic_properties(&nvnet->qdev, nd);
|
||||||
|
qdev_init_nofail(&nvnet->qdev);
|
||||||
|
}
|
||||||
|
|
||||||
/* APU! */
|
/* APU! */
|
||||||
PCIDevice *apu = pci_create_simple(host_bus, PCI_DEVFN(5, 0), "mcpx-apu");
|
PCIDevice *apu = pci_create_simple(host_bus, PCI_DEVFN(5, 0), "mcpx-apu");
|
||||||
|
|
Loading…
Reference in New Issue