v3_pci_raise_irq(nic_state->pci_bus, 0, nic_state->pci_dev);
}
- nic_state->statistics.interrupts ++;
+ nic_state->statistics.rx_interrupts ++;
PrintDebug("NE2000: Raise IRQ\n");
}
}
bars[0].type = PCI_BAR_IO;
- bars[0].default_base_port = NIC_REG_BASE_PORT;
+ bars[0].default_base_port = -1;
bars[0].num_ports = 256;
bars[0].io_read = ne2k_pci_read;
nic_state->backend_data = private_data;
ops->recv = ne2k_rx;
- ops->poll = NULL;
- ops->start_tx = NULL;
- ops->stop_tx = NULL;
- ops->frontend_data = nic_state;
- memcpy(ops->fnt_mac, nic_state->mac, ETH_ALEN);
+ ops->poll = NULL;
+ ops->config.frontend_data = nic_state;
+ ops->config.fnt_mac = nic_state->mac;
return 0;
}