1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-03 09:42:22 +02:00
Files
u-boot-megous/include/sunxi_bootparam.h
Ondrej Jirman ba8c26ce40 initial
2019-03-04 15:37:41 +01:00

37 lines
891 B
C
Executable File

#ifndef __BOOT_PARAM_H__
#define __BOOT_PARAM_H__
struct user_display_param {
/*
* resolution store like that:
* (type << 8 | mode)
*/
char resolution[32];
char margin[32];
/*
* vender id of the last hdmi output device
*/
char vendorid[64];
/*
* Add more fields for HDR support
*/
int format; /* RGB / YUV444 / YUV422 / YUV420 */
int depth; /* Color depth: 8 / 10 / 12 / 16 */
int eotf; /* Electro-Optical Transfer Functions */
int color_space; /* BT.601 / BT.709 / BT.2020 */
};
int bootparam_get_display_region_by_name(const char *name, char *buf, int size);
int get_disp_para_mode(void);
int bootparam_get_hdmi_video_format(void);
int bootparam_get_hdmi_color_depth(void);
int bootparam_get_hdmi_color_space(void);
int bootparam_get_hdmi_eotf(void);
int bootparam_get_disp_device_config(int type, int out[]);
#endif