qdev/isa: convert ne2000
[qemu.git] / hw / msix.h
blob3427778dc1a86418e4497a9182a2794b39753033
1 #ifndef QEMU_MSIX_H
2 #define QEMU_MSIX_H
4 #include "qemu-common.h"
6 int msix_init(PCIDevice *pdev, unsigned short nentries,
7 unsigned bar_nr, unsigned bar_size);
9 void msix_write_config(PCIDevice *pci_dev, uint32_t address,
10 uint32_t val, int len);
12 void msix_mmio_map(PCIDevice *pci_dev, int region_num,
13 uint32_t addr, uint32_t size, int type);
15 int msix_uninit(PCIDevice *d);
17 void msix_save(PCIDevice *dev, QEMUFile *f);
18 void msix_load(PCIDevice *dev, QEMUFile *f);
20 int msix_enabled(PCIDevice *dev);
21 int msix_present(PCIDevice *dev);
23 uint32_t msix_bar_size(PCIDevice *dev);
25 int msix_vector_use(PCIDevice *dev, unsigned vector);
26 void msix_vector_unuse(PCIDevice *dev, unsigned vector);
28 void msix_notify(PCIDevice *dev, unsigned vector);
30 void msix_reset(PCIDevice *dev);
32 extern int msix_supported;
34 #endif