X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs%2F.git;a=blobdiff_plain;f=yaffs_guts.h;h=e6f74ddbc72daa600a13cc19951eaa5f8e65fdaa;hp=d1e29730fa26a27d32313d3ff8d3ee8573502ee1;hb=54a94b218fce5de9c076266fc34c9de5bfcd656b;hpb=dcb63a21673a72cd6d7df32e3c3e9b692e49f586 diff --git a/yaffs_guts.h b/yaffs_guts.h index d1e2973..e6f74dd 100644 --- a/yaffs_guts.h +++ b/yaffs_guts.h @@ -93,7 +93,9 @@ typedef struct __u8 tagByte1; __u8 tagByte2; __u8 tagByte3; - __u8 pageStatus; + __u8 pageStatus; // Currently unused, but sort of set aside to distinguish + // unused - vs- used -vs- deleted chunks. We achieve this by + // using the objectId tags. __u8 blockStatus; __u8 tagByte4; __u8 tagByte5; @@ -318,7 +320,12 @@ struct yaffs_DeviceStruct void *genericDevice; // Pointer to device context // On an mtd this holds the mtd pointer. + +#ifdef __KERNEL__ + struct semaphore sem;// Semaphore for waiting on erasure. + +#endif // NAND access functions (Must be set before calling YAFFS)