VirtualBox

Ignore:
Timestamp:
Oct 24, 2016 2:42:05 PM (8 years ago)
Author:
vboxsync
Message:

PDMPCIDEV: s/config/abConfig/ everywhere, removing the legacy alias.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r64387 r64393  
    793793{
    794794    return    (pThis->u8SMBusHstCnt & SMBHSTCNT_INTEREN)
    795            && (pThis->dev.config[SMBHSTCFG] & SMBHSTCFG_SMB_HST_EN)
    796            && (pThis->dev.config[SMBHSTCFG] & SMBHSTCFG_INTRSEL) == SMBHSTCFG_INTRSEL_IRQ9 << SMBHSTCFG_INTRSEL_SHIFT
     795           && (pThis->dev.abConfig[SMBHSTCFG] & SMBHSTCFG_SMB_HST_EN)
     796           && (pThis->dev.abConfig[SMBHSTCFG] & SMBHSTCFG_INTRSEL) == SMBHSTCFG_INTRSEL_IRQ9 << SMBHSTCFG_INTRSEL_SHIFT
    797797           && (pThis->u8SMBusHstSts & SMBHSTSTS_INT_MASK);
    798798}
     
    19271927static void acpiR3PmPCIBIOSFake(ACPIState *pThis)
    19281928{
    1929     pThis->dev.config[PMBA  ] = pThis->uPmIoPortBase | 1; /* PMBA, PM base address, bit 0 marks it as IO range */
    1930     pThis->dev.config[PMBA+1] = pThis->uPmIoPortBase >> 8;
    1931     pThis->dev.config[PMBA+2] = 0x00;
    1932     pThis->dev.config[PMBA+3] = 0x00;
     1929    pThis->dev.abConfig[PMBA  ] = pThis->uPmIoPortBase | 1; /* PMBA, PM base address, bit 0 marks it as IO range */
     1930    pThis->dev.abConfig[PMBA+1] = pThis->uPmIoPortBase >> 8;
     1931    pThis->dev.abConfig[PMBA+2] = 0x00;
     1932    pThis->dev.abConfig[PMBA+3] = 0x00;
    19331933}
    19341934
     
    22282228static void acpiR3SMBusPCIBIOSFake(ACPIState *pThis)
    22292229{
    2230     pThis->dev.config[SMBBA  ] = pThis->uSMBusIoPortBase | 1; /* SMBBA, SMBus base address, bit 0 marks it as IO range */
    2231     pThis->dev.config[SMBBA+1] = pThis->uSMBusIoPortBase >> 8;
    2232     pThis->dev.config[SMBBA+2] = 0x00;
    2233     pThis->dev.config[SMBBA+3] = 0x00;
    2234     pThis->dev.config[SMBHSTCFG] = SMBHSTCFG_INTRSEL_IRQ9 << SMBHSTCFG_INTRSEL_SHIFT | SMBHSTCFG_SMB_HST_EN; /* SMBHSTCFG */
    2235     pThis->dev.config[SMBSLVC] = 0x00; /* SMBSLVC */
    2236     pThis->dev.config[SMBSHDW1] = 0x00; /* SMBSHDW1 */
    2237     pThis->dev.config[SMBSHDW2] = 0x00; /* SMBSHDW2 */
    2238     pThis->dev.config[SMBREV] = 0x00; /* SMBREV */
     2230    pThis->dev.abConfig[SMBBA  ] = pThis->uSMBusIoPortBase | 1; /* SMBBA, SMBus base address, bit 0 marks it as IO range */
     2231    pThis->dev.abConfig[SMBBA+1] = pThis->uSMBusIoPortBase >> 8;
     2232    pThis->dev.abConfig[SMBBA+2] = 0x00;
     2233    pThis->dev.abConfig[SMBBA+3] = 0x00;
     2234    pThis->dev.abConfig[SMBHSTCFG] = SMBHSTCFG_INTRSEL_IRQ9 << SMBHSTCFG_INTRSEL_SHIFT | SMBHSTCFG_SMB_HST_EN; /* SMBHSTCFG */
     2235    pThis->dev.abConfig[SMBSLVC] = 0x00; /* SMBSLVC */
     2236    pThis->dev.abConfig[SMBSHDW1] = 0x00; /* SMBSHDW1 */
     2237    pThis->dev.abConfig[SMBSHDW2] = 0x00; /* SMBSHDW2 */
     2238    pThis->dev.abConfig[SMBREV] = 0x00; /* SMBREV */
    22392239}
    22402240
     
    33013301        RTIOPORT NewIoPortBase = 0;
    33023302        /* Check Power Management IO Space Enable (PMIOSE) bit */
    3303         if (pPciDev->config[PMREGMISC] & 0x01)
     3303        if (pPciDev->abConfig[PMREGMISC] & 0x01)
    33043304        {
    33053305            NewIoPortBase = (RTIOPORT)PCIDevGetDWord(pPciDev, PMBA);
     
    33153315        RTIOPORT NewIoPortBase = 0;
    33163316        /* Check SMBus Controller Host Interface Enable (SMB_HST_EN) bit */
    3317         if (pPciDev->config[SMBHSTCFG] & SMBHSTCFG_SMB_HST_EN)
     3317        if (pPciDev->abConfig[SMBHSTCFG] & SMBHSTCFG_SMB_HST_EN)
    33183318        {
    33193319            NewIoPortBase = (RTIOPORT)PCIDevGetDWord(pPciDev, SMBBA);
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