VirtualBox

Changeset 33236 in vbox for trunk/include


Ignore:
Timestamp:
Oct 19, 2010 3:14:42 PM (14 years ago)
Author:
vboxsync
Message:

PCI: MSI-X work

Location:
trunk/include/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/msi.h

    r32951 r33236  
    109109#define VBOX_MSIX_MAX_ENTRIES                 32
    110110#define VBOX_MSIX_ENTRY_SIZE                  16
     111/* Size of MSI-X PCI capability */
     112#define VBOX_MSIX_CAP_SIZE                    12
     113/* Offsets in MSI-X PCI capability structure (VBOX_PCI_CAP_ID_MSIX) */
     114#define VBOX_MSIX_CAP_MESSAGE_CONTROL         0x02
     115#define VBOX_MSIX_TABLE_BIROFFSET             0x04
     116#define VBOX_MSIX_PBA_BIROFFSET               0x08
    111117
    112118#endif
  • trunk/include/VBox/pci.h

    r32951 r33236  
    270270
    271271/* MSI-X flags (2 bytes, capability offset 2) */
    272 #define  VBOX_PCI_MSIX_FLAGS_ENABLE  0x8000
     272#define  VBOX_PCI_MSIX_FLAGS_ENABLE   0x8000  /* MSI-X enable */
     273#define  VBOX_PCI_MSIX_FLAGS_FUNCMASK 0x4000  /* Function mask */
    273274
    274275/* Power management flags (2 bytes, capability offset 2) */
  • trunk/include/VBox/pdmdev.h

    r32935 r33236  
    422422typedef struct PDMMSIREG
    423423{
    424     /** Number of interrupt vectors */
    425     uint16_t   cVectors;
     424    /** Number of MSI interrupt vectors, 0 if MSI not supported */
     425    uint16_t   cMsiVectors;
    426426    /** Offset of MSI capability */
    427     uint8_t    iCapOffset;
    428     /** Offset of next capability */
    429     uint8_t    iNextOffset;
    430     /** Value to initialize message control register */
     427    uint8_t    iMsiCapOffset;
     428    /** Offset of next capability to MSI */
     429    uint8_t    iMsiNextOffset;
     430    /** Value to initialize MSI message control register */
    431431    uint16_t   iMsiFlags;
     432
     433    /** Number of MSI-X interrupt vectors, 0 if MSI-X not supported */
     434    uint16_t   cMsixVectors;
     435    /** Offset of MSI-X capability */
     436    uint8_t    iMsixCapOffset;
     437    /** Offset of next capability to MSI-X */
     438    uint8_t    iMsixNextOffset;
     439    /** Value to initialize MSI-X message control register */
     440    uint16_t   iMsixFlags;
    432441} PDMMSIREG;
    433442typedef PDMMSIREG *PPDMMSIREG;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette