Files
u-boot/lib
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
..
2016-02-06 12:00:59 +01:00
2016-01-19 08:31:21 -05:00
2011-01-18 23:38:08 +01:00
2016-04-11 20:48:26 -04:00
2010-09-19 19:29:47 +02:00
2016-05-02 18:37:09 -04:00
2016-10-19 09:01:52 +02:00
2014-10-25 07:02:01 -04:00
2012-04-29 14:14:08 +02:00
2015-07-21 17:39:28 -06:00
2016-01-19 08:31:21 -05:00
2016-10-19 09:01:53 +02:00
2016-06-06 13:39:18 -04:00
2016-10-11 11:55:33 +08:00
2016-02-26 08:53:10 -07:00