]> git.proxmox.com Git - qemu.git/blame - hw/msix.h
msix: Split PBA into it's own MemoryRegion
[qemu.git] / hw / msix.h
CommitLineData
02eb84d0
MT
1#ifndef QEMU_MSIX_H
2#define QEMU_MSIX_H
3
4#include "qemu-common.h"
6e355d90 5#include "pci.h"
02eb84d0 6
5a1fc5e8 7int msix_init(PCIDevice *pdev, unsigned short nentries,
95524ae8 8 MemoryRegion *bar,
5a1fc5e8 9 unsigned bar_nr, unsigned bar_size);
53f94925
AW
10int msix_init_exclusive_bar(PCIDevice *dev, unsigned short nentries,
11 uint8_t bar_nr);
02eb84d0 12
118f2c2b 13void msix_write_config(PCIDevice *dev, uint32_t address, uint32_t val, int len);
02eb84d0 14
95524ae8 15int msix_uninit(PCIDevice *d, MemoryRegion *bar);
53f94925 16void msix_uninit_exclusive_bar(PCIDevice *dev);
02eb84d0 17
cb697aaa
JK
18unsigned int msix_nr_vectors_allocated(const PCIDevice *dev);
19
02eb84d0
MT
20void msix_save(PCIDevice *dev, QEMUFile *f);
21void msix_load(PCIDevice *dev, QEMUFile *f);
22
23int msix_enabled(PCIDevice *dev);
24int msix_present(PCIDevice *dev);
25
02eb84d0
MT
26int msix_vector_use(PCIDevice *dev, unsigned vector);
27void msix_vector_unuse(PCIDevice *dev, unsigned vector);
b5f28bca 28void msix_unuse_all_vectors(PCIDevice *dev);
02eb84d0
MT
29
30void msix_notify(PCIDevice *dev, unsigned vector);
31
32void msix_reset(PCIDevice *dev);
33
2cdfe53c
JK
34int msix_set_vector_notifiers(PCIDevice *dev,
35 MSIVectorUseNotifier use_notifier,
36 MSIVectorReleaseNotifier release_notifier);
37void msix_unset_vector_notifiers(PCIDevice *dev);
02eb84d0 38#endif