4 #include "qemu-common.h"
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
);
11 int msix_init_exclusive_bar(PCIDevice
*dev
, unsigned short nentries
,
14 void msix_write_config(PCIDevice
*dev
, uint32_t address
, uint32_t val
, int len
);
16 int msix_uninit(PCIDevice
*dev
, MemoryRegion
*table_bar
,
17 MemoryRegion
*pba_bar
);
18 void msix_uninit_exclusive_bar(PCIDevice
*dev
);
20 unsigned int msix_nr_vectors_allocated(const PCIDevice
*dev
);
22 void msix_save(PCIDevice
*dev
, QEMUFile
*f
);
23 void msix_load(PCIDevice
*dev
, QEMUFile
*f
);
25 int msix_enabled(PCIDevice
*dev
);
26 int msix_present(PCIDevice
*dev
);
28 int msix_vector_use(PCIDevice
*dev
, unsigned vector
);
29 void msix_vector_unuse(PCIDevice
*dev
, unsigned vector
);
30 void msix_unuse_all_vectors(PCIDevice
*dev
);
32 void msix_notify(PCIDevice
*dev
, unsigned vector
);
34 void msix_reset(PCIDevice
*dev
);
36 int msix_set_vector_notifiers(PCIDevice
*dev
,
37 MSIVectorUseNotifier use_notifier
,
38 MSIVectorReleaseNotifier release_notifier
);
39 void msix_unset_vector_notifiers(PCIDevice
*dev
);