blob: 07ddd31ce8ad8a938fb71c969f8f86451a6624ee [file] [log] [blame]
Patrick Rudolph73192882020-02-19 12:10:51 +01001/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3#ifndef __FRAMEBUFFER_INFO_H_
4#define __FRAMEBUFFER_INFO_H_
5
6#include <stdint.h>
7#include <stdbool.h>
8#include <commonlib/coreboot_tables.h>
9
10struct fb_info;
11
12struct fb_info *
13fb_add_framebuffer_info_ex(const struct lb_framebuffer *fb);
14
15struct fb_info *fb_add_framebuffer_info(uintptr_t fb_addr, uint32_t x_resolution,
16 uint32_t y_resolution, uint32_t bytes_per_line,
17 uint8_t bits_per_pixel);
18
19void fb_set_orientation(struct fb_info *info,
20 enum lb_fb_orientation orientation);
21
Patrick Rudolph8b56c8c2020-02-19 12:57:00 +010022struct edid;
23struct fb_info *fb_new_framebuffer_info_from_edid(const struct edid *edid,
24 uintptr_t fb_addr);
25
Patrick Rudolph73192882020-02-19 12:10:51 +010026#endif /* __FRAMEBUFFER_INFO_H_ */