Skip to content

Commit

Permalink
Configure Terminal to be picked up by Consplitter
Browse files Browse the repository at this point in the history
Add the terminal device to be picked up by Consplitter so we can interact with UEFI VMs over serial console terminals like Putty.
  • Loading branch information
Nitin Puranik authored and apop5 committed Nov 11, 2024
1 parent 86d984c commit 255d679
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,10 @@ TerminalDriverBindingStart (
&TerminalDevice->SimpleTextOutput,
&gEfiDevicePathProtocolGuid,
TerminalDevice->DevicePath,
&gEfiConsoleOutDeviceGuid,
NULL, // Terminal is a ConOut device (picked up by Consplitter).
&gEfiConsoleInDeviceGuid,
NULL, // Terminal is a ConIn device (picked up by Consplitter).
NULL
);
if (!EFI_ERROR (Status)) {
Expand Down Expand Up @@ -1002,6 +1006,10 @@ TerminalDriverBindingStop (
&TerminalDevice->SimpleTextOutput,
&gEfiDevicePathProtocolGuid,
TerminalDevice->DevicePath,
&gEfiConsoleOutDeviceGuid,
NULL,
&gEfiConsoleInDeviceGuid,
NULL,
NULL
);
if (EFI_ERROR (Status)) {
Expand Down
2 changes: 2 additions & 0 deletions MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
gEdkiiVT400Guid ## SOMETIMES_CONSUMES ## GUID # used with a Vendor-Defined Messaging Device Path
gEdkiiSCOTermGuid ## SOMETIMES_CONSUMES ## GUID # used with a Vendor-Defined Messaging Device Path
gEdkiiStatusCodeDataTypeVariableGuid ## SOMETIMES_CONSUMES ## GUID
gEfiConsoleOutDeviceGuid ## SOMETIMES_CONSUMES ## MU_CHANGE
gEfiConsoleInDeviceGuid ## SOMETIMES_CONSUMES ## MU_CHANGE

[Protocols]
gEfiSerialIoProtocolGuid ## TO_START
Expand Down

0 comments on commit 255d679

Please sign in to comment.