*
* Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
*
- * $Id: yaffs_guts.h,v 1.19 2005-03-29 22:43:38 charles Exp $
+ * $Id: yaffs_guts.h,v 1.20 2005-06-25 03:22:24 charles Exp $
*/
#ifndef __YAFFS_GUTS_H__
{
// Entry parameters set up way early. Yaffs sets up the rest.
int nBytesPerChunk; // Should be a power of 2 >= 512
- int nChunksPerBlock; // does not need to be a power of 2
+ int nChunksPerBlock; // does not need to be a power of 2
int startBlock; // Start block we're allowed to use
int endBlock; // End block we're allowed to use
int nReservedBlocks; // We want this tuneable so that we can reduce
int (*initialiseNAND)(struct yaffs_DeviceStruct *dev);
// Runtime parameters. Set up by YAFFS.
+ int internalStartBlock; // Internal version of startBlock
+ int internalEndBlock; // End block we're allowed to use
+ int blockOffset;
+ int chunkOffset;
+
__u16 chunkGroupBits; // 0 for devices <= 32MB. else log2(nchunks) - 16
__u16 chunkGroupSize; // == 2^^chunkGroupBits