mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 04:13:39 +08:00
msix: add api to access msix message
Will be used by virtio pci. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
2d620f593d
commit
4c93bfa9c9
@ -27,7 +27,7 @@
|
||||
#define MSIX_ENABLE_MASK (PCI_MSIX_FLAGS_ENABLE >> 8)
|
||||
#define MSIX_MASKALL_MASK (PCI_MSIX_FLAGS_MASKALL >> 8)
|
||||
|
||||
static MSIMessage msix_get_message(PCIDevice *dev, unsigned vector)
|
||||
MSIMessage msix_get_message(PCIDevice *dev, unsigned vector)
|
||||
{
|
||||
uint8_t *table_entry = dev->msix_table + vector * PCI_MSIX_ENTRY_SIZE;
|
||||
MSIMessage msg;
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include "hw/pci/pci.h"
|
||||
|
||||
void msix_set_message(PCIDevice *dev, int vector, MSIMessage msg);
|
||||
MSIMessage msix_get_message(PCIDevice *dev, unsigned int vector);
|
||||
int msix_init(PCIDevice *dev, unsigned short nentries,
|
||||
MemoryRegion *table_bar, uint8_t table_bar_nr,
|
||||
unsigned table_offset, MemoryRegion *pba_bar,
|
||||
|
Loading…
Reference in New Issue
Block a user