Changeset 64393 in vbox for trunk/src/VBox/Devices/PC/DevLPC.cpp
- Timestamp:
- Oct 24, 2016 2:42:05 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevLPC.cpp
r64387 r64393 190 190 LogFlow(("lpcInfo: \n")); 191 191 192 if (pThis->dev. config[0xde] == 0xbe && pThis->dev.config[0xad] == 0xef)192 if (pThis->dev.abConfig[0xde] == 0xbe && pThis->dev.abConfig[0xad] == 0xef) 193 193 pHlp->pfnPrintf(pHlp, "APIC backdoor activated\n"); 194 194 else 195 195 pHlp->pfnPrintf(pHlp, "APIC backdoor closed: %02x %02x\n", 196 pThis->dev. config[0xde], pThis->dev.config[0xad]);196 pThis->dev.abConfig[0xde], pThis->dev.abConfig[0xad]); 197 197 198 198 … … 246 246 247 247 /* 40h - 43h PMBASE 40-43 ACPI Base Address */ 248 pThis->dev. config[0x40] = 0x01; /* IO space */249 pThis->dev. config[0x41] = 0x80; /* base address / 128, see DevACPI.cpp */248 pThis->dev.abConfig[0x40] = 0x01; /* IO space */ 249 pThis->dev.abConfig[0x41] = 0x80; /* base address / 128, see DevACPI.cpp */ 250 250 251 251 /* 44h ACPI_CNTL ACPI Control */ 252 pThis->dev. config[0x44] = 0x00 | (1<<7); /* SCI is IRQ9, ACPI enabled */252 pThis->dev.abConfig[0x44] = 0x00 | (1<<7); /* SCI is IRQ9, ACPI enabled */ 253 253 /* 48h–4Bh GPIOBASE GPIO Base Address */ 254 254 255 255 /* 4C GC GPIO Control */ 256 pThis->dev. config[0x4c] = 0x4d;256 pThis->dev.abConfig[0x4c] = 0x4d; 257 257 /* ???? */ 258 pThis->dev. config[0x4e] = 0x03;259 pThis->dev. config[0x4f] = 0x00;258 pThis->dev.abConfig[0x4e] = 0x03; 259 pThis->dev.abConfig[0x4f] = 0x00; 260 260 261 261 /* 60h-63h PIRQ[n]_ROUT PIRQ[A-D] Routing Control */ 262 pThis->dev. config[0x60] = 0x0b; /* PCI A -> IRQ 11 */263 pThis->dev. config[0x61] = 0x09; /* PCI B -> IRQ 9 */264 pThis->dev. config[0x62] = 0x0b; /* PCI C -> IRQ 11 */265 pThis->dev. config[0x63] = 0x09; /* PCI D -> IRQ 9 */262 pThis->dev.abConfig[0x60] = 0x0b; /* PCI A -> IRQ 11 */ 263 pThis->dev.abConfig[0x61] = 0x09; /* PCI B -> IRQ 9 */ 264 pThis->dev.abConfig[0x62] = 0x0b; /* PCI C -> IRQ 11 */ 265 pThis->dev.abConfig[0x63] = 0x09; /* PCI D -> IRQ 9 */ 266 266 267 267 /* 64h SIRQ_CNTL Serial IRQ Control 10h R/W, RO */ 268 pThis->dev. config[0x64] = 0x10;268 pThis->dev.abConfig[0x64] = 0x10; 269 269 270 270 /* 68h-6Bh PIRQ[n]_ROUT PIRQ[E-H] Routing Control */ 271 pThis->dev. config[0x68] = 0x80;272 pThis->dev. config[0x69] = 0x80;273 pThis->dev. config[0x6A] = 0x80;274 pThis->dev. config[0x6B] = 0x80;271 pThis->dev.abConfig[0x68] = 0x80; 272 pThis->dev.abConfig[0x69] = 0x80; 273 pThis->dev.abConfig[0x6A] = 0x80; 274 pThis->dev.abConfig[0x6B] = 0x80; 275 275 276 276 /* 6C-6Dh LPC_IBDF IOxAPIC Bus:Device:Function 00F8h R/W */ 277 pThis->dev. config[0x70] = 0x80;278 pThis->dev. config[0x76] = 0x0c;279 pThis->dev. config[0x77] = 0x0c;280 pThis->dev. config[0x78] = 0x02;281 pThis->dev. config[0x79] = 0x00;277 pThis->dev.abConfig[0x70] = 0x80; 278 pThis->dev.abConfig[0x76] = 0x0c; 279 pThis->dev.abConfig[0x77] = 0x0c; 280 pThis->dev.abConfig[0x78] = 0x02; 281 pThis->dev.abConfig[0x79] = 0x00; 282 282 /* 80h LPC_I/O_DEC I/O Decode Ranges 0000h R/W */ 283 283 /* 82h-83h LPC_EN LPC I/F Enables 0000h R/W */ … … 288 288 289 289 /* A0h-CFh Power Management */ 290 pThis->dev. config[0xa0] = 0x08;291 pThis->dev. config[0xa2] = 0x00;292 pThis->dev. config[0xa3] = 0x00;293 pThis->dev. config[0xa4] = 0x00;294 pThis->dev. config[0xa5] = 0x00;295 pThis->dev. config[0xa6] = 0x00;296 pThis->dev. config[0xa7] = 0x00;297 pThis->dev. config[0xa8] = 0x0f;298 pThis->dev. config[0xaa] = 0x00;299 pThis->dev. config[0xab] = 0x00;300 pThis->dev. config[0xac] = 0x00;301 pThis->dev. config[0xae] = 0x00;290 pThis->dev.abConfig[0xa0] = 0x08; 291 pThis->dev.abConfig[0xa2] = 0x00; 292 pThis->dev.abConfig[0xa3] = 0x00; 293 pThis->dev.abConfig[0xa4] = 0x00; 294 pThis->dev.abConfig[0xa5] = 0x00; 295 pThis->dev.abConfig[0xa6] = 0x00; 296 pThis->dev.abConfig[0xa7] = 0x00; 297 pThis->dev.abConfig[0xa8] = 0x0f; 298 pThis->dev.abConfig[0xaa] = 0x00; 299 pThis->dev.abConfig[0xab] = 0x00; 300 pThis->dev.abConfig[0xac] = 0x00; 301 pThis->dev.abConfig[0xae] = 0x00; 302 302 303 303 /* D0h-D3h FWH_SEL1 Firmware Hub Select 1 */ … … 311 311 312 312 /* F0h-F3h RCBA Root Complex Base Address */ 313 pThis->dev. config[0xf0] = RT_BYTE1(RCBA_BASE | 1); /* enabled */314 pThis->dev. config[0xf1] = RT_BYTE2(RCBA_BASE);315 pThis->dev. config[0xf2] = RT_BYTE3(RCBA_BASE);316 pThis->dev. config[0xf3] = RT_BYTE4(RCBA_BASE);313 pThis->dev.abConfig[0xf0] = RT_BYTE1(RCBA_BASE | 1); /* enabled */ 314 pThis->dev.abConfig[0xf1] = RT_BYTE2(RCBA_BASE); 315 pThis->dev.abConfig[0xf2] = RT_BYTE3(RCBA_BASE); 316 pThis->dev.abConfig[0xf3] = RT_BYTE4(RCBA_BASE); 317 317 318 318 rc = PDMDevHlpPCIRegisterEx(pDevIns, &pThis->dev, PDMPCIDEVREG_CFG_PRIMARY, PDMPCIDEVREG_F_NOT_MANDATORY_NO,
Note:
See TracChangeset
for help on using the changeset viewer.