Changeset 64393 in vbox for trunk/src/VBox/Devices/PC/DevACPI.cpp
- Timestamp:
- Oct 24, 2016 2:42:05 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r64387 r64393 793 793 { 794 794 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_SHIFT795 && (pThis->dev.abConfig[SMBHSTCFG] & SMBHSTCFG_SMB_HST_EN) 796 && (pThis->dev.abConfig[SMBHSTCFG] & SMBHSTCFG_INTRSEL) == SMBHSTCFG_INTRSEL_IRQ9 << SMBHSTCFG_INTRSEL_SHIFT 797 797 && (pThis->u8SMBusHstSts & SMBHSTSTS_INT_MASK); 798 798 } … … 1927 1927 static void acpiR3PmPCIBIOSFake(ACPIState *pThis) 1928 1928 { 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; 1933 1933 } 1934 1934 … … 2228 2228 static void acpiR3SMBusPCIBIOSFake(ACPIState *pThis) 2229 2229 { 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 */ 2239 2239 } 2240 2240 … … 3301 3301 RTIOPORT NewIoPortBase = 0; 3302 3302 /* Check Power Management IO Space Enable (PMIOSE) bit */ 3303 if (pPciDev-> config[PMREGMISC] & 0x01)3303 if (pPciDev->abConfig[PMREGMISC] & 0x01) 3304 3304 { 3305 3305 NewIoPortBase = (RTIOPORT)PCIDevGetDWord(pPciDev, PMBA); … … 3315 3315 RTIOPORT NewIoPortBase = 0; 3316 3316 /* 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) 3318 3318 { 3319 3319 NewIoPortBase = (RTIOPORT)PCIDevGetDWord(pPciDev, SMBBA);
Note:
See TracChangeset
for help on using the changeset viewer.