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:
bellard 2006-07-04 11:33:00 +00:00
parent 6cadb320c7
commit e3c2613f91
4 changed files with 1778 additions and 1 deletions

View File

@ -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

View File

@ -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);

1771
hw/pcnet.c Normal file

File diff suppressed because it is too large Load Diff

4
vl.h
View File

@ -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);