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

📄 jpeg_mjpeg_cache.h

📁 ADI blackfin DSP的基于device friver的jpeg压缩算法
💻 H
字号:
/*****************************************************************************
Copyright(c) 2005 Analog Devices, Inc.  All Rights Reserved. This software is
proprietary and confidential to Analog Devices, Inc. and its licensors.
******************************************************************************

$RCSfile: jpeg_mjpeg_cache.h,v $
$Revision: 1.1 $
$Date: 2006/07/21 08:02:56 $

Project:	BlackfinSDK (JPEG Edge Detection)
Title:		cache services
Author(s):	ku
Revised by: dwu, bmk

Description:
			Controls instruction/data caches

References:
			None

******************************************************************************
Tab Setting:			4

Target Processor:		ADSP-BF5xx
Target Tools Revision:	ADSP VisualDSP++ v4.5
******************************************************************************

Modification History:
====================
$Log: jpeg_mjpeg_cache.h,v $
Revision 1.1  2006/07/21 08:02:56  bmk
JPEG common files


*****************************************************************************/

#ifndef __JPEG_MJPEG_CACHE_H__
#define __JPEG_MJPEG_CACHE_H__

#include <services/services.h>			// system services include

// data cache utilities
// L1 Data Memory Control Register
inline void disable_data_cache(void)
{
	*pDMEM_CONTROL &= ~0xA;		//disable CPLB's, DMC in reserved mode
	ssync();
}

inline void enable_data_cache(void)
{
	*pDMEM_CONTROL |= 0xA;		//enable CPLB's, Data Bank A is lower 16K byte SRAM, upper 16K byte cache, Data Bank B is SRAM
	ssync();
}

// instruction cache utilities
// L1 Instruction Memory Control Register
inline void disable_instruction_cache(void)
{
	*pIMEM_CONTROL &= ~0x4;		// disable CPLB's, All cacheways locked
	ssync();
}

inline void enable_instruction_cache(void)
{
	*pIMEM_CONTROL |= 0x4;		// enable CPLB's, Upper 16K byte of L1 instruction memory configured as cache
	ssync();
}

// Function declarations
void configure_data_cache_cplbs(int dcplb_table[16][2]);
void configure_instruction_cache_cplbs(int icplb_table[16][2]);

#endif 	// __JPEG_MJPEG_CACHE_H__

⌨️ 快捷键说明

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