Home | History | Annotate | Download | only in hw

Lines Matching defs:PCIDevice

73 typedef void PCIConfigWriteFunc(PCIDevice *pci_dev,
75 typedef uint32_t PCIConfigReadFunc(PCIDevice *pci_dev,
77 typedef void PCIMapIORegionFunc(PCIDevice *pci_dev, int region_num,
79 typedef int PCIUnregisterFunc(PCIDevice *pci_dev);
140 struct PCIDevice {
163 PCIDevice *pci_register_device(PCIBus *bus, const char *name,
167 int pci_unregister_device(PCIDevice *pci_dev);
169 void pci_register_bar(PCIDevice *pci_dev, int region_num,
173 uint32_t pci_default_read_config(PCIDevice *d,
175 void pci_default_write_config(PCIDevice *d,
177 void pci_device_save(PCIDevice *s, QEMUFile *f);
178 int pci_device_load(PCIDevice *s, QEMUFile *f);
181 typedef int (*pci_map_irq_fn)(PCIDevice *pci_dev, int irq_num);
186 PCIDevice *pci_nic_init(PCIBus *bus, NICInfo *nd, int devfn,
191 void pci_for_each_device(int bus_num, void (*fn)(PCIDevice *d));
193 PCIDevice *pci_find_device(int bus_num, int slot, int function);
220 typedef void (*pci_qdev_initfn)(PCIDevice *dev);
223 PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name);