summaryrefslogtreecommitdiffstats
path: root/hw/eepro100.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-01-07 17:13:30 +0100
committerMichael S. Tsirkin <mst@redhat.com>2010-01-13 14:50:18 +0200
commit938a63240204993524c2d165292cd509533da8b2 (patch)
tree3bae2066bede8c326860bb59a5fa6953be0807c6 /hw/eepro100.c
parent61702408c7b321ae57f871d4ccddb372ec0347ad (diff)
downloadhqemu-938a63240204993524c2d165292cd509533da8b2.zip
hqemu-938a63240204993524c2d165292cd509533da8b2.tar.gz
eepro100: Update ROM file support
Use new way to associate ROM files to devices. Currently, there is only a ROM file for i82559er included in QEMU, so the patch does not add .romfile for the other devices. When flexible mode is fixed in eepro100, adding more ROM files will be possible. It should be possible to create them from pxe-i82559er.bin, because etherboot uses the same driver for all eepro100 devices (only PCI ids differ). Maybe it is even possible to create a single pxe-i8255x.bin which supports all eepro100 devices (not supported with current etherboot). Signed-off-by: Stefan Weil <weil@mail.berlios.de> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/eepro100.c')
-rw-r--r--hw/eepro100.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c
index 21753c7..d0c45bf 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -40,7 +40,6 @@
#include <stddef.h> /* offsetof */
#include <stdbool.h>
#include "hw.h"
-#include "loader.h" /* rom_add_option */
#include "pci.h"
#include "net.h"
#include "eeprom93xx.h"
@@ -1863,15 +1862,6 @@ static int nic_init(PCIDevice *pci_dev, uint32_t device)
s->vmstate->name = s->nic->nc.model;
vmstate_register(-1, s->vmstate, s);
- if (!pci_dev->qdev.hotplugged) {
- static int loaded = 0;
- if (!loaded) {
- char fname[32];
- snprintf(fname, sizeof(fname), "pxe-%s.bin", s->nic->nc.model);
- rom_add_option(fname);
- loaded = 1;
- }
- }
return 0;
}
@@ -2031,6 +2021,7 @@ static PCIDeviceInfo eepro100_info[] = {
.qdev.size = sizeof(EEPRO100State),
.init = pci_i82559er_init,
.exit = pci_nic_uninit,
+ .romfile = "pxe-i82559er.bin",
.qdev.props = (Property[]) {
DEFINE_NIC_PROPERTIES(EEPRO100State, conf),
DEFINE_PROP_END_OF_LIST(),
OpenPOWER on IntegriCloud