mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Make pci_nic_init() use qemu_setup_nic_model() (Mark McLoughlin)
Add a table of PCI NIC models to pass to qemu_setup_nic_model(). While we're at it, also add a corresponding table of NIC init functions. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6287 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
0ae18ceeaa
commit
cb457d7679
12 changed files with 65 additions and 89 deletions
3
hw/pci.h
3
hw/pci.h
|
@ -118,7 +118,8 @@ typedef int (*pci_map_irq_fn)(PCIDevice *pci_dev, int irq_num);
|
|||
PCIBus *pci_register_bus(pci_set_irq_fn set_irq, pci_map_irq_fn map_irq,
|
||||
qemu_irq *pic, int devfn_min, int nirq);
|
||||
|
||||
void pci_nic_init(PCIBus *bus, NICInfo *nd, int devfn);
|
||||
void pci_nic_init(PCIBus *bus, NICInfo *nd, int devfn,
|
||||
const char *default_model);
|
||||
void pci_data_write(void *opaque, uint32_t addr, uint32_t val, int len);
|
||||
uint32_t pci_data_read(void *opaque, uint32_t addr, int len);
|
||||
int pci_bus_num(PCIBus *s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue