VirtualBox

Ignore:
Timestamp:
Oct 24, 2016 2:06:02 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111495
Message:

PDM,Devices: Some PCI device type cleanup.

File:
1 edited

Legend:

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

    r64373 r64387  
    2727#include "PciInline.h"
    2828
    29 DECLINLINE(uint16_t) msiGetMessageControl(PPCIDEVICE pDev)
     29DECLINLINE(uint16_t) msiGetMessageControl(PPDMPCIDEV pDev)
    3030{
    3131    uint32_t idxMessageControl = pDev->Int.s.u8MsiCapOffset + VBOX_MSI_CAP_MESSAGE_CONTROL;
     
    3838}
    3939
    40 DECLINLINE(bool) msiIs64Bit(PPCIDEVICE pDev)
     40DECLINLINE(bool) msiIs64Bit(PPDMPCIDEV pDev)
    4141{
    4242    return pciDevIsMsi64Capable(pDev);
    4343}
    4444
    45 DECLINLINE(uint32_t*) msiGetMaskBits(PPCIDEVICE pDev)
     45DECLINLINE(uint32_t*) msiGetMaskBits(PPDMPCIDEV pDev)
    4646{
    4747    uint8_t iOff = msiIs64Bit(pDev) ? VBOX_MSI_CAP_MASK_BITS_64 : VBOX_MSI_CAP_MASK_BITS_32;
     
    5353}
    5454
    55 DECLINLINE(uint32_t*) msiGetPendingBits(PPCIDEVICE pDev)
     55DECLINLINE(uint32_t*) msiGetPendingBits(PPDMPCIDEV pDev)
    5656{
    5757    uint8_t iOff = msiIs64Bit(pDev) ? VBOX_MSI_CAP_PENDING_BITS_64 : VBOX_MSI_CAP_PENDING_BITS_32;
     
    6363}
    6464
    65 DECLINLINE(bool) msiIsEnabled(PPCIDEVICE pDev)
     65DECLINLINE(bool) msiIsEnabled(PPDMPCIDEV pDev)
    6666{
    6767    return (msiGetMessageControl(pDev) & VBOX_PCI_MSI_FLAGS_ENABLE) != 0;
    6868}
    6969
    70 DECLINLINE(uint8_t) msiGetMme(PPCIDEVICE pDev)
     70DECLINLINE(uint8_t) msiGetMme(PPDMPCIDEV pDev)
    7171{
    7272    return (msiGetMessageControl(pDev) & VBOX_PCI_MSI_FLAGS_QSIZE) >> 4;
    7373}
    7474
    75 DECLINLINE(RTGCPHYS) msiGetMsiAddress(PPCIDEVICE pDev)
     75DECLINLINE(RTGCPHYS) msiGetMsiAddress(PPDMPCIDEV pDev)
    7676{
    7777    if (msiIs64Bit(pDev))
     
    8787}
    8888
    89 DECLINLINE(uint32_t) msiGetMsiData(PPCIDEVICE pDev, int32_t iVector)
     89DECLINLINE(uint32_t) msiGetMsiData(PPDMPCIDEV pDev, int32_t iVector)
    9090{
    9191    int16_t  iOff = msiIs64Bit(pDev) ? VBOX_MSI_CAP_MESSAGE_DATA_64 : VBOX_MSI_CAP_MESSAGE_DATA_32;
     
    117117}
    118118
    119 void     MsiPciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPCIDEVICE pDev,
     119void     MsiPciConfigWrite(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev,
    120120                           uint32_t u32Address, uint32_t val, unsigned len)
    121121{
     
    202202}
    203203
    204 uint32_t MsiPciConfigRead (PPDMDEVINS pDevIns, PPCIDEVICE pDev, uint32_t u32Address, unsigned len)
     204uint32_t MsiPciConfigRead (PPDMDEVINS pDevIns, PPDMPCIDEV pDev, uint32_t u32Address, unsigned len)
    205205{
    206206    RT_NOREF1(pDevIns);
     
    231231}
    232232
    233 int MsiInit(PPCIDEVICE pDev, PPDMMSIREG pMsiReg)
     233int MsiInit(PPDMPCIDEV pDev, PPDMMSIREG pMsiReg)
    234234{
    235235    if (pMsiReg->cMsiVectors == 0)
     
    284284
    285285
    286 bool     MsiIsEnabled(PPCIDEVICE pDev)
     286bool     MsiIsEnabled(PPDMPCIDEV pDev)
    287287{
    288288    return pciDevIsMsiCapable(pDev) && msiIsEnabled(pDev);
    289289}
    290290
    291 void MsiNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPCIDEVICE pDev, int iVector, int iLevel, uint32_t uTagSrc)
     291void MsiNotify(PPDMDEVINS pDevIns, PCPDMPCIHLP pPciHlp, PPDMPCIDEV pDev, int iVector, int iLevel, uint32_t uTagSrc)
    292292{
    293293    AssertMsg(msiIsEnabled(pDev), ("Must be enabled to use that"));
Note: See TracChangeset for help on using the changeset viewer.

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