halwrapper.h
来自「SAMSUNG S3C6410 CPU BSP for winmobile6」· C头文件 代码 · 共 105 行
H
105 行
/*****************************************************************************/
/* */
/* PROJECT : PocketStoreII */
/* FILE : HALWrapper.h */
/* PURPOSE : This file contains a wrapper interface of WinCE HAL */
/* */
/*---------------------------------------------------------------------------*/
/* */
/* COPYRIGHT 2002,2003 SAMSUNG ELECTRONICS CO., LTD. */
/* ALL RIGHTS RESERVED */
/* */
/* Permission is hereby granted to licensees of Samsung Electronics */
/* Co., Ltd. products to use or abstract this computer program 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 */
/* */
/* 14-JAN-2003 [SongHo Yoon]: first writing */
/* 18-APR-2003 [SongHo Yoon]: add PS_HAL_FM_GET_PARTITIONINFO */
/* 18-DEC-2003 [SongHo Yoon]: added PS_HAL_FM_READ_GBBM_ON */
/* PS_HAL_FM_READ_GBBM_OFF */
/* removed PS_HAL_FM_READ */
/* 30-MAY-2005 [SungKug Cho] add PS_HAL_BML_COPY */
/* */
/*****************************************************************************/
#ifndef _POCKETSTOREII_HAL_WRAPPER_H_
#define _POCKETSTOREII_HAL_WRAPPER_H_
typedef struct {
UINT nVol;
UINT nCtrlCode;
UINT nVbn;
UINT nVsn;
UINT nNumOfScts;
UCHAR *pMBuf;
SGL *pSGLBuf; /* added for XSR v1.5.x */
UCHAR *pSBuf;
UINT nOpFlag;
MEBArg *pstMEBArg;
} BMLPacket;
typedef struct {
UINT32 nCode;
UINT8 *pBufIn;
UINT32 nLenIn;
UINT8 *pBufOut;
UINT32 nLenOut;
UINT32 *pByteRet;
} BMLIOCtlPacket;
/*****************************************************************************/
/* nControlCode of PS_hal_wrapper */
/*****************************************************************************/
#define PS_HAL_BML_INIT 1
#define PS_HAL_BML_OPEN 2
#define PS_HAL_BML_CLOSE 3
#define PS_HAL_BML_READ 5
#define PS_HAL_BML_WRITE 6
#define PS_HAL_BML_ERASE 7
#define PS_HAL_BML_READXID 8
#define PS_HAL_BML_MREAD 10 // kathy
#define PS_HAL_BML_MWRITE 11 // kathy
#define PS_HAL_BML_MEraseBlk 12 // kathy
#define PS_HAL_BML_ASSERT_BADBLK 13
#define PS_HAL_BML_GET_PARTITIONENTRYINFO 15
#define PS_HAL_BML_GET_VOLUMEINFO 16
#define PS_HAL_BML_FORMAT 17
#define PS_HAL_BML_GET_PLANENUM 18
#define PS_HAL_BML_CPBACK 19
#define PS_HAL_BML_FLUSHOP 20
#define PS_HAL_BML_REPLACEBLK 21
#define PS_HAL_BML_SET_PARTITIONEXT 22
#define PS_HAL_BML_GET_PARTITIONEXT 23
#define PS_HAL_BML_IOCTL 24
#define PS_HAL_BML_COPY 25
#define PS_HAL_BML_SGLREAD 26 /* added for XSR v1.5.x */
#define PS_HAL_BML_SGLWRITE 27 /* added for XSR v1.5.x */
#define PS_HAL_LLD_OTP_READ 28 // for OTP
#define PS_HAL_LLD_OTP_WRITE 29 // for OTP
#define PS_HAL_LLD_OTP_STATUS 30 // for OTP
#define PS_HAL_BML_GETDEVINFO 31
#define PS_HAL_OND_POWERUP 32
#define IOCTL_POCKETSTORE_CMD CTL_CODE(FILE_DEVICE_HAL, 4070, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_POCKETSTOREII_CMD CTL_CODE(FILE_DEVICE_HAL, 4080, METHOD_BUFFERED, FILE_ANY_ACCESS)
UINT32 PSII_HALWrapper(VOID *pPacket, VOID *pInOutBuf, UINT32 *pResult);
#endif //_POCKETSTOREII_HAL_WRAPPER_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?