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

📄 oam.h

📁 SAMSUNG S3C6410 CPU BSP for winmobile6
💻 H
字号:
/*****************************************************************************/
/*                                                                           */
/* COMPONENT   : eXtended Sector Remapper                                    */
/* MODULE      : OS Adaptation Module                                        */
/* FILE        : OAM.h                                                       */
/* PURPOSE     : This file contains the definition and protypes of exported  */
/*              functions for OS Adaptation Module.                          */
/*                                                                           */
/*---------------------------------------------------------------------------*/
/*                                                                           */
/*          COPYRIGHT 2003-2005 SAMSUNG ELECTRONICS CO., LTD.                */
/*                          ALL RIGHTS RESERVED                              */
/*                                                                           */
/*   Permission is hereby granted to licenses of Samsung Electronics         */
/*   Co., Ltd. products to use or abstract this computer program only in     */
/*   accordance with the terms of the NAND FLASH MEMORY SOFTWARE LICENSE     */
/*   AGREEMENT for the sole purpose of implementing a product based on       */
/*   Samsung Electronics Co., Ltd. products. No other rights to reproduce,   */
/*   use, or disseminate this computer program, whether in part or in whole, */
/*   are granted.                                                            */
/*                                                                           */
/*   Samsung Electronics Co., Ltd. makes no representation or warranties     */
/*   with respect to the performance of this computer program, and           */
/*   specifically disclaims any responsibility for any damages,              */
/*   special or consequential, connected with the use of this program.       */
/*                                                                           */
/*---------------------------------------------------------------------------*/
/*                                                                           */
/* REVISION HISTORY                                                          */
/*                                                                           */
/*   24-JUL-2003 [SongHo Yoon]  : first writing                              */
/*   28-JUL-2003 [SongHo Yoon]  : added OAM_Memcmp()                         */
/*   13-AUG-2003 [SongHo Yoon]  : added NULL definition                      */
/*   03-SEP-2003 [HyoJun Kim]   : added OAM_ResetTimer()                     */
/*                                added OAM_GetTime()                        */
/*   17-DEC-2003 [SongHo Yoon]  : reorganization                             */
/*   17-DEC-2003 [SongHo Yoon]  : added OAM_WaitNMSec()                      */
/*   27-JAN-2004 [SongHo Yoon]  : added OAM_RTLMSG_DISABLE                   */
/*                                removed OAM_RTLMSG_ENABLE                  */
/*   12-FEB-2004 [SongHo Yoon]  : changed TEXT macro                         */
/*                                #define   TEXT(x)  (VOID *) (x)            */
/*   22-OCT-2004 [Jihyun In]    : Interrupt related functions are modified   */
/*	 15-DEC-2005 [Byoung Young Ahn]	: added OAM_Idle(), OAM_GetROLockFlag()	 */
/*                                                                           */
/*****************************************************************************/

#ifndef _XSR_OAM_H_
#define	_XSR_OAM_H_

#include <windows.h>

#define	XSR_RTL_PRINT(x)		RETAILMSG(1, x)

//#define OAM_DBGMSG_ENABLE
#if defined(OAM_DBGMSG_ENABLE)
#define	XSR_DBG_PRINT(x)		RETAILMSG(1, x)
#endif /* OAM_DBGMSG_ENABLE */

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/*****************************************************************************/
/* exported function prototype of OAM                                        */
/*****************************************************************************/

VOID    *OAM_Malloc    (UINT32 nSize);
VOID     OAM_Free      (VOID  *pMem);
VOID     OAM_Memcpy    (VOID  *pDst, VOID  *pSrc,   UINT32 nLen);
VOID     OAM_Memset    (VOID  *pDst, UINT8  nData,  UINT32 nLen);
INT32    OAM_Memcmp    (VOID  *pCmp1,VOID  *pCmp2,  UINT32 nLen);

BOOL32   OAM_CreateSM  (SM32  *pHandle);
BOOL32   OAM_DestroySM (SM32   nHandle);
BOOL32   OAM_AcquireSM (SM32   nHandle);
BOOL32   OAM_ReleaseSM (SM32   nHandle);
UINT32   OAM_Pa2Va     (UINT32 nPAddr);

VOID     OAM_Debug     (VOID *pStr, ...);

VOID 	 OAM_ResetTimer(VOID);
UINT32   OAM_GetTime   (VOID);
VOID     OAM_WaitNMSec (UINT32 nNMSec);

BOOL32   OAM_GetROLockFlag (VOID);
VOID	 OAM_Idle          (VOID);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif	/* _XSR_OAM_H_ */

⌨️ 快捷键说明

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