eepro100: Add more i825xx devices
[qemu/kevin.git] / hw / msix.h
blob9367ba38f82a99db125989ab24051fba61fff18d
1 #ifndef QEMU_MSIX_H
2 #define QEMU_MSIX_H
4 #include "qemu-common.h"
6 int msix_init(struct PCIDevice *dev, unsigned short nentries,
7 unsigned bar_nr, unsigned bar_size,
8 target_phys_addr_t page_size);
10 void msix_write_config(PCIDevice *pci_dev, uint32_t address,
11 uint32_t val, int len);
13 void msix_mmio_map(PCIDevice *pci_dev, int region_num,
14 uint32_t addr, uint32_t size, int type);
16 int msix_uninit(PCIDevice *d);
18 void msix_save(PCIDevice *dev, QEMUFile *f);
19 void msix_load(PCIDevice *dev, QEMUFile *f);
21 int msix_enabled(PCIDevice *dev);
22 int msix_present(PCIDevice *dev);
24 uint32_t msix_bar_size(PCIDevice *dev);
26 int msix_vector_use(PCIDevice *dev, unsigned vector);
27 void msix_vector_unuse(PCIDevice *dev, unsigned vector);
29 void msix_notify(PCIDevice *dev, unsigned vector);
31 void msix_reset(PCIDevice *dev);
33 extern int msix_supported;
35 #endif