| 1 |
|
| 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; |
| 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 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
void fsp_report_framebuffer_info(const uintptr_t framebuffer_bar, |
| 34 |
enum lb_fb_orientation orientation); |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
int fsp_soc_report_external_display(void); |
| 45 |
|
| 46 |
#endif |