root / hw / msix.h @ 658788c5
History | View | Annotate | Download (928 Bytes)
1 | 02eb84d0 | Michael S. Tsirkin | #ifndef QEMU_MSIX_H
|
---|---|---|---|
2 | 02eb84d0 | Michael S. Tsirkin | #define QEMU_MSIX_H
|
3 | 02eb84d0 | Michael S. Tsirkin | |
4 | 02eb84d0 | Michael S. Tsirkin | #include "qemu-common.h" |
5 | 6e355d90 | Isaku Yamahata | #include "pci.h" |
6 | 02eb84d0 | Michael S. Tsirkin | |
7 | 5a1fc5e8 | Michael S. Tsirkin | int msix_init(PCIDevice *pdev, unsigned short nentries, |
8 | 5a1fc5e8 | Michael S. Tsirkin | unsigned bar_nr, unsigned bar_size); |
9 | 02eb84d0 | Michael S. Tsirkin | |
10 | 02eb84d0 | Michael S. Tsirkin | void msix_write_config(PCIDevice *pci_dev, uint32_t address,
|
11 | 02eb84d0 | Michael S. Tsirkin | uint32_t val, int len);
|
12 | 02eb84d0 | Michael S. Tsirkin | |
13 | 02eb84d0 | Michael S. Tsirkin | void msix_mmio_map(PCIDevice *pci_dev, int region_num, |
14 | 6e355d90 | Isaku Yamahata | pcibus_t addr, pcibus_t size, int type);
|
15 | 02eb84d0 | Michael S. Tsirkin | |
16 | 02eb84d0 | Michael S. Tsirkin | int msix_uninit(PCIDevice *d);
|
17 | 02eb84d0 | Michael S. Tsirkin | |
18 | 02eb84d0 | Michael S. Tsirkin | void msix_save(PCIDevice *dev, QEMUFile *f);
|
19 | 02eb84d0 | Michael S. Tsirkin | void msix_load(PCIDevice *dev, QEMUFile *f);
|
20 | 02eb84d0 | Michael S. Tsirkin | |
21 | 02eb84d0 | Michael S. Tsirkin | int msix_enabled(PCIDevice *dev);
|
22 | 02eb84d0 | Michael S. Tsirkin | int msix_present(PCIDevice *dev);
|
23 | 02eb84d0 | Michael S. Tsirkin | |
24 | 02eb84d0 | Michael S. Tsirkin | uint32_t msix_bar_size(PCIDevice *dev); |
25 | 02eb84d0 | Michael S. Tsirkin | |
26 | 02eb84d0 | Michael S. Tsirkin | int msix_vector_use(PCIDevice *dev, unsigned vector); |
27 | 02eb84d0 | Michael S. Tsirkin | void msix_vector_unuse(PCIDevice *dev, unsigned vector); |
28 | b5f28bca | Michael S. Tsirkin | void msix_unuse_all_vectors(PCIDevice *dev);
|
29 | 02eb84d0 | Michael S. Tsirkin | |
30 | 02eb84d0 | Michael S. Tsirkin | void msix_notify(PCIDevice *dev, unsigned vector); |
31 | 02eb84d0 | Michael S. Tsirkin | |
32 | 02eb84d0 | Michael S. Tsirkin | void msix_reset(PCIDevice *dev);
|
33 | 02eb84d0 | Michael S. Tsirkin | |
34 | 02eb84d0 | Michael S. Tsirkin | extern int msix_supported; |
35 | 02eb84d0 | Michael S. Tsirkin | |
36 | 02eb84d0 | Michael S. Tsirkin | #endif |