Turnstone Operating System
Loading...
Searching...
No Matches
fat.h File Reference

FAT32 header. More...

#include <types.h>
#include <fs.h>

Classes

struct  fat32_bpb_t
 
struct  fat32_fsinfo_t
 
struct  fat32_dirent_time
 
struct  fat32_dirent_date
 
struct  fat32_dirent_shortname_t
 
struct  fat32_dirent_longname_t
 

Macros

#define ___FAT_H   0
 
#define FAT32_BOOT_SIGNATURE   0xAA55
 
#define FAT32_IDENTIFIER   "FAT32 "
 
#define FAT32_SIGNATURE   0x29
 
#define FAT32_OEM_ID   "hobby.os"
 
#define FAT32_BYTES_PER_SECTOR   0x200
 
#define FAT32_RESERVED_SECTORS   0x20
 
#define FAT32_FAT_COUNT   0x02
 
#define FAT32_MEDIA_DESCRIPTOR_TYPE   0xF8
 
#define FAT32_SECTORS_PER_TRACK   0x3F
 
#define FAT32_HEAD_COUNT   0x40
 
#define FAT32_ROOT_DIR_CLUSTER_NUMBER   0x2
 
#define FAT32_FSINFO_SECTOR   0x1
 
#define FAT32_BACKUP_BPB   0x6
 
#define FAT32_DRIVE_NUMBER   0x80
 
#define FAT32_ESP_VOLUME_LABEL   "ESP EFI VOL"
 
#define FAT32_YEAR_START   1980
 
#define FAT32_CLUSTER_BAD   0x0FFFFFF7
 
#define FAT32_CLUSTER_END   0x0FFFFFF8
 
#define FAT32_CLUSTER_END2   0x0FFFFFFF
 
#define FAT32_FSINFO_SIGNATURE0   0x41615252
 
#define FAT32_FSINFO_SIGNATURE1   0x61417272
 
#define FAT32_FSINFO_SIGNATURE2   0xAA550000
 
#define FAT32_DIRENT_TYPE_READONLY   0x01
 
#define FAT32_DIRENT_TYPE_HIDDEN   0x02
 
#define FAT32_DIRENT_TYPE_SYSTEM   0x04
 
#define FAT32_DIRENT_TYPE_VOLUMEID   0x08
 
#define FAT32_DIRENT_TYPE_DIRECTORY   0x10
 
#define FAT32_DIRENT_TYPE_ARCHIVE   0x20
 
#define FAT32_DIRENT_TYPE_LONGNAME   0x0F /* (FAT32_DIRENT_TYPE_READONLY|FAT32_DIRENT_TYPE_HIDDEN|FAT32_DIRENT_TYPE_SYSTEM|FAT32_DIRENT_TYPE_VOLUMEID) */
 
#define FAT32_DIRENT_TYPE_UNUSED   0xE5
 

Typedefs

typedef struct fat32_bpb_t fat32_bpb_t
 
typedef struct fat32_fsinfo_t fat32_fsinfo_t
 
typedef struct fat32_dirent_time fat32_dirent_time
 
typedef struct fat32_dirent_date fat32_dirent_date
 
typedef struct fat32_dirent_shortname_t fat32_dirent_shortname_t
 
typedef struct fat32_dirent_longname_t fat32_dirent_longname_t
 

Functions

filesystem_tfat32_get_or_create_fs (disk_or_partition_t *d, const char_t *volname)
 

Detailed Description

FAT32 header.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.