Debian Codegraph @

src/drivers/intel/fsp2_0/include/fsp/graphics.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #ifndef _FSP2_0_GRAPHICS_H_
4 #define _FSP2_0_GRAPHICS_H_
5
6 #include <types.h>
7
8 static const uint8_t fsp_graphics_info_guid[16] = {
9 0xce, 0x2c, 0xf6, 0x39, 0x25, 0x68, 0x69, 0x46,
10 0xbb, 0x56, 0x54, 0x1a, 0xba, 0x75, 0x3a, 0x07
11 };
12
13 struct hob_graphics_info {
14 uint64_t framebuffer_base;
15 uint32_t framebuffer_size;
16 uint32_t version;
17 uint32_t horizontal_resolution;
18 uint32_t vertical_resolution;
19 uint32_t pixel_format; /* See enum pixel_format */
20 uint32_t red_mask;
21 uint32_t green_mask;
22 uint32_t blue_mask;
23 uint32_t reserved_mask;
24 uint32_t pixels_per_scanline;
25 } __packed;
26
27 /*
28 * Report the fsp_graphics_info_guid HOB to framebuffer info.
29 *
30 * Must be called after PCI enumeration to make sure that the BAR
31 * doesn't change any more.
32 */
33 void fsp_report_framebuffer_info(const uintptr_t framebuffer_bar,
34 enum lb_fb_orientation orientation);
35
36 /* SoC Overrides */
37 /*
38 * Check and report if an external display is attached
39 *
40 * Possible return values:
41 * 1 - An external device is attached.
42 * 0 - On-board display alone.
43 */
44 int fsp_soc_report_external_display(void);
45
46 #endif /* _FSP2_0_GRAPHICS_H_ */