Changeset 77795 in vbox for trunk/src/VBox
- Timestamp:
- Mar 19, 2019 4:26:01 PM (6 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.c
r77729 r77795 51 51 #ifdef VBOX 52 52 // HACK ALERT! There is no host bridge device in the PCIe chipset, and the same PIIX4 PM device is used. 53 case 0xffff: 53 // But there might be some other device at 0:0.0. 54 default: 54 55 #endif 55 56 Pmba = POWER_MGMT_REGISTER_PIIX4 (PIIX4_PMBA); … … 66 67 AcpiEnBit = ICH9_ACPI_CNTL_ACPI_EN; 67 68 break; 69 #ifndef VBOX 68 70 default: 69 71 DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", … … 71 73 ASSERT (FALSE); 72 74 return RETURN_UNSUPPORTED; 75 #endif 73 76 } 74 77 -
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.c
r77729 r77795 49 49 #ifdef VBOX 50 50 // HACK ALERT! There is no host bridge device in the PCIe chipset, and the same PIIX4 PM device is used. 51 case 0xffff: 51 // But there might be some other device at 0:0.0. 52 default: 52 53 #endif 53 54 Pmba = POWER_MGMT_REGISTER_PIIX4 (PIIX4_PMBA); … … 64 65 AcpiEnBit = ICH9_ACPI_CNTL_ACPI_EN; 65 66 break; 67 #ifndef VBOX 66 68 default: 67 69 DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", … … 69 71 ASSERT (FALSE); 70 72 return RETURN_UNSUPPORTED; 73 #endif 71 74 } 72 75 -
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.c
r77729 r77795 52 52 switch (HostBridgeDevId) { 53 53 #ifdef VBOX 54 // HACK ALERT! In the PCIe chipset, the same PIIX4 PM device is used. 55 case INTEL_Q35_MCH_DEVICE_ID: 54 // HACK ALERT! There is no host bridge device in the PCIe chipset, and the same PIIX4 PM device is used. 55 // But there might be some other device at 0:0.0. 56 default: 56 57 #endif 57 58 case INTEL_82441_DEVICE_ID: … … 62 63 Pmba = POWER_MGMT_REGISTER_Q35 (ICH9_PMBASE); 63 64 break; 64 #endif65 65 default: 66 66 DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", … … 68 68 ASSERT (FALSE); 69 69 return RETURN_UNSUPPORTED; 70 #endif 70 71 } 71 72 -
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/PlatformPei/Platform.c
r77751 r77795 520 520 // 521 521 switch (mHostBridgeDevId) { 522 #ifdef VBOX 523 // This is really hacky but so it goes. The PCIe chipset might have nothing at 0:0.0, 524 // or it might be some random device. But it's not going to be the 440FX host bridge. 525 default: 526 #endif 522 527 case INTEL_82441_DEVICE_ID: 523 528 PmCmd = POWER_MGMT_REGISTER_PIIX4 (PCI_COMMAND_OFFSET); … … 528 533 AcpiEnBit = PIIX4_PMREGMISC_PMIOSE; 529 534 break; 535 #ifndef VBOX 530 536 case INTEL_Q35_MCH_DEVICE_ID: 531 537 PmCmd = POWER_MGMT_REGISTER_Q35 (PCI_COMMAND_OFFSET); … … 541 547 ASSERT (FALSE); 542 548 return; 543 } 549 #endif 550 } 551 552 #ifdef VBOX 553 // If it's not 440FX, it must be the PCIe chipset. 554 if (mHostBridgeDevId != INTEL_82441_DEVICE_ID) 555 mHostBridgeDevId = INTEL_Q35_MCH_DEVICE_ID; 556 557 #endif 544 558 PcdStatus = PcdSet16S (PcdOvmfHostBridgePciDevId, mHostBridgeDevId); 545 559 ASSERT_RETURN_ERROR (PcdStatus); … … 760 774 #ifdef VBOX 761 775 // HACK ALERT! There is no host bridge device in the PCIe chipset, but we pretend it's a 3 Series chip. 762 if (mHostBridgeDevId == 0xffff) 776 // There may or not be some device at 0:0.0 so anything not 440FX must be PCIe. 777 if (mHostBridgeDevId != INTEL_82441_DEVICE_ID) 763 778 mHostBridgeDevId = INTEL_Q35_MCH_DEVICE_ID; 764 779 #endif
Note:
See TracChangeset
for help on using the changeset viewer.