From 43e54972af046697fbc9c4416810724daa57559d Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Mon, 30 Sep 2013 09:04:22 +0000 Subject: 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 Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14742 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/VirtioNetDxe/DriverBinding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OvmfPkg/VirtioNetDxe') diff --git a/OvmfPkg/VirtioNetDxe/DriverBinding.c b/OvmfPkg/VirtioNetDxe/DriverBinding.c index d9c0096d08..c9259ab339 100644 --- a/OvmfPkg/VirtioNetDxe/DriverBinding.c +++ b/OvmfPkg/VirtioNetDxe/DriverBinding.c @@ -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, -- cgit v1.2.3