SemiDrive SSDK Appication Program Interface PTG3.0
Data Structures | Functions
disp.h File Reference
#include <asw/asw_g_use.h>
#include <sdrv_common.h>
#include <types.h>

Go to the source code of this file.

Data Structures

struct  rect_t
 
struct  rle_info
 
struct  surface
 
struct  crc32block
 
struct  crc_info
 
struct  post_cfg
 
struct  tcon_timing
 
struct  display_timing
 
struct  dc_config
 
struct  dc_dev
 
struct  dc_operations
 
struct  sdrv_panel
 

Functions

status_t sdrv_display_set_pixelclk (int clk)
 
status_t sdrv_panel_probe (struct sdrv_panel *panel)
 
status_t sdrv_display_init (struct dc_dev *dev)
 
void sdrv_lvds_channel_enable (bool enable)
 
void sdrv_display_rgb565_logo (struct dc_dev *dev, unsigned int width, unsigned int height, unsigned char const *addr)
 
void sdrv_display_blank (struct dc_dev *dev)
 
int sdrv_display_get_width (struct dc_dev *dev)
 
int sdrv_display_get_height (struct dc_dev *dev)
 
void sdrv_display_set_bg_color (struct dc_dev *dev, int color)
 
status_t sdrv_display_surface (struct dc_dev *dev, struct surface *layer)
 
status_t sdrv_display_surface_noblock (struct dc_dev *dev, struct surface *layer)
 
status_t sdrv_display_post (struct dc_dev *dev, struct post_cfg *post)
 
status_t sdrv_display_post_noblock (struct dc_dev *dev, struct post_cfg *post)
 
void sdrv_dc_probe (struct dc_dev *dev, const struct dc_config *dc_cfg)
 
void sdrv_dc_handshake_enable (struct dc_dev *dev, int mode, struct surface *layer)
 
void sdrv_dc_handshake_disable (struct dc_dev *dev, int mode, uint8_t zorder)
 
void sdrv_update_csi_detect (struct dc_dev *dev, struct surface *layer, int mask_count, int ratio, bool enable, bool pll_mode)
 
void sdrv_tcon_auto_adj_enable (struct dc_dev *dev, bool enable)
 

Detailed Description

Macro Definition Documentation

◆ PLL_LVDS_MAX

#define PLL_LVDS_MAX   1200000000 /* PLL_LVDS_MAX 1.2GHz*/

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CLEAR_SPIPE_LAYER 
CLEAR_GPIPE_LAYER 
CLEAR_ALL_LAYERS 

◆ anonymous enum

anonymous enum
Enumerator
IF_TYPE_INVALID 
IF_TYPE_NONE 
IF_TYPE_LVDS 
IF_TYPE_INTERNAL 

◆ anonymous enum

anonymous enum
Enumerator
LVDS_MAP_FORMAT_NC 
LVDS_MAP_FORMAT_JEIDA 
LVDS_MAP_FORMAT_SWPG 

◆ anonymous enum

anonymous enum
Enumerator
CSI_DC_1_1 
CSI_DC_1_2 
CSI_DC_1_3 
CSI_DC_1_4 

◆ anonymous enum

anonymous enum
Enumerator
CRC32_MODE_INTERNAL 
CRC32_MODE_EXTERNAL 

◆ anonymous enum

anonymous enum

Dispss status return code.

Enumerator
SDRV_DISPSS_STATUS_OK 
SDRV_DISPSS_STATUS_FAIL 
SDRV_DISPSS_STATUS_INVALID_PARAM 
SDRV_DISPSS_STATUS_TIMEOUT 

◆ LCM_POLARITY

Enumerator
LCM_POLARITY_RISING 
LCM_POLARITY_FALLING 

◆ mlc_layer_index

Enumerator
MLC_LAYER_SP 
MLC_LAYER_GP 
MLC_LAYER_NUM 

◆ mlc_path_index

Enumerator
MLC_PATH_BG 
MLC_PATH_SP 
MLC_PATH_GP 
MLC_PATH_NUM 

◆ pipe_type_t

Enumerator
PIPE_TYPE_SPIPE 
PIPE_TYPE_GPIPE 
PIPE_TYPE_NUM 

Function Documentation

◆ sdrv_crc_mode_set()

status_t sdrv_crc_mode_set ( bool  is_internal)

◆ sdrv_dc_handshake_disable()

void sdrv_dc_handshake_disable ( struct dc_dev dev,
int  mode,
uint8_t  zorder 
)

asw-dc handshake mode disable with g-pipe disable.

This function enable asw-dc handshake mode.

Parameters
[in]devDC device struct.
[in]modeHSDK MODE: 0:BUF_SIZE_8LINES; 1: BUF_SIZE_16LINES; 2:BUF_SIZE_32LINES; 3:BUF_SIZE_64LINES
[in]zorderg-pipe layer zorder

◆ sdrv_dc_handshake_enable()

void sdrv_dc_handshake_enable ( struct dc_dev dev,
int  mode,
struct surface layer 
)

asw-dc handshake mode enable with update layer.

This function implements display configuration and enable asw-dc handshake mode.

Parameters
[in]devDC device struct.
[in]modeHSDK MODE: 0:BUF_SIZE_8LINES; 1: BUF_SIZE_16LINES; 2:BUF_SIZE_32LINES; 3:BUF_SIZE_64LINES
[in]layersurface param.

