coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootsplash.c File Reference
#include <cbfs.h>
#include <vbe.h>
#include <console/console.h>
#include <endian.h>
#include <bootsplash.h>
#include <stdlib.h>
#include "jpeg.h"
Include dependency graph for bootsplash.c:

Go to the source code of this file.

Functions

void set_bootsplash (unsigned char *framebuffer, unsigned int x_resolution, unsigned int y_resolution, unsigned int fb_resolution)
 Sets up the framebuffer with the bootsplash.jpg from cbfs. More...
 

Function Documentation

◆ set_bootsplash()

void set_bootsplash ( unsigned char *  framebuffer,
unsigned int  x_resolution,
unsigned int  y_resolution,
unsigned int  fb_resolution 
)

Sets up the framebuffer with the bootsplash.jpg from cbfs.

Returns 0 on success CB_ERR on cbfs errors and >0 on jpeg errors.

Definition at line 13 of file bootsplash.c.

References BIOS_DEBUG, BIOS_ERR, BIOS_INFO, cbfs_map(), cbfs_unmap(), jpeg_decode(), jpeg_fetch_size(), malloc(), NULL, and printk.

Referenced by lb_framebuffer().

Here is the call graph for this function:
Here is the caller graph for this function: