diff options
| author | Peter Jones <pjones@redhat.com> | 2013-10-01 13:43:25 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-10-01 14:03:16 -0400 |
| commit | 4537217422a4e1bf145e135d89284cf7887ad826 (patch) | |
| tree | 0ca634a9091129b2839c1a45cc3870dfd9a61d8f /lib/console_control.c | |
| parent | 09a37bbc69f6c5d6c1d081f4f938f34cff412c4f (diff) | |
| download | efi-boot-shim-4537217422a4e1bf145e135d89284cf7887ad826.tar.gz efi-boot-shim-4537217422a4e1bf145e135d89284cf7887ad826.zip | |
Merge console_control.h and console.h
Since these are topically the same thing, they can live together.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/console_control.c')
| -rw-r--r-- | lib/console_control.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/console_control.c b/lib/console_control.c deleted file mode 100644 index 604a60f5..00000000 --- a/lib/console_control.c +++ /dev/null @@ -1,32 +0,0 @@ -#include <efi.h> -#include <efilib.h> - -#include "console_control.h" - -VOID setup_console (int text) -{ - EFI_STATUS status; - EFI_GUID console_control_guid = EFI_CONSOLE_CONTROL_PROTOCOL_GUID; - EFI_CONSOLE_CONTROL_PROTOCOL *concon; - static EFI_CONSOLE_CONTROL_SCREEN_MODE mode = - EfiConsoleControlScreenGraphics; - EFI_CONSOLE_CONTROL_SCREEN_MODE new_mode; - - status = LibLocateProtocol(&console_control_guid, (VOID **)&concon); - if (status != EFI_SUCCESS) - return; - - if (text) { - new_mode = EfiConsoleControlScreenText; - - status = uefi_call_wrapper(concon->GetMode, 4, concon, &mode, - 0, 0); - /* If that didn't work, assume it's graphics */ - if (status != EFI_SUCCESS) - mode = EfiConsoleControlScreenGraphics; - } else { - new_mode = mode; - } - - uefi_call_wrapper(concon->SetMode, 2, concon, new_mode); -} |