◆ sdrv_dc_probe()

void sdrv_dc_probe ( struct dc_dev dev,
const struct dc_config dc_cfg 
)

dc probe.

Parameters
[in]devDC device struct.
[in]dc_cfgdc config param.

◆ sdrv_disp_mux_init()

status_t sdrv_disp_mux_init ( struct sdrv_panel panel)

◆ sdrv_display_blank()

void sdrv_display_blank ( struct dc_dev dev)

sdrv display blank.

This function display a blank frame.

Parameters
[in]devDC device struct.

◆ sdrv_display_get_height()

int sdrv_display_get_height ( struct dc_dev dev)

get display height.

This function obtains display height.

Parameters
[in]devDC device struct.
Returns
the vactive of tcon timing.

◆ sdrv_display_get_width()

int sdrv_display_get_width ( struct dc_dev dev)

get display width.

This function obtains display width.

Parameters
[in]devDC device struct.
Returns
the hactive of tcon timing.

◆ sdrv_display_init()

status_t sdrv_display_init ( struct dc_dev dev)

sdrv display init.

This function init display hardware.

Parameters
[in]devDC device struct.
Returns
SDRV_DISPSS_STATUS_OK display init successfully.

◆ sdrv_display_post()

status_t sdrv_display_post ( struct dc_dev dev,
struct post_cfg post 
)

refresh display.

This function implements display configuration and refresh display.

Parameters
[in]devDC device struct.
[in]postdisplay config param.
Returns
SDRV_DISPSS_STATUS_OK display successfully, SDRV_DISPSS_STATUS_TIMEOUT display timeout.

◆ sdrv_display_post_noblock()

status_t sdrv_display_post_noblock ( struct dc_dev dev,
struct post_cfg post 
)

noblock refresh display.

This function implements display configuration and nonblock refresh display.

Parameters
[in]devDC device struct.
[in]postdisplay config param.
Returns
SDRV_DISPSS_STATUS_OK display successfully, SDRV_DISPSS_STATUS_FAIL display fail.

◆ sdrv_display_rgb565_logo()

void sdrv_display_rgb565_logo ( struct dc_dev dev,
unsigned int  width,
unsigned int  height,
unsigned char const *  addr 
)

sdrv display rgb565 logo.

This function display a static logo.

Parameters
[in]devDC device struct.
[in]widthlogo width.
[in]heightlogo height.
[in]addrthe memory addr of logo data.

◆ sdrv_display_set_bg_color()

void sdrv_display_set_bg_color ( struct dc_dev dev,
int  color 
)

set display background color.

This function set the background color of display.

Parameters
[in]devDC device struct.
[in]colorbackground color value.

◆ sdrv_display_set_pixelclk()

status_t sdrv_display_set_pixelclk ( int  clk)

sdrv display clk set.

This function set display pixel clk.

Parameters
[in]clklvds pixel clk.
Returns
SDRV_DISPSS_STATUS_OK display clk set successfully, SDRV_DISPSS_STATUS_INVALID_PARAM clk is invalid param.

◆ sdrv_display_surface()

status_t sdrv_display_surface ( struct dc_dev dev,
struct surface layer 
)

refresh display single surface.

This function implements display configuration and refresh display.

Parameters
[in]devDC device struct.
[in]layerdisplay surface param.
Returns
SDRV_DISPSS_STATUS_OK display surface successfully, SDRV_DISPSS_STATUS_TIMEOUT display surface timeout.

◆ sdrv_display_surface_noblock()

status_t sdrv_display_surface_noblock ( struct dc_dev dev,
struct surface layer 
)

noblock refresh display surface.

This function implements display configuration and nonblock refresh display surface.

Parameters
[in]devDC device struct.
[in]layersurface param.
Returns
SDRV_DISPSS_STATUS_OK display surface successfully, SDRV_DISPSS_STATUS_FAIL display surface fail.

◆ sdrv_lvds_channel_enable()

void sdrv_lvds_channel_enable ( bool  enable)

lvds channel enable.

This function control the lvds channel output.

Parameters
[in]enablefalse->disable; true->enable.

◆ sdrv_lvds_init()

status_t sdrv_lvds_init ( struct sdrv_panel panel)

◆ sdrv_panel_probe()

status_t sdrv_panel_probe ( struct sdrv_panel panel)

sdrv disp interface init.

This function init display interface.

Parameters
[in]paneldisplay panel param.
Returns
SDRV_DISPSS_STATUS_OK panel probe successfully, SDRV_DISPSS_STATUS_INVALID_PARAM panel is invalid param.

◆ sdrv_paral_to_csi_en()

status_t sdrv_paral_to_csi_en ( bool  enable)

◆ sdrv_tcon_auto_adj_enable()

void sdrv_tcon_auto_adj_enable ( struct dc_dev dev,
bool  enable 
)

tcon auto adj enable.

Parameters
[in]devDC device struct.
[in]enableenable or disable.

◆ sdrv_update_csi_detect()

void sdrv_update_csi_detect ( struct dc_dev dev,
struct surface layer,
int  mask_count,
int  ratio,
bool  enable,
bool  pll_mode 
)

update dc detect.

Parameters
[in]devDC device struct.
[in]dc_cfgdc config param.

Variable Documentation

◆ dc_ops

struct dc_operations dc_ops
extern

◆ g_dc_dev

struct dc_dev g_dc_dev
extern