mirror of https://github.com/acidanthera/audk.git
OvmfPkg: Removed magic values for the Virtio Sub-System ID in the PCI device drivers
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14742 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a83dc3a475
commit
43e54972af
|
@ -575,7 +575,7 @@ VirtioBlkDriverBindingSupported (
|
|||
Status = (Pci.Hdr.VendorId == 0x1AF4 &&
|
||||
Pci.Hdr.DeviceId >= 0x1000 && Pci.Hdr.DeviceId <= 0x103F &&
|
||||
Pci.Hdr.RevisionID == 0x00 &&
|
||||
Pci.Device.SubsystemID == 0x02) ? EFI_SUCCESS : EFI_UNSUPPORTED;
|
||||
Pci.Device.SubsystemID == VIRTIO_SUBSYSTEM_BLOCK_DEVICE) ? EFI_SUCCESS : EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -369,7 +369,7 @@ VirtioNetDriverBindingSupported (
|
|||
Status = (Pci.Hdr.VendorId == 0x1AF4 &&
|
||||
Pci.Hdr.DeviceId >= 0x1000 && Pci.Hdr.DeviceId <= 0x103F &&
|
||||
Pci.Hdr.RevisionID == 0x00 &&
|
||||
Pci.Device.SubsystemID == 0x01) ? EFI_SUCCESS : EFI_UNSUPPORTED;
|
||||
Pci.Device.SubsystemID == VIRTIO_SUBSYSTEM_NETWORK_CARD) ? EFI_SUCCESS : EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
gBS->CloseProtocol (DeviceHandle, &gEfiPciIoProtocolGuid,
|
||||
|
|
|
@ -1011,7 +1011,7 @@ VirtioScsiDriverBindingSupported (
|
|||
Status = (Pci.Hdr.VendorId == 0x1AF4 &&
|
||||
Pci.Hdr.DeviceId >= 0x1000 && Pci.Hdr.DeviceId <= 0x103F &&
|
||||
Pci.Hdr.RevisionID == 0x00 &&
|
||||
Pci.Device.SubsystemID == 0x08) ? EFI_SUCCESS : EFI_UNSUPPORTED;
|
||||
Pci.Device.SubsystemID == VIRTIO_SUBSYSTEM_SCSI_HOST) ? EFI_SUCCESS : EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue