]>
Commit | Line | Data |
---|---|---|
02eb84d0 MT |
1 | #ifndef QEMU_MSIX_H |
2 | #define QEMU_MSIX_H | |
3 | ||
4 | #include "qemu-common.h" | |
c759b24f | 5 | #include "hw/pci/pci.h" |
02eb84d0 | 6 | |
932d4a42 | 7 | void msix_set_message(PCIDevice *dev, int vector, MSIMessage msg); |
5a2c2029 AW |
8 | int msix_init(PCIDevice *dev, unsigned short nentries, |
9 | MemoryRegion *table_bar, uint8_t table_bar_nr, | |
10 | unsigned table_offset, MemoryRegion *pba_bar, | |
11 | uint8_t pba_bar_nr, unsigned pba_offset, uint8_t cap_pos); | |
53f94925 AW |
12 | int msix_init_exclusive_bar(PCIDevice *dev, unsigned short nentries, |
13 | uint8_t bar_nr); | |
02eb84d0 | 14 | |
118f2c2b | 15 | void msix_write_config(PCIDevice *dev, uint32_t address, uint32_t val, int len); |
02eb84d0 | 16 | |
572992ee AW |
17 | void msix_uninit(PCIDevice *dev, MemoryRegion *table_bar, |
18 | MemoryRegion *pba_bar); | |
53f94925 | 19 | void msix_uninit_exclusive_bar(PCIDevice *dev); |
02eb84d0 | 20 | |
cb697aaa JK |
21 | unsigned int msix_nr_vectors_allocated(const PCIDevice *dev); |
22 | ||
02eb84d0 MT |
23 | void msix_save(PCIDevice *dev, QEMUFile *f); |
24 | void msix_load(PCIDevice *dev, QEMUFile *f); | |
25 | ||
26 | int msix_enabled(PCIDevice *dev); | |
27 | int msix_present(PCIDevice *dev); | |
28 | ||
02eb84d0 MT |
29 | int msix_vector_use(PCIDevice *dev, unsigned vector); |
30 | void msix_vector_unuse(PCIDevice *dev, unsigned vector); | |
b5f28bca | 31 | void msix_unuse_all_vectors(PCIDevice *dev); |
02eb84d0 MT |
32 | |
33 | void msix_notify(PCIDevice *dev, unsigned vector); | |
34 | ||
35 | void msix_reset(PCIDevice *dev); | |
36 | ||
2cdfe53c JK |
37 | int msix_set_vector_notifiers(PCIDevice *dev, |
38 | MSIVectorUseNotifier use_notifier, | |
bbef882c MT |
39 | MSIVectorReleaseNotifier release_notifier, |
40 | MSIVectorPollNotifier poll_notifier); | |
2cdfe53c | 41 | void msix_unset_vector_notifiers(PCIDevice *dev); |
02eb84d0 | 42 | #endif |