Patrick Rudolph | 7319288 | 2020-02-19 12:10:51 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #ifndef __FRAMEBUFFER_INFO_H_ |
| 4 | #define __FRAMEBUFFER_INFO_H_ |
| 5 | |
| 6 | #include <stdint.h> |
Patrick Rudolph | 7319288 | 2020-02-19 12:10:51 +0100 | [diff] [blame] | 7 | #include <commonlib/coreboot_tables.h> |
| 8 | |
| 9 | struct fb_info; |
| 10 | |
| 11 | struct fb_info * |
| 12 | fb_add_framebuffer_info_ex(const struct lb_framebuffer *fb); |
| 13 | |
| 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 | |
| 18 | void fb_set_orientation(struct fb_info *info, |
| 19 | enum lb_fb_orientation orientation); |
| 20 | |
Patrick Rudolph | 8b56c8c | 2020-02-19 12:57:00 +0100 | [diff] [blame] | 21 | struct edid; |
| 22 | struct fb_info *fb_new_framebuffer_info_from_edid(const struct edid *edid, |
| 23 | uintptr_t fb_addr); |
| 24 | |
Patrick Rudolph | 7319288 | 2020-02-19 12:10:51 +0100 | [diff] [blame] | 25 | #endif /* __FRAMEBUFFER_INFO_H_ */ |