X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=wince%2Fynandif.h;h=ab5f35e8f9fc6fcb494aea0c775aad8cf51c4ddb;hb=e491e7735f8909e10d01a9762eae8bca2659b1b4;hp=3ae1e8ac0fb0ed093d6345975b10045f6ac9a40f;hpb=0b8a3dba1290b2e2e6d0c3be98f5162d1acb5af0;p=yaffs%2F.git diff --git a/wince/ynandif.h b/wince/ynandif.h index 3ae1e8a..ab5f35e 100644 --- a/wince/ynandif.h +++ b/wince/ynandif.h @@ -2,9 +2,10 @@ * YAFFS: Yet another FFS. A NAND-flash specific file system. * ynandif.h: Nand interface routines for WinCE version of YAFFS. * - * Copyright (C) 2002 Trimble Navigaion Ltd. + * Copyright (C) 2002-2003 Trimble Navigaion Ltd. * * Created by Brad Beveridge + * Modified for CE 4.x by Steve Fogle * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1 as @@ -21,8 +22,8 @@ * * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL. * - * $Id: ynandif.h,v 1.1 2002-11-08 07:30:00 charles Exp $ - */ + * $Id: ynandif.h,v 1.2 2003-01-31 00:52:53 charles Exp $ +*/ #ifndef YNANDIF_H #define YNANDIF_H @@ -43,8 +44,19 @@ typedef enum YNANDIF_ERASE, YNANDIF_INIT, YNANDIF_GETSIZE, + //slf021105a begin + YNANDIF_GETPARTITIONS, + //slf021105a end } ynandif_commands; +//slf021105a begin +typedef struct +{ + int startBlock; + int endBlock; + unsigned short volName[12]; +} ynandif_partition; +//slf021105a end /* * Functions that need to be provided for YAFFS @@ -53,12 +65,18 @@ int ynandif_WriteChunkToNAND(yaffs_Device *dev, int chunkInNAND,const __u8 *data int ynandif_ReadChunkFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *data, yaffs_Spare *spare); int ynandif_EraseBlockInNAND(yaffs_Device *dev, int blockNumber); int ynandif_InitialiseNAND(yaffs_Device *dev); +//slf021220a begin Cleanup block driver interface +void ynandif_DeinitialiseNAND(yaffs_Device *dev); +//slf021220a end Cleanup block driver interface /* * Additional optional functions */ int ynandif_EraseAllBlocks(yaffs_Device *dev); -int ynandif_GetChipSize(unsigned char chipNumber); +//slf021220a begin Cleanup block driver interface +//int ynandif_GetChipSize(unsigned char chipNumber); +int ynandif_GetChipSize(yaffs_Device *dev, unsigned char chipNumber); +//slf021220a end Cleanup block driver interface #endif // end of file \ No newline at end of file