pcnet-pci.c (e8d40465592716cb209f0ae5de6b4cbe9ea2f8ba) | pcnet-pci.c (f394b2e20d9a666fb194fb692179a0eeaca5daea) |
---|---|
1/* 2 * QEMU AMD PC-Net II (Am79C970A) PCI emulation 3 * 4 * Copyright (c) 2004 Antony T Curtis 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 --- 258 unchanged lines hidden (view full) --- 267 268 qemu_free_irq(d->state.irq); 269 timer_del(d->state.poll_timer); 270 timer_free(d->state.poll_timer); 271 qemu_del_nic(d->state.nic); 272} 273 274static NetClientInfo net_pci_pcnet_info = { | 1/* 2 * QEMU AMD PC-Net II (Am79C970A) PCI emulation 3 * 4 * Copyright (c) 2004 Antony T Curtis 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 --- 258 unchanged lines hidden (view full) --- 267 268 qemu_free_irq(d->state.irq); 269 timer_del(d->state.poll_timer); 270 timer_free(d->state.poll_timer); 271 qemu_del_nic(d->state.nic); 272} 273 274static NetClientInfo net_pci_pcnet_info = { |
275 .type = NET_CLIENT_OPTIONS_KIND_NIC, | 275 .type = NET_CLIENT_DRIVER_NIC, |
276 .size = sizeof(NICState), 277 .receive = pcnet_receive, 278 .link_status_changed = pcnet_set_link_status, 279}; 280 281static void pci_pcnet_realize(PCIDevice *pci_dev, Error **errp) 282{ 283 PCIPCNetState *d = PCI_PCNET(pci_dev); --- 92 unchanged lines hidden --- | 276 .size = sizeof(NICState), 277 .receive = pcnet_receive, 278 .link_status_changed = pcnet_set_link_status, 279}; 280 281static void pci_pcnet_realize(PCIDevice *pci_dev, Error **errp) 282{ 283 PCIPCNetState *d = PCI_PCNET(pci_dev); --- 92 unchanged lines hidden --- |