Debian Codegraph @

src/drivers/intel/fsp2_0/fsp_gop_blt.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #include <boot/coreboot_tables.h>
4 #include <bootsplash.h>
5 #include <console/console.h>
6 #include <fsp/api.h>
7 #include <fsp/fsp_gop_blt.h>
8 #include <stdlib.h>
9
10 /* Convert a *.BMP graphics image to a GOP blt buffer */
11 void fsp_load_and_convert_bmp_to_gop_blt(efi_uintn_t *logo, uint32_t *logo_size,
12 efi_uintn_t *blt_ptr, efi_uintn_t *blt_size, uint32_t *pixel_height, uint32_t *pixel_width,
13 enum lb_fb_orientation orientation)
14 {
15 load_and_convert_bmp_to_blt((uintptr_t *)logo, (size_t *)logo_size, (uintptr_t *)blt_ptr,
16 (size_t *)blt_size, pixel_height, pixel_width, orientation);
17 }
18
19 /* Convert a *.BMP graphics image (as per input `logo_ptr`) to a GOP blt buffer */
20 void fsp_convert_bmp_to_gop_blt(uintptr_t logo_ptr, size_t logo_ptr_size,
21 efi_uintn_t *blt_ptr, efi_uintn_t *blt_size, uint32_t *pixel_height, uint32_t *pixel_width,
22 enum lb_fb_orientation orientation)
23 {
24 convert_bmp_to_blt(logo_ptr, logo_ptr_size, (uintptr_t *)blt_ptr, (size_t *)blt_size,
25 pixel_height, pixel_width, orientation);
26 }