Usermode/libaxwin4 - Handle demarshal failure
[tpg/acess2.git] / KernelLand / Modules / Filesystems / FAT / fs_fat.h
index 6896945..9911563 100644 (file)
@@ -6,6 +6,9 @@
 #ifndef _FS_FAT_H_\r
 #define _FS_FAT_H_\r
 \r
+#define FAT16_MIN_SECTORS      4085\r
+#define FAT32_MIN_CLUSTERS     65525\r
+\r
 // === On Disk Structures ===\r
 /**\r
  * \struct fat_bootsect_s\r
@@ -116,16 +119,6 @@ struct fat_longfilename_s {
  * \}\r
  */\r
 \r
-/**\r
- * \brief Internal IDs for FAT types\r
- */\r
-enum eFatType\r
-{\r
-       FAT12,  //!< FAT12 Volume\r
-       FAT16,  //!< FAT16 Volume\r
-       FAT32,  //!< FAT32 Volume\r
-};\r
-\r
 /**\r
  * \name End of Cluster marks\r
  * \brief FAT values that indicate the end of a cluster chain in\r
@@ -143,29 +136,4 @@ typedef struct fat_bootsect_s fat_bootsect;
 typedef struct fat_filetable_s fat_filetable;\r
 typedef struct fat_longfilename_s fat_longfilename;\r
 \r
-// === Memory Structures ===\r
-/**\r
- * \struct drv_fat_volinfo_s\r
- * \brief Representation of a volume in memory\r
- */\r
-struct drv_fat_volinfo_s\r
-{\r
-        int    fileHandle;     //!< File Handle\r
-        int    type;   //!< FAT Type. See eFatType\r
-       char    name[12];       //!< Volume Name (With NULL Terminator)\r
-       tMutex  lFAT;   //!< Lock to prevent double-writing to the FAT\r
-       Uint32  firstDataSect;  //!< First data sector\r
-       Uint32  rootOffset;     //!< Root Offset (clusters)\r
-       Uint32  ClusterCount;   //!< Total Cluster Count\r
-       fat_bootsect    bootsect;       //!< Boot Sector\r
-       tVFS_Node       rootNode;       //!< Root Node\r
-        int    BytesPerCluster;\r
-        int    inodeHandle;    //!< Inode Cache Handle\r
-       #if CACHE_FAT\r
-       Uint32  *FATCache;      //!< FAT Cache\r
-       #endif\r
-};\r
-\r
-typedef struct drv_fat_volinfo_s tFAT_VolInfo;\r
-\r
 #endif\r

UCC git Repository :: git.ucc.asn.au