ne2000.c (d1cc881d54d2abc9c90d92c90deccc8d47966b1c) | ne2000.c (f394b2e20d9a666fb194fb692179a0eeaca5daea) |
---|---|
1/* 2 * QEMU NE2000 emulation 3 * 4 * Copyright (c) 2003-2004 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 698 unchanged lines hidden (view full) --- 707/* PCI NE2000 definitions */ 708 709void ne2000_setup_io(NE2000State *s, DeviceState *dev, unsigned size) 710{ 711 memory_region_init_io(&s->io, OBJECT(dev), &ne2000_ops, s, "ne2000", size); 712} 713 714static NetClientInfo net_ne2000_info = { | 1/* 2 * QEMU NE2000 emulation 3 * 4 * Copyright (c) 2003-2004 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 698 unchanged lines hidden (view full) --- 707/* PCI NE2000 definitions */ 708 709void ne2000_setup_io(NE2000State *s, DeviceState *dev, unsigned size) 710{ 711 memory_region_init_io(&s->io, OBJECT(dev), &ne2000_ops, s, "ne2000", size); 712} 713 714static NetClientInfo net_ne2000_info = { |
715 .type = NET_CLIENT_OPTIONS_KIND_NIC, | 715 .type = NET_CLIENT_DRIVER_NIC, |
716 .size = sizeof(NICState), 717 .receive = ne2000_receive, 718}; 719 720static void pci_ne2000_realize(PCIDevice *pci_dev, Error **errp) 721{ 722 PCINE2000State *d = DO_UPCAST(PCINE2000State, dev, pci_dev); 723 NE2000State *s; --- 73 unchanged lines hidden --- | 716 .size = sizeof(NICState), 717 .receive = ne2000_receive, 718}; 719 720static void pci_ne2000_realize(PCIDevice *pci_dev, Error **errp) 721{ 722 PCINE2000State *d = DO_UPCAST(PCINE2000State, dev, pci_dev); 723 NE2000State *s; --- 73 unchanged lines hidden --- |