Revision 1b4e8f73 hw/msix.c

b/hw/msix.c
15 15
#include "msix.h"
16 16
#include "pci.h"
17 17

  
18
/* Declaration from linux/pci_regs.h */
19
#define  PCI_CAP_ID_MSIX 0x11 /* MSI-X */
20
#define  PCI_MSIX_FLAGS 2     /* Table at lower 11 bits */
21
#define  PCI_MSIX_FLAGS_QSIZE	0x7FF
22
#define  PCI_MSIX_FLAGS_ENABLE	(1 << 15)
23
#define  PCI_MSIX_FLAGS_MASKALL	(1 << 14)
24
#define  PCI_MSIX_FLAGS_BIRMASK	(7 << 0)
25

  
26 18
/* MSI-X capability structure */
27 19
#define MSIX_TABLE_OFFSET 4
28 20
#define MSIX_PBA_OFFSET 8

Also available in: Unified diff