X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FFilesystems%2FFAT%2Ffs_fat.h;h=6896945f1c99e8b0dca3be3356d54a767d163774;hb=b1873b4cff47aae8ada8cc303ea01b475cc7ccc8;hp=072e2bf2b1b0d713e894e0a92b427d342435eb20;hpb=775bf8013abe9fe4ef3d4883ea2e43bba2a84da1;p=tpg%2Facess2.git diff --git a/Modules/Filesystems/FAT/fs_fat.h b/Modules/Filesystems/FAT/fs_fat.h index 072e2bf2..6896945f 100644 --- a/Modules/Filesystems/FAT/fs_fat.h +++ b/Modules/Filesystems/FAT/fs_fat.h @@ -18,11 +18,13 @@ struct fat_bootsect_s Uint16 bps; //!< Bytes per Sector. Assumed to be 512 Uint8 spc; //!< Sectors per Cluster Uint16 resvSectCount; //!< Number of reserved sectors at beginning of volume + // +0x10 Uint8 fatCount; //!< Number of copies of the FAT Uint16 files_in_root; //!< Count of files in the root directory Uint16 totalSect16; //!< Total sector count (FAT12/16) Uint8 mediaDesc; //!< Media Desctiptor Uint16 fatSz16; //!< FAT Size (FAT12/16) + // +0x18 Uint16 spt; //!< Sectors per track. Ignored (Acess uses LBA) Uint16 heads; //!< Heads. Ignored (Acess uses LBA) Uint32 hiddenCount; //!< ??? @@ -75,9 +77,9 @@ struct fat_filetable_s { } __attribute__((packed)); /** - \struct fat_longfilename_s - \brief Format of a long file name entry on disk -*/ + * \struct fat_longfilename_s + * \brief Format of a long file name entry on disk + */ struct fat_longfilename_s { Uint8 id; //!< ID of entry. Bit 6 is set for last entry Uint16 name1[5]; //!< 5 characters of name @@ -151,7 +153,7 @@ struct drv_fat_volinfo_s int fileHandle; //!< File Handle int type; //!< FAT Type. See eFatType char name[12]; //!< Volume Name (With NULL Terminator) - tSpinlock lFAT; //!< Lock to prevent double-writing to the FAT + tMutex lFAT; //!< Lock to prevent double-writing to the FAT Uint32 firstDataSect; //!< First data sector Uint32 rootOffset; //!< Root Offset (clusters) Uint32 ClusterCount; //!< Total Cluster Count