disp: inc: uapi: fix UAPI headers to compile with UAPI_HEADER_TEST

Fix headers so that they compile with UAPI_HEADER_TEST.

Change-Id: I2585a18b02abcc3a52ec0079aa4cc1ce55ee1b56
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
This commit is contained in:
Steve Cohen
2020-04-17 01:23:20 -04:00
committed by Gerrit - the friendly Code Review server
parent 947fa56080
commit ee91905928
2 changed files with 93 additions and 91 deletions

View File

@@ -137,25 +137,25 @@ struct sde_drm_pix_ext_v1 {
* Number of pixels ext in left, right, top and bottom direction * Number of pixels ext in left, right, top and bottom direction
* for all color components. * for all color components.
*/ */
int32_t num_ext_pxls_lr[SDE_MAX_PLANES]; __s32 num_ext_pxls_lr[SDE_MAX_PLANES];
int32_t num_ext_pxls_tb[SDE_MAX_PLANES]; __s32 num_ext_pxls_tb[SDE_MAX_PLANES];
/* /*
* Number of pixels needs to be overfetched in left, right, top * Number of pixels needs to be overfetched in left, right, top
* and bottom directions from source image for scaling. * and bottom directions from source image for scaling.
*/ */
int32_t left_ftch[SDE_MAX_PLANES]; __s32 left_ftch[SDE_MAX_PLANES];
int32_t right_ftch[SDE_MAX_PLANES]; __s32 right_ftch[SDE_MAX_PLANES];
int32_t top_ftch[SDE_MAX_PLANES]; __s32 top_ftch[SDE_MAX_PLANES];
int32_t btm_ftch[SDE_MAX_PLANES]; __s32 btm_ftch[SDE_MAX_PLANES];
/* /*
* Number of pixels needs to be repeated in left, right, top and * Number of pixels needs to be repeated in left, right, top and
* bottom directions for scaling. * bottom directions for scaling.
*/ */
int32_t left_rpt[SDE_MAX_PLANES]; __s32 left_rpt[SDE_MAX_PLANES];
int32_t right_rpt[SDE_MAX_PLANES]; __s32 right_rpt[SDE_MAX_PLANES];
int32_t top_rpt[SDE_MAX_PLANES]; __s32 top_rpt[SDE_MAX_PLANES];
int32_t btm_rpt[SDE_MAX_PLANES]; __s32 btm_rpt[SDE_MAX_PLANES];
}; };
@@ -178,17 +178,17 @@ struct sde_drm_scaler_v1 {
/* /*
* Phase settings * Phase settings
*/ */
int32_t init_phase_x[SDE_MAX_PLANES]; __s32 init_phase_x[SDE_MAX_PLANES];
int32_t phase_step_x[SDE_MAX_PLANES]; __s32 phase_step_x[SDE_MAX_PLANES];
int32_t init_phase_y[SDE_MAX_PLANES]; __s32 init_phase_y[SDE_MAX_PLANES];
int32_t phase_step_y[SDE_MAX_PLANES]; __s32 phase_step_y[SDE_MAX_PLANES];
/* /*
* Filter type to be used for scaling in horizontal and vertical * Filter type to be used for scaling in horizontal and vertical
* directions * directions
*/ */
uint32_t horz_filter[SDE_MAX_PLANES]; __u32 horz_filter[SDE_MAX_PLANES];
uint32_t vert_filter[SDE_MAX_PLANES]; __u32 vert_filter[SDE_MAX_PLANES];
}; };
/** /**
@@ -208,19 +208,19 @@ struct sde_drm_scaler_v1 {
* @adjust_c: Mapping curves C coefficients * @adjust_c: Mapping curves C coefficients
*/ */
struct sde_drm_de_v1 { struct sde_drm_de_v1 {
uint32_t enable; __u32 enable;
int16_t sharpen_level1; __s16 sharpen_level1;
int16_t sharpen_level2; __s16 sharpen_level2;
uint16_t clip; __u16 clip;
uint16_t limit; __u16 limit;
uint16_t thr_quiet; __u16 thr_quiet;
uint16_t thr_dieout; __u16 thr_dieout;
uint16_t thr_low; __u16 thr_low;
uint16_t thr_high; __u16 thr_high;
uint16_t prec_shift; __u16 prec_shift;
int16_t adjust_a[SDE_MAX_DE_CURVES]; __s16 adjust_a[SDE_MAX_DE_CURVES];
int16_t adjust_b[SDE_MAX_DE_CURVES]; __s16 adjust_b[SDE_MAX_DE_CURVES];
int16_t adjust_c[SDE_MAX_DE_CURVES]; __s16 adjust_c[SDE_MAX_DE_CURVES];
}; };
/* /*
@@ -275,8 +275,8 @@ struct sde_drm_scaler_v2 {
/* /*
* General definitions * General definitions
*/ */
uint32_t enable; __u32 enable;
uint32_t dir_en; __u32 dir_en;
/* /*
* Pix ext settings * Pix ext settings
@@ -286,55 +286,55 @@ struct sde_drm_scaler_v2 {
/* /*
* Decimation settings * Decimation settings
*/ */
uint32_t horz_decimate; __u32 horz_decimate;
uint32_t vert_decimate; __u32 vert_decimate;
/* /*
* Phase settings * Phase settings
*/ */
int32_t init_phase_x[SDE_MAX_PLANES]; __s32 init_phase_x[SDE_MAX_PLANES];
int32_t phase_step_x[SDE_MAX_PLANES]; __s32 phase_step_x[SDE_MAX_PLANES];
int32_t init_phase_y[SDE_MAX_PLANES]; __s32 init_phase_y[SDE_MAX_PLANES];
int32_t phase_step_y[SDE_MAX_PLANES]; __s32 phase_step_y[SDE_MAX_PLANES];
uint32_t preload_x[SDE_MAX_PLANES]; __u32 preload_x[SDE_MAX_PLANES];
uint32_t preload_y[SDE_MAX_PLANES]; __u32 preload_y[SDE_MAX_PLANES];
uint32_t src_width[SDE_MAX_PLANES]; __u32 src_width[SDE_MAX_PLANES];
uint32_t src_height[SDE_MAX_PLANES]; __u32 src_height[SDE_MAX_PLANES];
uint32_t dst_width; __u32 dst_width;
uint32_t dst_height; __u32 dst_height;
uint32_t y_rgb_filter_cfg; __u32 y_rgb_filter_cfg;
uint32_t uv_filter_cfg; __u32 uv_filter_cfg;
uint32_t alpha_filter_cfg; __u32 alpha_filter_cfg;
uint32_t blend_cfg; __u32 blend_cfg;
uint32_t lut_flag; __u32 lut_flag;
uint32_t dir_lut_idx; __u32 dir_lut_idx;
/* for Y(RGB) and UV planes*/ /* for Y(RGB) and UV planes*/
uint32_t y_rgb_cir_lut_idx; __u32 y_rgb_cir_lut_idx;
uint32_t uv_cir_lut_idx; __u32 uv_cir_lut_idx;
uint32_t y_rgb_sep_lut_idx; __u32 y_rgb_sep_lut_idx;
uint32_t uv_sep_lut_idx; __u32 uv_sep_lut_idx;
/* /*
* Detail enhancer settings * Detail enhancer settings
*/ */
struct sde_drm_de_v1 de; struct sde_drm_de_v1 de;
uint32_t dir_weight; __u32 dir_weight;
uint32_t unsharp_mask_blend; __u32 unsharp_mask_blend;
uint32_t de_blend; __u32 de_blend;
uint32_t flags; __u32 flags;
/* /*
* Inline pre-downscale settings * Inline pre-downscale settings
*/ */
uint32_t pre_downscale_x_0; __u32 pre_downscale_x_0;
uint32_t pre_downscale_x_1; __u32 pre_downscale_x_1;
uint32_t pre_downscale_y_0; __u32 pre_downscale_y_0;
uint32_t pre_downscale_y_1; __u32 pre_downscale_y_1;
}; };
/* Number of dest scalers supported */ /* Number of dest scalers supported */
@@ -359,11 +359,11 @@ struct sde_drm_scaler_v2 {
* Userspace pointer to struct sde_drm_scaler_v2 * Userspace pointer to struct sde_drm_scaler_v2
*/ */
struct sde_drm_dest_scaler_cfg { struct sde_drm_dest_scaler_cfg {
uint32_t flags; __u32 flags;
uint32_t index; __u32 index;
uint32_t lm_width; __u32 lm_width;
uint32_t lm_height; __u32 lm_height;
uint64_t scaler_cfg; __u64 scaler_cfg;
}; };
/** /**
@@ -372,7 +372,7 @@ struct sde_drm_dest_scaler_cfg {
* @ds_cfg: Destination scaler block configuration * @ds_cfg: Destination scaler block configuration
*/ */
struct sde_drm_dest_scaler_data { struct sde_drm_dest_scaler_data {
uint32_t num_dest_scaler; __u32 num_dest_scaler;
struct sde_drm_dest_scaler_cfg ds_cfg[SDE_MAX_DS_COUNT]; struct sde_drm_dest_scaler_cfg ds_cfg[SDE_MAX_DS_COUNT];
}; };
@@ -392,11 +392,11 @@ struct sde_drm_dest_scaler_data {
* @post_clamp: Post-clamp array values * @post_clamp: Post-clamp array values
*/ */
struct sde_drm_csc_v1 { struct sde_drm_csc_v1 {
int64_t ctm_coeff[SDE_CSC_MATRIX_COEFF_SIZE]; __s64 ctm_coeff[SDE_CSC_MATRIX_COEFF_SIZE];
uint32_t pre_bias[SDE_CSC_BIAS_SIZE]; __u32 pre_bias[SDE_CSC_BIAS_SIZE];
uint32_t post_bias[SDE_CSC_BIAS_SIZE]; __u32 post_bias[SDE_CSC_BIAS_SIZE];
uint32_t pre_clamp[SDE_CSC_CLAMP_SIZE]; __u32 pre_clamp[SDE_CSC_CLAMP_SIZE];
uint32_t post_clamp[SDE_CSC_CLAMP_SIZE]; __u32 post_clamp[SDE_CSC_CLAMP_SIZE];
}; };
/** /**
@@ -407,10 +407,10 @@ struct sde_drm_csc_v1 {
* @color_3: Color 3 value * @color_3: Color 3 value
*/ */
struct sde_drm_color { struct sde_drm_color {
uint32_t color_0; __u32 color_0;
uint32_t color_1; __u32 color_1;
uint32_t color_2; __u32 color_2;
uint32_t color_3; __u32 color_3;
}; };
/* Total number of supported dim layers */ /* Total number of supported dim layers */
@@ -430,8 +430,8 @@ struct sde_drm_color {
* @rect: Dim layer coordinates * @rect: Dim layer coordinates
*/ */
struct sde_drm_dim_layer_cfg { struct sde_drm_dim_layer_cfg {
uint32_t flags; __u32 flags;
uint32_t stage; __u32 stage;
struct sde_drm_color color_fill; struct sde_drm_color color_fill;
struct drm_clip_rect rect; struct drm_clip_rect rect;
}; };
@@ -442,7 +442,7 @@ struct sde_drm_dim_layer_cfg {
* @layer: Dim layer user cfgs ptr for the num_layers * @layer: Dim layer user cfgs ptr for the num_layers
*/ */
struct sde_drm_dim_layer_v1 { struct sde_drm_dim_layer_v1 {
uint32_t num_layers; __u32 num_layers;
struct sde_drm_dim_layer_cfg layer_cfg[SDE_MAX_DIM_LAYERS]; struct sde_drm_dim_layer_cfg layer_cfg[SDE_MAX_DIM_LAYERS];
}; };
@@ -460,10 +460,10 @@ struct sde_drm_dim_layer_v1 {
* @modes: Pointer to struct drm_mode_modeinfo * @modes: Pointer to struct drm_mode_modeinfo
*/ */
struct sde_drm_wb_cfg { struct sde_drm_wb_cfg {
uint32_t flags; __u32 flags;
uint32_t connector_id; __u32 connector_id;
uint32_t count_modes; __u32 count_modes;
uint64_t modes; __u64 modes;
}; };
#define SDE_MAX_ROI_V1 4 #define SDE_MAX_ROI_V1 4
@@ -474,7 +474,7 @@ struct sde_drm_wb_cfg {
* @roi: list of roi rectangles * @roi: list of roi rectangles
*/ */
struct sde_drm_roi_v1 { struct sde_drm_roi_v1 {
uint32_t num_rects; __u32 num_rects;
struct drm_clip_rect roi[SDE_MAX_ROI_V1]; struct drm_clip_rect roi[SDE_MAX_ROI_V1];
}; };

View File

@@ -6,6 +6,8 @@
#ifndef _UAPI__MSM_HDMI_HDCP_MGR_H #ifndef _UAPI__MSM_HDMI_HDCP_MGR_H
#define _UAPI__MSM_HDMI_HDCP_MGR_H #define _UAPI__MSM_HDMI_HDCP_MGR_H
#include <linux/types.h>
enum DS_TYPE { /* type of downstream device */ enum DS_TYPE { /* type of downstream device */
DS_UNKNOWN, DS_UNKNOWN,
DS_RECEIVER, DS_RECEIVER,
@@ -47,13 +49,13 @@ enum SOURCE_ID {
struct HDCP_V2V1_MSG_TOPOLOGY { struct HDCP_V2V1_MSG_TOPOLOGY {
/* indicates downstream's type */ /* indicates downstream's type */
uint32_t ds_type; __u32 ds_type;
uint8_t bksv[5]; __u8 bksv[5];
uint8_t dev_count; __u8 dev_count;
uint8_t depth; __u8 depth;
uint8_t ksv_list[5 * 127]; __u8 ksv_list[5 * 127];
uint32_t max_cascade_exceeded; __u32 max_cascade_exceeded;
uint32_t max_dev_exceeded; __u32 max_dev_exceeded;
}; };
#endif /* _UAPI__MSM_HDMI_HDCP_MGR_H */ #endif /* _UAPI__MSM_HDMI_HDCP_MGR_H */