mirror of https://gitee.com/openkylin/qemu.git
pcnet nic support (Antony T Curtis)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2036 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
6cadb320c7
commit
e3c2613f91
|
@ -329,7 +329,7 @@ VL_OBJS+= scsi-disk.o cdrom.o lsi53c895a.o
|
||||||
VL_OBJS+= usb.o usb-hub.o usb-linux.o usb-hid.o usb-ohci.o usb-msd.o
|
VL_OBJS+= usb.o usb-hub.o usb-linux.o usb-hid.o usb-ohci.o usb-msd.o
|
||||||
|
|
||||||
# PCI network cards
|
# PCI network cards
|
||||||
VL_OBJS+= ne2000.o rtl8139.o
|
VL_OBJS+= ne2000.o rtl8139.o pcnet.o
|
||||||
|
|
||||||
ifeq ($(TARGET_BASE_ARCH), i386)
|
ifeq ($(TARGET_BASE_ARCH), i386)
|
||||||
# Hardware support
|
# Hardware support
|
||||||
|
|
2
hw/pci.c
2
hw/pci.c
|
@ -493,6 +493,8 @@ void pci_nic_init(PCIBus *bus, NICInfo *nd)
|
||||||
pci_ne2000_init(bus, nd);
|
pci_ne2000_init(bus, nd);
|
||||||
} else if (strcmp(nd->model, "rtl8139") == 0) {
|
} else if (strcmp(nd->model, "rtl8139") == 0) {
|
||||||
pci_rtl8139_init(bus, nd);
|
pci_rtl8139_init(bus, nd);
|
||||||
|
} else if (strcmp(nd->model, "pcnet") == 0) {
|
||||||
|
pci_pcnet_init(bus, nd);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "qemu: Unsupported NIC: %s\n", nd->model);
|
fprintf(stderr, "qemu: Unsupported NIC: %s\n", nd->model);
|
||||||
exit (1);
|
exit (1);
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
4
vl.h
4
vl.h
|
@ -828,6 +828,10 @@ void pci_ne2000_init(PCIBus *bus, NICInfo *nd);
|
||||||
|
|
||||||
void pci_rtl8139_init(PCIBus *bus, NICInfo *nd);
|
void pci_rtl8139_init(PCIBus *bus, NICInfo *nd);
|
||||||
|
|
||||||
|
/* pcnet.c */
|
||||||
|
|
||||||
|
void pci_pcnet_init(PCIBus *bus, NICInfo *nd);
|
||||||
|
|
||||||
/* pckbd.c */
|
/* pckbd.c */
|
||||||
|
|
||||||
void kbd_init(void);
|
void kbd_init(void);
|
||||||
|
|
Loading…
Reference in New Issue