Skip to content

Commit

Permalink
OvmfPkg: Fix Windows compiler issues in virtio keyboard driver
Browse files Browse the repository at this point in the history
  • Loading branch information
elkoniu committed Dec 29, 2024
1 parent 4ac96f9 commit 6f5fe4d
Show file tree
Hide file tree
Showing 3 changed files with 296 additions and 297 deletions.
2 changes: 1 addition & 1 deletion OvmfPkg/Include/IndustryStandard/Virtio10.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// Subsystem Device IDs (to be) introduced in VirtIo 1.0
//
#define VIRTIO_SUBSYSTEM_GPU_DEVICE 16
#define VIRTIO_SUBSYSTEM_INPUT 18
#define VIRTIO_SUBSYSTEM_INPUT 18
//
// Subsystem Device IDs from the VirtIo spec at git commit 87fa6b5d8155;
// <https://github.com/oasis-tcs/virtio-spec/tree/87fa6b5d8155>.
Expand Down
3 changes: 1 addition & 2 deletions OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
Original file line number Diff line number Diff line change
Expand Up @@ -1258,8 +1258,7 @@ DetectAndPreparePlatformPciDevicePath (
return EFI_SUCCESS;
}

if ((Pci->Hdr.VendorId == 0x1af4) && (Pci->Hdr.DeviceId == 0x1052))
{
if ((Pci->Hdr.VendorId == 0x1af4) && (Pci->Hdr.DeviceId == 0x1052)) {
DEBUG ((DEBUG_INFO, "Found virtio keyboard device\n"));
PrepareVirtioKeyboardDevicePath (Handle);
return EFI_SUCCESS;
Expand Down
Loading

0 comments on commit 6f5fe4d

Please sign in to comment.