⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mae_be.h

📁 AU1200嵌入式处理器媒体加速引擎(mae)的驱动
💻 H
字号:
#ifndef _MAE_BE_H_
#define  _MAE_BE_H_


#ifdef __cplusplus
extern "C" {
#endif

#define MAEBE_BASE			0xB4010000
#define MAEBE_CTLSTAT		MAEBE_BASE + 0x0708
#define MAEBE_CTLSTAT_FB   1
#define MAEBE_INTSTAT		MAEBE_BASE + 0x0710
#define MAEBE_INTSTAT_DONE	1
#define MAEBE_CTLENABLE		MAEBE_BASE + 0x0700
#define MAEBE_CTLENABLE_EN	1
#define MAEBE_INTENABLE		MAEBE_BASE + 0x070C
#define MAEBE_INTENABLE_EN	1
#define MAEBE_CTLFPC		MAEBE_BASE + 0x0704
#define MAEBE_CTLFPC_START	1
#define MAEBE_CTLFPC_RESET	2

#define BE_INTR_CTRL_NUMBER 4

#define MAEBE_SCFHSR        MAEBE_BASE
#define MAEBE_SCFVSR        MAEBE_BASE + 0x4
#define MAEBE_SCFDISABLE    MAEBE_BASE + 0x8
#define MAEBE_SCFHALUT      MAEBE_BASE + 0x100
#define MAEBE_SCFVALUT      MAEBE_BASE + 0x180
#define MAEBE_SCFHBLUT      MAEBE_BASE + 0x200
#define MAEBE_SCFVBLUT      MAEBE_BASE + 0x280
#define MAEBE_SCFHCLUT      MAEBE_BASE + 0x300
#define MAEBE_SCFVCLUT      MAEBE_BASE + 0x380

#define MAEBE_CSCMATRIX     MAEBE_BASE + 0x400
#define MAEBE_CSCALPHA      MAEBE_BASE + 0x430
#define MAEBE_SRCCFG        MAEBE_BASE + 0x500
#define MAEBE_SRCCFG_LE		1<<10

#define MAEBE_SRCFHW       MAEBE_BASE + 0x504
#define MAEBE_SRCAADDR      MAEBE_BASE + 0x508
#define MAEBE_SRCASTR       MAEBE_BASE + 0x50C
#define MAEBE_SRCBADDR      MAEBE_BASE + 0x510
#define MAEBE_SRCBSTR       MAEBE_BASE + 0x514
#define MAEBE_SRCCADDR      MAEBE_BASE + 0x518
#define MAEBE_SRCCSTR       MAEBE_BASE + 0x51C

#define MAEBE_DSTCFG        MAEBE_BASE + 0x600
#define MAEBE_DSTCFG_ARGB	0 << 4
#define MAEBE_DSTCFG_BGRA	1 << 4
#define MAEBE_DSTCFG_565	2 << 2
#define MAEBE_DSTCFG_555A	3 << 2
#define MAEBE_DSTCFG_888A	0 << 2
#define MAEBE_DSTCFG_LE 1	<< 1

#define MAEBE_DSTHEIGHT     MAEBE_BASE + 0x604
#define MAEBE_DSTADDR       MAEBE_BASE + 0x608
#define MAEBE_DSTSTR        MAEBE_BASE + 0x60C


#if 0
typedef struct tag_dispq_t {
	UINT32 pts;  // Presentation Time Stamp
	UINT32 dts;  // Decode Time Stamp
	UINT32 tnum; // Temporal Number
	UINT32 ready_to_display; // set once the buffer is completed
	UINT32 start_time; // time clock is written when LCD is updated to display this frame
	PUINT32 rgb; // address ptr for head of rgb data
	struct tag_dispq_t *next;
	struct tag_dispq_t *prev;
} DISPQ_T, *PDISPQ_T;
#endif
//
void			program_static_be_registers(void);
//
void			program_lut(void);
//
unsigned char	run_be_hw(void);
//
//UINT32			init_dispq_list(void);
//
void			ring_be_doorbell(void);
UINT32			init_rgbq_list(void);

#ifdef __cplusplus
}
#endif


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -