u-boot/lib/efi_loader
Emmanuel Vadot 5be8b0a338 efi_loader: console: Correctly report modes
Add support for EFI console modes.
Mode 0 is always 80x25 and present by EFI specification.
Mode 1 is always 80x50 and not mandatory.
Mode 2 and above is freely usable.

If the terminal can handle mode 1, we mark it as supported.
If the terminal size is greater than mode 0 and different than mode 1,
we install it as mode 2.

Modes can be switch with cout_set_mode.

Changes in V5:
 Correctly detect mode before enabling mode 2.

Changes in V4:
 Reset cursor positon on mode switch
 Use local variables in console query code

Changes in V3:
 Valid mode are 0 to EFIMode-1
 Fix style

Changes in V2:
 Add mode switch
 Report only the modes that we support

Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2016-11-14 23:24:02 +01:00
..
Kconfig efi_loader: fix depends on line of EFI_LOADER 2016-11-14 23:24:02 +01:00
Makefile smbios: Expose in efi_loader as table 2016-10-19 09:01:52 +02:00
efi_boottime.c efi_loader: Rename EFI_RUNTIME_{TEXT, DATA} to __efi_runtime{, _data} 2016-10-19 09:01:54 +02:00
efi_console.c efi_loader: console: Correctly report modes 2016-11-14 23:24:02 +01:00
efi_disk.c efi: Fix missing EFIAPI specifiers 2016-10-19 09:01:53 +02:00
efi_gop.c efi_loader: gop: Expose fb when 32bpp 2016-10-19 09:01:50 +02:00
efi_image_loader.c efi_loader: Fix relocations above 64kb image size 2016-08-20 14:03:27 -04:00
efi_memory.c efi_loader: Do not leak memory when unlinking a mapping 2016-10-18 09:08:08 +02:00
efi_net.c efi: Use device device path type Messaging for network interface node 2016-11-14 23:24:02 +01:00
efi_runtime.c efi_loader: Rename EFI_RUNTIME_{TEXT, DATA} to __efi_runtime{, _data} 2016-10-19 09:01:54 +02:00
efi_smbios.c smbios: Expose in efi_loader as table 2016-10-19 09:01:52 +02:00