coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
graphics.c File Reference
#include <boot/coreboot_tables.h>
#include <console/console.h>
#include <fsp/graphics.h>
#include <fsp/util.h>
#include <soc/intel/common/vbt.h>
#include <types.h>
#include <framebuffer_info.h>
Include dependency graph for graphics.c:

Go to the source code of this file.

Data Structures

struct  hob_graphics_info
 
struct  pixel
 
struct  fsp_framebuffer
 

Enumerations

enum  pixel_format { pixel_rgbx_8bpc = 0 , pixel_bgrx_8bpc = 1 , pixel_bitmask = 2 }
 

Functions

void fsp_report_framebuffer_info (const uintptr_t framebuffer_bar, enum lb_fb_orientation orientation)
 

Variables

static const uint8_t fsp_graphics_info_guid [16]
 
struct hob_graphics_info __packed
 
static const struct fsp_framebuffer fsp_framebuffer_format_map []
 

Enumeration Type Documentation

◆ pixel_format

Enumerator
pixel_rgbx_8bpc 
pixel_bgrx_8bpc 
pixel_bitmask 

Definition at line 11 of file graphics.c.

Function Documentation

◆ fsp_report_framebuffer_info()

Variable Documentation

◆ __packed

◆ fsp_framebuffer_format_map

const struct fsp_framebuffer fsp_framebuffer_format_map[]
static
Initial value:
= {
[pixel_rgbx_8bpc] = { {0, 8}, {8, 8}, {16, 8}, {24, 8} },
[pixel_bgrx_8bpc] = { {16, 8}, {8, 8}, {0, 8}, {24, 8} },
}
@ pixel_bgrx_8bpc
Definition: graphics.c:13
@ pixel_rgbx_8bpc
Definition: graphics.c:12

Referenced by fsp_report_framebuffer_info().

◆ fsp_graphics_info_guid

const uint8_t fsp_graphics_info_guid[16]
static
Initial value:
= {
0xce, 0x2c, 0xf6, 0x39, 0x25, 0x68, 0x69, 0x46,
0xbb, 0x56, 0x54, 0x1a, 0xba, 0x75, 0x3a, 0x07
}

Definition at line 17 of file graphics.c.

Referenced by fsp_report_framebuffer_info().