From 2b0a2bda73fe2c059b03f2c50cc2659e643c63eb Mon Sep 17 00:00:00 2001 From: Goldfish64 Date: Tue, 27 Oct 2020 19:35:38 -0500 Subject: [PATCH] Patches: Add PS/2 mouse patch for SioBusDxe https://github.com/acidanthera/bugtracker/issues/1236 --- Changelog.md | 1 + ...fPkg-SioBusDxe-Add-PS2-mouse-support.patch | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Patches/0004-OvmfPkg-SioBusDxe-Add-PS2-mouse-support.patch diff --git a/Changelog.md b/Changelog.md index 31bda270..15718c33 100644 --- a/Changelog.md +++ b/Changelog.md @@ -21,6 +21,7 @@ OpenCore Changelog - Fixed I/O issues on platforms incapable of reading over 1MB at once - Fixed plist-only kext injection in Big Sur - Add `ForceResolution` option for enabling non-default resolutions +- Fixed Ps2MouseDxe not properly loading under OpenDuetPkg #### v0.6.2 - Updated builtin firmware versions for SMBIOS and the rest diff --git a/Patches/0004-OvmfPkg-SioBusDxe-Add-PS2-mouse-support.patch b/Patches/0004-OvmfPkg-SioBusDxe-Add-PS2-mouse-support.patch new file mode 100644 index 00000000..948148a2 --- /dev/null +++ b/Patches/0004-OvmfPkg-SioBusDxe-Add-PS2-mouse-support.patch @@ -0,0 +1,23 @@ +From: Goldfish64 +Subject: OvmfPkg/SioBusDxe: Add PS/2 mouse support + +SioBusDxe by default does not create a device for PS/2 mice, this patch adds that device. + +diff --git a/OvmfPkg/SioBusDxe/SioService.c b/OvmfPkg/SioBusDxe/SioService.c +index 407132ddcd6667498362e122fff6df6677fe6877..d5a87219d7cdd83a30e642cd1e6cad56d6312cff 100644 +--- a/OvmfPkg/SioBusDxe/SioService.c ++++ b/OvmfPkg/SioBusDxe/SioService.c +@@ -67,7 +67,12 @@ SIO_DEVICE_INFO mDevicesInfo[] = { + EISA_PNP_ID(0x303), + 0, + { (ACPI_SMALL_RESOURCE_HEADER *) &mPs2KeyboardDeviceResources } +- } // PS/2 Keyboard Controller ++ }, // PS/2 Keyboard Controller ++ { ++ EISA_PNP_ID(0xF13), ++ 0, ++ { (ACPI_SMALL_RESOURCE_HEADER *) &mPs2KeyboardDeviceResources } ++ } // PS/2 Mouse Controller + }; + + //