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

📄 virtual.h

📁 自己在wince的环境下做的一移动数字电视驱动
💻 H
字号:

#ifndef _VIRTUAL_H_
#define _VIRTUAL_H_

#include <windows.h>
#include "Pkfuncs.h"

#define SHARED_MEM_PHYSADDR		0xA0000000

//#define RAM128
#ifdef RAM128

#define HW_MEM_BASE			0x27C00000
#else
#define HW_MEM_BASE			0x23C00000 
#endif

#define HW_MEM_LIMIT			0x00400000

#define OUTBUFFER_BASE			HW_MEM_BASE 
#define OUTBUFFER_LIMIT			0x00300000
#define INBUFFER_BASE			(HW_MEM_BASE + OUTBUFFER_LIMIT) 
#define INBUFFER_LIMIT			0x00040000 
#define DATABUFFER_BASE			(HW_MEM_BASE + OUTBUFFER_LIMIT + INBUFFER_LIMIT)
#define DATABUFFER_LIMIT		0x00040000
#define SCALER_OUT1			(HW_MEM_BASE + OUTBUFFER_LIMIT + INBUFFER_LIMIT + DATABUFFER_LIMIT)
#define SCALER_OUT2			(HW_MEM_BASE + OUTBUFFER_LIMIT + INBUFFER_LIMIT + DATABUFFER_LIMIT + SCALER_LIMIT)
#define SCALER_LIMIT			0x00040000

#define HW_MEM_BASE_TCC79X		0x20100000 // for TCC79x (defaul value)
#define SCALER_TCC79X_OUT1		0x20480000 // for TCC79x (default value) 
#define SCALER_TCC79X_OUT2		0x204C0000 // for TCC79x (default value) 

#define DFLT_BASE_WMV9_ROBASE			0x10004000
#define DFLT_BASE_MPEG2_ROBASE			0x10008000
#define DFLT_BASE_MPEG2_HTBASE			0x10016000
#define DFLT_BASE_MPEG4SP_ROBASE		0x10004000 
#define DFLT_BASE_MPEG4SP_HTBASE		0x10016000

#define MBMEM0BASE				0x10010000
#define MBMEM0BASE_SIZE				6144

#define DFLT_BASE_JPEGDEC_ROBASE		0x10008000
#define PHY_ADDR_R_PINGPONG_1			0x10014000
#define PHY_ADDR_R_PINGPONG_2			0x10016000

extern volatile LPVOID SetVirtual(unsigned int physical_addr, unsigned int mem_size);
extern void FreeVirtual(LPVOID virtual_ptr, unsigned int mem_size);

#endif

⌨️ 快捷键说明

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