TianoCore EDK2 master
Loading...
Searching...
No Matches
FatLiteFmt.h File Reference

Go to the source code of this file.

Data Structures

struct  FAT_DATE
 
struct  FAT_TIME
 
struct  FAT_DATE_TIME
 
struct  FAT_DIRECTORY_ENTRY
 
struct  PEI_FAT_BOOT_SECTOR
 
struct  PEI_FAT_BOOT_SECTOR_EX
 

Macros

#define FAT_ATTR_READ_ONLY   0x01
 
#define FAT_ATTR_HIDDEN   0x02
 
#define FAT_ATTR_SYSTEM   0x04
 
#define FAT_ATTR_VOLUME_ID   0x08
 
#define FAT_ATTR_DIRECTORY   0x10
 
#define FAT_ATTR_ARCHIVE   0x20
 
#define FAT_ATTR_LFN   (FAT_ATTR_READ_ONLY | FAT_ATTR_HIDDEN | FAT_ATTR_SYSTEM | FAT_ATTR_VOLUME_ID)
 
#define FAT_CLUSTER_SPECIAL   ((MAX_UINT32 &~0xF) | 0x7)
 
#define FAT_CLUSTER_FREE   0
 
#define FAT_CLUSTER_RESERVED   (FAT_CLUSTER_SPECIAL)
 
#define FAT_CLUSTER_BAD   (FAT_CLUSTER_SPECIAL)
 
#define FAT_CLUSTER_LAST   (-1)
 
#define DELETE_ENTRY_MARK   0xE5
 
#define EMPTY_ENTRY_MARK   0x00
 
#define FAT_CLUSTER_FUNCTIONAL(Cluster)   (((Cluster) == 0) || ((Cluster) >= FAT_CLUSTER_SPECIAL))
 
#define FAT_CLUSTER_END_OF_CHAIN(Cluster)   ((Cluster) > (FAT_CLUSTER_SPECIAL))
 

Detailed Description

FAT format data structures

Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file FatLiteFmt.h.

Macro Definition Documentation

◆ DELETE_ENTRY_MARK

#define DELETE_ENTRY_MARK   0xE5

Definition at line 30 of file FatLiteFmt.h.

◆ EMPTY_ENTRY_MARK

#define EMPTY_ENTRY_MARK   0x00

Definition at line 31 of file FatLiteFmt.h.

◆ FAT_ATTR_ARCHIVE

#define FAT_ATTR_ARCHIVE   0x20

Definition at line 21 of file FatLiteFmt.h.

◆ FAT_ATTR_DIRECTORY

#define FAT_ATTR_DIRECTORY   0x10

Definition at line 20 of file FatLiteFmt.h.

◆ FAT_ATTR_HIDDEN

#define FAT_ATTR_HIDDEN   0x02

Definition at line 17 of file FatLiteFmt.h.

◆ FAT_ATTR_LFN

#define FAT_ATTR_LFN   (FAT_ATTR_READ_ONLY | FAT_ATTR_HIDDEN | FAT_ATTR_SYSTEM | FAT_ATTR_VOLUME_ID)

Definition at line 22 of file FatLiteFmt.h.

◆ FAT_ATTR_READ_ONLY

#define FAT_ATTR_READ_ONLY   0x01

Definition at line 16 of file FatLiteFmt.h.

◆ FAT_ATTR_SYSTEM

#define FAT_ATTR_SYSTEM   0x04

Definition at line 18 of file FatLiteFmt.h.

◆ FAT_ATTR_VOLUME_ID

#define FAT_ATTR_VOLUME_ID   0x08

Definition at line 19 of file FatLiteFmt.h.

◆ FAT_CLUSTER_BAD

#define FAT_CLUSTER_BAD   (FAT_CLUSTER_SPECIAL)

Definition at line 27 of file FatLiteFmt.h.

◆ FAT_CLUSTER_END_OF_CHAIN

#define FAT_CLUSTER_END_OF_CHAIN (   Cluster)    ((Cluster) > (FAT_CLUSTER_SPECIAL))

Definition at line 34 of file FatLiteFmt.h.

◆ FAT_CLUSTER_FREE

#define FAT_CLUSTER_FREE   0

Definition at line 25 of file FatLiteFmt.h.

◆ FAT_CLUSTER_FUNCTIONAL

#define FAT_CLUSTER_FUNCTIONAL (   Cluster)    (((Cluster) == 0) || ((Cluster) >= FAT_CLUSTER_SPECIAL))

Definition at line 33 of file FatLiteFmt.h.

◆ FAT_CLUSTER_LAST

#define FAT_CLUSTER_LAST   (-1)

Definition at line 28 of file FatLiteFmt.h.

◆ FAT_CLUSTER_RESERVED

#define FAT_CLUSTER_RESERVED   (FAT_CLUSTER_SPECIAL)

Definition at line 26 of file FatLiteFmt.h.

◆ FAT_CLUSTER_SPECIAL

#define FAT_CLUSTER_SPECIAL   ((MAX_UINT32 &~0xF) | 0x7)

Definition at line 24 of file FatLiteFmt.h.