Skip to content

Commit

Permalink
OvmfPkg/SioBusDxe/SioService.c: Add support for 4 COM ports
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
  • Loading branch information
miczyg1 committed Feb 19, 2024
1 parent 9e8f8c8 commit a97af26
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions OvmfPkg/SioBusDxe/SioService.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,24 @@ SIO_RESOURCES_IO mCom2Resources = {
{ ACPI_END_TAG_DESCRIPTOR, 0 }
};

//
// COM 3 UART Controller
//
GLOBAL_REMOVE_IF_UNREFERENCED
SIO_RESOURCES_IO mCom3Resources = {
{ { ACPI_FIXED_LOCATION_IO_PORT_DESCRIPTOR }, 0x3E8, 8 },
{ ACPI_END_TAG_DESCRIPTOR, 0 }
};

//
// COM 4 UART Controller
//
GLOBAL_REMOVE_IF_UNREFERENCED
SIO_RESOURCES_IO mCom4Resources = {
{ { ACPI_FIXED_LOCATION_IO_PORT_DESCRIPTOR }, 0x2E8, 8 },
{ ACPI_END_TAG_DESCRIPTOR, 0 }
};

//
// PS/2 Keyboard Controller
//
Expand All @@ -63,6 +81,16 @@ SIO_DEVICE_INFO mDevicesInfo[] = {
1,
{ (ACPI_SMALL_RESOURCE_HEADER *) &mCom2Resources }
}, // COM 2 UART Controller
{
EISA_PNP_ID (0x501),
0,
{ (ACPI_SMALL_RESOURCE_HEADER *) &mCom3Resources }
}, // COM 3 UART Controller
{
EISA_PNP_ID (0x501),
1,
{ (ACPI_SMALL_RESOURCE_HEADER *) &mCom4Resources }
}, // COM 4 UART Controller
{
EISA_PNP_ID(0x303),
0,
Expand Down

0 comments on commit a97af26

Please sign in to comment.