www.pudn.com > OS.rar > Nand.h, change:2006-04-12,size:1443b


#ifndef	__NAND_h__ 
#define	__NAND_h__ 
 
#include "Typedef.h" 
 
//	write your header here 
 
INT16 NAND_Initial(void); 
INT16 NAND_Uninitial(void); 
 UINT32 NAND_GetMemSize(); 
INT16 NAND_ReadSector( UINT32 blkno ,  UINT16 blkcnt ,  UINT32 buf); 
INT16 NAND_WriteSector( UINT32 blkno ,  UINT16 blkcnt ,  UINT32 buf); 
 
INT16 NAND_Initial_2(void); 
INT16 NAND_Uninitial_2(void); 
 UINT32 NAND_GetMemSize_2(); 
INT16 NAND_ReadSector_2( UINT32 blkno ,  UINT16 blkcnt ,  UINT32 buf); 
INT16 NAND_WriteSector_2( UINT32 blkno ,  UINT16 blkcnt ,  UINT32 buf); 
 
INT16 NAND_Initial_3(void); 
INT16 NAND_Uninitial_3(void); 
 UINT32 NAND_GetMemSize_3(); 
INT16 NAND_ReadSector_3( UINT32 blkno ,  UINT16 blkcnt ,  UINT32 buf); 
INT16 NAND_WriteSector_3( UINT32 blkno ,  UINT16 blkcnt ,  UINT32 buf); 
 
#define DEVICE_READ_ALLOW	0x1	// 2004-12-08 Yongliang 
#define DEVICE_WRITE_ALLOW	0x2	// 2004-12-08 Yongliang 
 
 
extern const  UINT32 Nand_Part0_Offset; 
extern const  UINT32 Nand_Part0_Size; 
extern const  UINT16 Nand_Part0_Mode; 
 
extern const  UINT32 Nand_Part1_Offset; 
extern const  UINT32 Nand_Part1_Size; 
extern const  UINT16 Nand_Part1_Mode; 
 
extern const  UINT32 Nand_Part2_Offset; 
extern const  UINT32 Nand_Part2_Size; 
extern const  UINT16 Nand_Part2_Mode; 
 
//#define _PC_UNABLE_FORMAT_UDISK 
#define BPB_START_SECTOR	(0x3f) 
#define UNSP_FS_RESERVED	(BPB_START_SECTOR+0x10) 
extern UINT16   gFS_USBReadWriteFlag; 
 
 
#endif