| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- #ifndef _H_DDP_INFO_
- #define _H_DDP_INFO_
- //#include <linux/types.h>
- #include "ddp_hal.h"
- #include "mt_typedefs.h"
- #include "ddp_data_type.h"
- #include "lcm_drv.h"
- #include "ddp_reg.h"
- #include "disp_event.h"
- typedef struct _OVL_CONFIG_STRUCT
- {
- unsigned int ovl_index;
- unsigned int layer;
- unsigned int layer_en;
- enum OVL_LAYER_SOURCE source;
- unsigned int fmt;
- unsigned int addr;
- unsigned int vaddr;
- unsigned int src_x;
- unsigned int src_y;
- unsigned int src_w;
- unsigned int src_h;
- unsigned int src_pitch;
- unsigned int dst_x;
- unsigned int dst_y;
- unsigned int dst_w;
- unsigned int dst_h; // clip region
- unsigned int keyEn;
- unsigned int key;
- unsigned int aen;
- unsigned char alpha;
- unsigned int isTdshp;
- unsigned int isDirty;
- unsigned int buff_idx;
- unsigned int identity;
- unsigned int connected_type;
- unsigned int security;
- }OVL_CONFIG_STRUCT;
- typedef struct _RDMA_CONFIG_STRUCT
- {
- unsigned idx; // instance index
- DpColorFormat inputFormat;
- unsigned address;
- unsigned pitch;
- unsigned width;
- unsigned height;
- }RDMA_CONFIG_STRUCT;
- typedef struct _WDMA_CONFIG_STRUCT
- {
- unsigned srcWidth;
- unsigned srcHeight; // input
- unsigned clipX;
- unsigned clipY;
- unsigned clipWidth;
- unsigned clipHeight; // clip
- DpColorFormat outputFormat;
- unsigned dstAddress;
- unsigned dstWidth; // output
- unsigned int useSpecifiedAlpha;
- unsigned char alpha;
- }WDMA_CONFIG_STRUCT;
- typedef struct
- {
- // for ovl
- unsigned int ovl_dirty;
- unsigned int rdma_dirty;
- unsigned int wdma_dirty;
- unsigned int dst_dirty;
- OVL_CONFIG_STRUCT ovl_config[4];
- RDMA_CONFIG_STRUCT rdma_config;
- WDMA_CONFIG_STRUCT wdma_config;
- LCM_DSI_PARAMS dsi_config;
- LCM_DPI_PARAMS dpi_config;
- unsigned int lcm_bpp;
- unsigned int dst_w;
- unsigned int dst_h;
- }disp_ddp_path_config;
- typedef int (*ddp_module_notify)(DISP_MODULE_ENUM, DISP_PATH_EVENT);
- typedef struct
- {
- DISP_MODULE_ENUM module;
- int (*init)(DISP_MODULE_ENUM module, void *handle);
- int (*deinit)(DISP_MODULE_ENUM module, void *handle);
- int (*config)(DISP_MODULE_ENUM module, disp_ddp_path_config *config, void *handle);
- int (*start)(DISP_MODULE_ENUM module, void *handle);
- int (*trigger)(DISP_MODULE_ENUM module, void *cmdq_handle);
- int (*stop)(DISP_MODULE_ENUM module, void *handle);
- int (*reset)(DISP_MODULE_ENUM module, void *handle);
- int (*power_on)(DISP_MODULE_ENUM module, void *handle);
- int (*power_off)(DISP_MODULE_ENUM module, void *handle);
- int (*is_idle)(DISP_MODULE_ENUM module);
- int (*is_busy)(DISP_MODULE_ENUM module);
- int (*dump_info)(DISP_MODULE_ENUM module, int level);
- int (*bypass)(DISP_MODULE_ENUM module, int bypass);
- int (*build_cmdq)(DISP_MODULE_ENUM module, void *cmdq_handle, CMDQ_STATE state);
- int (*set_lcm_utils)(DISP_MODULE_ENUM module, LCM_DRIVER *lcm_drv);
- int (*set_listener)(DISP_MODULE_ENUM module,ddp_module_notify notify);
- int (*polling_irq)(DISP_MODULE_ENUM module, int bit, int timeout);
- } DDP_MODULE_DRIVER;
- char* ddp_get_module_name(DISP_MODULE_ENUM module);
- int ddp_get_module_max_irq_bit(DISP_MODULE_ENUM module);
- #endif
|