Fat16/Fat16structs.h File Reference


Classes

struct  partitionTable
 MBR partition table entry. More...
struct  masterBootRecord
 Master Boot Record. More...
struct  biosPramBlock
 Structure that defines a FAT16 volume. More...
struct  fat16BootSector
 Boot Sector of a FAT16 volume. More...
struct  directoryEntry
 FAT short directory entry. More...

Defines

#define PART_BOOT_ACTIVE   0X80
#define PART_BOOT_NON_BOOTABLE   0X00
#define PART_TYPE_FAT12   0x01
#define PART_TYPE_DOSFAT16   0x04
#define PART_TYPE_EXTENDED   0x05
#define PART_TYPE_FAT16   0x06
#define PART_TYPE_NTFS   0x07
#define PART_TYPE_FAT32   0x0B
#define PART_TYPE_FAT32LBA   0x0C
#define PART_TYPE_FAT16LBA   0x0E
#define PART_TYPE_EXTDOSLBA   0x0F
#define BOOTSIG0   0X55
#define BOOTSIG1   0XAA
#define DIR_NAME_0XE5   0X05
#define DIR_NAME_DELETED   0XE5
#define DIR_NAME_FREE   0X00
#define DIR_ATT_READ_ONLY   0X01
#define DIR_ATT_HIDDEN   0X02
#define DIR_ATT_SYSTEM   0X04
#define DIR_ATT_VOLUME_ID   0X08
#define DIR_ATT_DIRECTORY   0X10
#define DIR_ATT_ARCHIVE   0X20
#define DIR_ATT_LONG_NAME   0X0F
#define DIR_ATT_LONG_NAME_MASK   0X3F
#define FAT_LAST_USED   0XFFEF
#define FAT_EOC   0XFFFF

Typedefs

typedef struct partitionTable part_t
typedef struct masterBootRecord mbr_t
typedef struct biosPramBlock bpb_t
typedef struct fat16BootSector fbs_t
typedef struct directoryEntry dir_t

Detailed Description

FAT data structures

Define Documentation

#define BOOTSIG0   0X55

Value for byte 254 of boot block

#define BOOTSIG1   0XAA

value for byte 255 of boot block

#define DIR_ATT_ARCHIVE   0X20

Old DOS archive bit for backup support

#define DIR_ATT_DIRECTORY   0X10

Entry is for a directory

#define DIR_ATT_HIDDEN   0X02

File should hidden in directory listings

#define DIR_ATT_LONG_NAME   0X0F

Test value for long name entry. Test is d->attributes & DIR_ATT_LONG_NAME_MASK) == DIR_ATT_LONG_NAME.

#define DIR_ATT_LONG_NAME_MASK   0X3F

Test mask for long name entry

#define DIR_ATT_READ_ONLY   0X01

file is read-only

#define DIR_ATT_SYSTEM   0X04

Entry is for a system file

#define DIR_ATT_VOLUME_ID   0X08

Directory entry contains the volume label

#define DIR_NAME_0XE5   0X05

escape for name[0] = 0XE5

#define DIR_NAME_DELETED   0XE5

name[0] value for entry that is free after being "deleted"

#define DIR_NAME_FREE   0X00

name[0] value for entry that is free and no allocated entries follow

#define FAT_EOC   0XFFFF

cluster value used to mark end of chain in FAT

#define FAT_LAST_USED   0XFFEF

cluster alue to test for end of chain

#define PART_BOOT_ACTIVE   0X80

Boot indicator for active bootable partition.

#define PART_BOOT_NON_BOOTABLE   0X00

Boot indicator for non-bootable partition

#define PART_TYPE_DOSFAT16   0x04

FAT16 partition or logical drive (32,680–65,535 sectors or 16 MB–33 MB)

#define PART_TYPE_EXTDOSLBA   0x0F

Extended partition using BIOS INT 13h extensions

#define PART_TYPE_EXTENDED   0x05

Extended partition

#define PART_TYPE_FAT12   0x01

FAT12 primary partition or logical drive (fewer than 32,680 sectors in the volume)

#define PART_TYPE_FAT16   0x06

BIGDOS FAT16 partition or logical drive (33 MB–4 GB)

#define PART_TYPE_FAT16LBA   0x0E

BIGDOS FAT16 partition or logical drive using BIOS INT 13h extensions

#define PART_TYPE_FAT32   0x0B

FAT32 partition or logical drive

#define PART_TYPE_FAT32LBA   0x0C

FAT32 partition or logical drive using BIOS INT 13h extensions

#define PART_TYPE_NTFS   0x07

Installable File System (NTFS partition or logical drive)


Typedef Documentation

typedef struct biosPramBlock bpb_t

Type name for biosParmBlock

typedef struct directoryEntry dir_t

Type name for directoryEntry

typedef struct fat16BootSector fbs_t

Type name for fat16BootSector

typedef struct masterBootRecord mbr_t

Type name for masterBootRecord

typedef struct partitionTable part_t

Type name for partitionTable


Generated on Thu Oct 9 08:22:19 2008 for Fat16 by  doxygen 1.5.6