#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"
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;
}
.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(),