VirtualBox

Changeset 71773 in vbox


Ignore:
Timestamp:
Apr 9, 2018 2:35:02 PM (7 years ago)
Author:
vboxsync
Message:

Msi: docs cleanups

Location:
trunk/src/VBox/Devices/Bus
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/MsiCommon.cpp

    r71768 r71773  
    117117}
    118118
     119/**
     120 * PCI config space accessors for MSI registers.
     121 */
    119122void MsiR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev,
    120123                         uint32_t u32Address, uint32_t val, unsigned len)
     
    202205}
    203206
     207/**
     208 * Initializes MSI support for the given PCI device.
     209 */
    204210int MsiR3Init(PPDMPCIDEV pDev, PPDMMSIREG pMsiReg)
    205211{
     
    266272
    267273
     274/**
     275 * Checks if MSI is enabled for the given PCI device.
     276 *
     277 * (Must use MSINotify() for notifications when true.)
     278 */
    268279bool MsiIsEnabled(PPDMPCIDEV pDev)
    269280{
     
    271282}
    272283
     284/**
     285 * Device notification (aka interrupt).
     286 */
    273287void MsiNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, int iVector, int iLevel, uint32_t uTagSrc)
    274288{
  • trunk/src/VBox/Devices/Bus/MsiCommon.h

    r71768 r71773  
    1616 */
    1717
    18 /* Maybe belongs to types.h */
    19 #ifdef IN_RING3
    20 typedef PCPDMPCIHLPR3 PCPDMPCIHLP;
    21 #endif
     18#ifndef ___MSI_COMMON_H___
     19#define ___MSI_COMMON_H___
    2220
    23 #ifdef IN_RING0
    24 typedef PCPDMPCIHLPR0 PCPDMPCIHLP;
    25 #endif
    26 
    27 #ifdef IN_RC
    28 typedef PCPDMPCIHLPRC PCPDMPCIHLP;
    29 #endif
     21typedef CTX_SUFF(PCPDMPCIHLP) PCPDMPCIHLP;
    3022
    3123#ifdef IN_RING3
    32 /* Init MSI support in the device. */
    3324int      MsiR3Init(PPDMPCIDEV pDev, PPDMMSIREG pMsiReg);
     25void     MsiR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, uint32_t u32Address, uint32_t val, unsigned len);
    3426#endif
    35 
    36 /* If MSI is enabled, so that MSINotify() shall be used for notifications.  */
    3727bool     MsiIsEnabled(PPDMPCIDEV pDev);
    38 
    39 /* Device notification (aka interrupt). */
    4028void     MsiNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, int iVector, int iLevel, uint32_t uTagSrc);
    4129
    4230#ifdef IN_RING3
    43 /* PCI config space accessors for MSI registers */
    44 void     MsiR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, uint32_t u32Address, uint32_t val, unsigned len);
     31int      MsixR3Init(PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, PPDMMSIREG pMsiReg);
     32void     MsixR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, uint32_t u32Address, uint32_t val, unsigned len);
     33#endif
     34bool     MsixIsEnabled(PPDMPCIDEV pDev);
     35void     MsixNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, int iVector, int iLevel, uint32_t uTagSrc);
     36
    4537#endif
    4638
    47 #ifdef IN_RING3
    48 /* Init MSI-X support in the device. */
    49 int      MsixR3Init(PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, PPDMMSIREG pMsiReg);
    50 #endif
    51 
    52 /* If MSI-X is enabled, so that MSIXNotify() shall be used for notifications.  */
    53 bool     MsixIsEnabled(PPDMPCIDEV pDev);
    54 
    55 /* Device notification (aka interrupt). */
    56 void     MsixNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, int iVector, int iLevel, uint32_t uTagSrc);
    57 
    58 #ifdef IN_RING3
    59 /* PCI config space accessors for MSI-X */
    60 void     MsixR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, uint32_t u32Address, uint32_t val, unsigned len);
    61 #endif
  • trunk/src/VBox/Devices/Bus/MsixCommon.cpp

    r71772 r71773  
    177177}
    178178
     179/**
     180 * Initalizes MSI-X support for the given PCI device.
     181 */
    179182int MsixR3Init(PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, PPDMMSIREG pMsiReg)
    180183{
     
    248251#endif /* IN_RING3 */
    249252
     253/**
     254 * Checks if MSI-X is enabled for the tiven PCI device.
     255 *
     256 * (Must use MSIXNotify() for notifications when true.)
     257 */
    250258bool MsixIsEnabled(PPDMPCIDEV pDev)
    251259{
     
    253261}
    254262
     263/**
     264 * Device notification (aka interrupt).
     265 */
    255266void MsixNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, int iVector, int iLevel, uint32_t uTagSrc)
    256267{
     
    296307}
    297308
    298 
     309/**
     310 * PCI config space accessors for MSI-X.
     311 */
    299312void MsixR3PciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, uint32_t u32Address, uint32_t val, unsigned len)
    300313{
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