include/spd_bin.h: Add SPD IO layer
[coreboot2.git] / src / include / framebuffer_info.h
blob451d893e9932a0199e8e6d8f0622969d47bdf38b
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef __FRAMEBUFFER_INFO_H_
4 #define __FRAMEBUFFER_INFO_H_
6 #include <stdint.h>
7 #include <commonlib/coreboot_tables.h>
9 struct fb_info;
11 struct fb_info *
12 fb_add_framebuffer_info_ex(const struct lb_framebuffer *fb);
14 struct fb_info *fb_add_framebuffer_info(uintptr_t fb_addr, uint32_t x_resolution,
15 uint32_t y_resolution, uint32_t bytes_per_line,
16 uint8_t bits_per_pixel);
17 int fb_add_framebuffer_info_simple(uintptr_t fb_addr, uint32_t x_res, uint32_t y_res,
18 uint32_t bytes_per_line, uint8_t bits_per_pixel);
20 void fb_set_orientation(struct fb_info *info,
21 enum lb_fb_orientation orientation);
23 struct edid;
24 struct fb_info *fb_new_framebuffer_info_from_edid(const struct edid *edid,
25 uintptr_t fb_addr);
27 #endif /* __FRAMEBUFFER_INFO_H_ */