mirror of https://github.com/acidanthera/audk.git
OvmfPkg/Bhyve: Add support for the AMD host bridge
On bhyve, either an Intel or AMD host bridge can be specified, with the default being Intel. Both are identical, except the AMD one uses a PCI vendor ID of AMD. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Peter Grehan <grehan@freebsd.org> Acked-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20201124005733.18107-3-rebecca@bsdio.com>
This commit is contained in:
parent
337fda061c
commit
029677943f
|
@ -349,7 +349,8 @@ MiscInitialization (
|
|||
// Determine platform type and save Host Bridge DID to PCD
|
||||
//
|
||||
switch (mHostBridgeDevId) {
|
||||
case 0x1275: // BHYVE
|
||||
case 0x7432: // BHYVE (AMD hostbridge)
|
||||
case 0x1275: // BHYVE (Intel hostbridge)
|
||||
case INTEL_82441_DEVICE_ID:
|
||||
PmCmd = POWER_MGMT_REGISTER_PIIX4 (PCI_COMMAND_OFFSET);
|
||||
Pmba = POWER_MGMT_REGISTER_PIIX4 (PIIX4_PMBA);
|
||||
|
|
|
@ -1066,7 +1066,8 @@ SetPciIntLine (
|
|||
// and should match SeaBIOS src/fw/pciinit.c *_pci_slot_get_irq()
|
||||
//
|
||||
switch (mHostBridgeDevId) {
|
||||
case 0x1275: // BHYVE
|
||||
case 0x7432: // BHYVE (AMD hostbridge)
|
||||
case 0x1275: // BHYVE (Intel hostbridge)
|
||||
case INTEL_82441_DEVICE_ID:
|
||||
Idx -= 1;
|
||||
break;
|
||||
|
@ -1143,7 +1144,8 @@ PciAcpiInitialization (
|
|||
//
|
||||
mHostBridgeDevId = PcdGet16 (PcdOvmfHostBridgePciDevId);
|
||||
switch (mHostBridgeDevId) {
|
||||
case 0x1275: // BHYVE
|
||||
case 0x7432: // BHYVE (AMD hostbridge)
|
||||
case 0x1275: // BHYVE (Intel hostbridge)
|
||||
case INTEL_82441_DEVICE_ID:
|
||||
Pmba = POWER_MGMT_REGISTER_PIIX4 (PIIX4_PMBA);
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue