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

📄 sys82xxdpramlib.h

📁 Embedded Planet公司的ep8260单板计算机的BSP包(VxWorks)
💻 H
字号:
/* sys82xxDpramLib.h - 82xx DPRAM memory allocation driver */

/* Copyright 1984-2001 Wind River Systems, Inc. */
#include "copyright_wrs.h"

/*
modification history
--------------------
01b,17jul01,g_h   cleaning and renaming to sys82xxDpramLib.h
01a,16jul01,p_h   created
*/

/*
DESCRIPTION
This module contains 82xx DPRAM memory allocation driver.
*/

#ifndef __INCsys82xxDpramh
#define __INCsys82xxDpramh

#ifdef __cplusplus
extern "C" {
#endif

#include "vxWorks.h"

/* Define part */
#define ALLOCTABLESIZE 64

typedef struct AddrResource
{
	UINT32 Start;
	UINT32 Size;
	struct AddrResource *Next;
} AddrResource;

typedef struct
{
	UINT32 Start;
	UINT32 Limit;
	AddrResource *Head;
} Pool;

/* Prototypes */

#ifndef _ASMLANGUAGE

#if defined(__STDC__) || defined(__cplusplus)
	  
void  sys82xxDpramLibInit (void);
void* sys82xxDpramMalloc (size_t Length);
void* sys82xxDpramAlignedMalloc (size_t Length, size_t Alignment);
void  sys82xxDpramFree (void* Addr);
void* sys82xxDpramFccMalloc (size_t Length, size_t Alignment);
void  sys82xxDpramFccFree (void* Addr);

#else

void  sys82xxDpramLibInit ();
void* sys82xxDpramMalloc ();
void* sys82xxDpramAlignedMalloc ();
void  sys82xxDpramFree ();
void* sys82xxDpramFccMalloc ();
void  sys82xxDpramFccFree ();

#endif  /* __STDC__ */

#endif	/* _ASMLANGUAGE */

#ifdef __cplusplus
}
#endif
	  
#endif /* __INCsys82xxDpramh */

⌨️ 快捷键说明

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