4949a3dd62
Hide the detail of allocation from cbmem from the FSP. Loading of a BMP logo file from CBFS is not tied to FSP version and we do not need two copies of the code, move it under lib/. Change-Id: I909f2771af534993cf8ba99ff0acd0bbd2c78f04 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50359 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
21 lines
498 B
C
21 lines
498 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef __BOOTSPLASH_H__
|
|
#define __BOOTSPLASH_H__
|
|
|
|
#include <types.h>
|
|
|
|
/**
|
|
* Sets up the framebuffer with the bootsplash.jpg from cbfs.
|
|
* Returns 0 on success
|
|
* CB_ERR on cbfs errors
|
|
* and >0 on jpeg errors.
|
|
*/
|
|
void set_bootsplash(unsigned char *framebuffer, unsigned int x_resolution,
|
|
unsigned int y_resolution, unsigned int fb_resolution);
|
|
|
|
|
|
void bmp_load_logo(uint32_t *logo_ptr, uint32_t *logo_size);
|
|
void bmp_release_logo(void);
|
|
|
|
#endif
|