xref: /aosp_15_r20/external/coreboot/src/include/bootsplash.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __BOOTSPLASH_H__
4 #define __BOOTSPLASH_H__
5 
6 #include <types.h>
7 
8 /**
9  * Sets up the framebuffer with the bootsplash.jpg from cbfs.
10  * Returns 0 on success
11  * CB_ERR on cbfs errors
12  * and >0 on jpeg errors.
13  */
14 void set_bootsplash(unsigned char *framebuffer, unsigned int x_resolution,
15 		    unsigned int y_resolution, unsigned int bytes_per_line,
16 		    unsigned int fb_resolution);
17 
18 /*
19  * Allow platform-specific BMP logo overrides via HAVE_CUSTOM_BMP_LOGO config.
20  * For example: Introduce configurable BMP logo for customization on platforms like ChromeOS
21  */
22 const char *bmp_logo_filename(void);
23 void *bmp_load_logo(size_t *logo_size);
24 void bmp_release_logo(void);
25 
26 #endif
27