www.pudn.com > MP3+JPEG.rar > ucBSExt_CFG.h


//========================================================================= 
//  The information contained herein is the exclusive property of Sunplus  
//  Technology Co. And shall not be distributed, reproduced, or disclosed  
//  in whole in part without prior written permission. 
//  (C) Copyright 2003 Sunplus Technology Co. All rights reserved. 
//  The entire notice above must be reproduced on all authorized copies 
//========================================================================= 
 
//========================================================================= 
//  project  name:           Buddy System  
//  Project Description: Buddy System Configure File 
//  Environment: 	 
//					 
//  Library Dependency:  
//                       
//  Author: 	xiaoping 
//  Date:		2005/04/15 
//  E-mail:      
//  Revision history: 
//  ------------------------------------------------------------------------ 
//  YYYY-MM-DD        Modified By               Description                   
//  ------------------------------------------------------------------------ 
//========================================================================== 
 
#ifndef	_UCBSEXT_CFG_H_ 
#define	_UCBSEXT_CFG_H_ 
 
#define 	BSEXT_NUM				8 
#define 	BSEXT_MIN_BLOCK		64 
#define 	BSEXT_MAX_BLOCK		8192 
#define 	BSEXT_LIST_MERGE_SIZE	4 
 
#define 	BSEXT_SECTION		1                       //Ext memory section for buddy to managment 
 
#define	BSEXT_MEM_RECORD_SIZE			4			//16/4 =4 
 
 
#define BSEXT_RECORD_SIZE                 (2<< (BSEXT_MIN_BLOCK  - 1)) 
 
typedef  struct stBSSection 
{	unsigned long start_addr; 
	unsigned long end_addr;	 
}STExtSection; 
 
#ifdef CREATE_BSEXT_VAR 
  const STExtSection BSExt_Section[BSEXT_SECTION] =  
  {  
  	{0x80000UL, 0xbffffUL}, 
//  	{0x280000UL, 0x2bffffUL} 
  }; 
#else 
   extern const STExtSection BSExt_Section[BSEXT_SECTION]; 
#endif 
 
#endif