summaryrefslogtreecommitdiff
path: root/src/include/framebuffer_info.h
blob: 5251f2901a622c878445cc99ffa74cf49d1f665c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef __FRAMEBUFFER_INFO_H_
#define __FRAMEBUFFER_INFO_H_

#include <stdint.h>
#include <stdbool.h>
#include <commonlib/coreboot_tables.h>

struct fb_info;

struct fb_info *
fb_add_framebuffer_info_ex(const struct lb_framebuffer *fb);

struct fb_info *fb_add_framebuffer_info(uintptr_t fb_addr, uint32_t x_resolution,
					uint32_t y_resolution, uint32_t bytes_per_line,
					uint8_t bits_per_pixel);

void fb_set_orientation(struct fb_info *info,
			enum lb_fb_orientation orientation);

#endif /* __FRAMEBUFFER_INFO_H_ */