]>
Commit | Line | Data |
---|---|---|
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 | |
5a2c2029 AW |
7 | int msix_init(PCIDevice *dev, unsigned short nentries, |
8 | MemoryRegion *table_bar, uint8_t table_bar_nr, | |
9 | unsigned table_offset, MemoryRegion *pba_bar, | |
10 | uint8_t pba_bar_nr, unsigned pba_offset, uint8_t cap_pos); | |
53f94925 AW |
11 | int msix_init_exclusive_bar(PCIDevice *dev, unsigned short nentries, |
12 | uint8_t bar_nr); | |
02eb84d0 | 13 | |
118f2c2b | 14 | void msix_write_config(PCIDevice *dev, uint32_t address, uint32_t val, int len); |
02eb84d0 | 15 | |
572992ee AW |
16 | void msix_uninit(PCIDevice *dev, MemoryRegion *table_bar, |
17 | MemoryRegion *pba_bar); | |
53f94925 | 18 | void msix_uninit_exclusive_bar(PCIDevice *dev); |
02eb84d0 | 19 | |
cb697aaa JK |
20 | unsigned int msix_nr_vectors_allocated(const PCIDevice *dev); |
21 | ||
02eb84d0 MT |
22 | void msix_save(PCIDevice *dev, QEMUFile *f); |
23 | void msix_load(PCIDevice *dev, QEMUFile *f); | |
24 | ||
25 | int msix_enabled(PCIDevice *dev); | |
26 | int msix_present(PCIDevice *dev); | |
27 | ||
02eb84d0 MT |
28 | int msix_vector_use(PCIDevice *dev, unsigned vector); |
29 | void msix_vector_unuse(PCIDevice *dev, unsigned vector); | |
b5f28bca | 30 | void msix_unuse_all_vectors(PCIDevice *dev); |
02eb84d0 MT |
31 | |
32 | void msix_notify(PCIDevice *dev, unsigned vector); | |
33 | ||
34 | void msix_reset(PCIDevice *dev); | |
35 | ||
2cdfe53c JK |
36 | int msix_set_vector_notifiers(PCIDevice *dev, |
37 | MSIVectorUseNotifier use_notifier, | |
38 | MSIVectorReleaseNotifier release_notifier); | |
39 | void msix_unset_vector_notifiers(PCIDevice *dev); | |
02eb84d0 | 40 | #endif |