]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader.efi: reworked framebuffer setup
authorToomas Soome <tsoome@FreeBSD.org>
Mon, 11 Jan 2021 21:54:23 +0000 (21:54 +0000)
committerToomas Soome <tsoome@FreeBSD.org>
Tue, 12 Jan 2021 11:07:27 +0000 (13:07 +0200)
commit50180d2b52cc16ecb6a6617fdc53f5d83c71a8b4
treed8ec324718c7bc62b3bc43539cd9207a900e81c4
parent85d028223bc2768651f4d44881644ceb5dc2a664
loader.efi: reworked framebuffer setup

Pass gfx_state to efi_find_framebuffer(), so we can pick between
GOP and UGA in efi_find_framebuffer(), also we can then
set up struct gen_fb in gfx_state from efifb and isolate efi fb data
processing into framebuffer.c.

This change does allow us to clean up efi_cons_init() and reduce
BS->LocateProtocol() calls.

A little downside is that we now need to translate gen_fb back to
efifb in bootinfo.c (for passing to kernel), and we need to add few
-I options to CFLAGS.
stand/efi/libefi/Makefile
stand/efi/libefi/efi_console.c
stand/efi/loader/Makefile
stand/efi/loader/bootinfo.c
stand/efi/loader/framebuffer.c
stand/efi/loader/framebuffer.h