Statistics
| Branch: | Revision:

root / hw / msix.h @ 3f66aa9c

History | View | Annotate | Download (866 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 02eb84d0 Michael S. Tsirkin
6 5a1fc5e8 Michael S. Tsirkin
int msix_init(PCIDevice *pdev, unsigned short nentries,
7 5a1fc5e8 Michael S. Tsirkin
              unsigned bar_nr, unsigned bar_size);
8 02eb84d0 Michael S. Tsirkin
9 02eb84d0 Michael S. Tsirkin
void msix_write_config(PCIDevice *pci_dev, uint32_t address,
10 02eb84d0 Michael S. Tsirkin
                       uint32_t val, int len);
11 02eb84d0 Michael S. Tsirkin
12 02eb84d0 Michael S. Tsirkin
void msix_mmio_map(PCIDevice *pci_dev, int region_num,
13 02eb84d0 Michael S. Tsirkin
                   uint32_t addr, uint32_t size, int type);
14 02eb84d0 Michael S. Tsirkin
15 02eb84d0 Michael S. Tsirkin
int msix_uninit(PCIDevice *d);
16 02eb84d0 Michael S. Tsirkin
17 02eb84d0 Michael S. Tsirkin
void msix_save(PCIDevice *dev, QEMUFile *f);
18 02eb84d0 Michael S. Tsirkin
void msix_load(PCIDevice *dev, QEMUFile *f);
19 02eb84d0 Michael S. Tsirkin
20 02eb84d0 Michael S. Tsirkin
int msix_enabled(PCIDevice *dev);
21 02eb84d0 Michael S. Tsirkin
int msix_present(PCIDevice *dev);
22 02eb84d0 Michael S. Tsirkin
23 02eb84d0 Michael S. Tsirkin
uint32_t msix_bar_size(PCIDevice *dev);
24 02eb84d0 Michael S. Tsirkin
25 02eb84d0 Michael S. Tsirkin
int msix_vector_use(PCIDevice *dev, unsigned vector);
26 02eb84d0 Michael S. Tsirkin
void msix_vector_unuse(PCIDevice *dev, unsigned vector);
27 02eb84d0 Michael S. Tsirkin
28 02eb84d0 Michael S. Tsirkin
void msix_notify(PCIDevice *dev, unsigned vector);
29 02eb84d0 Michael S. Tsirkin
30 02eb84d0 Michael S. Tsirkin
void msix_reset(PCIDevice *dev);
31 02eb84d0 Michael S. Tsirkin
32 02eb84d0 Michael S. Tsirkin
extern int msix_supported;
33 02eb84d0 Michael S. Tsirkin
34 02eb84d0 Michael S. Tsirkin
#endif