3 Copyright 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
35 UINT16 BPB_BytsPerSec
;
37 UINT16 BPB_RsvdSecCnt
;
39 UINT16 BPB_RootEntCnt
;
49 // Fat12/16 specific field
56 CHAR8 BS_FilSysType
[8];
64 // Fat common signature - 0xAA55
67 } FAT12_16_BPB_STRUCT
;
75 UINT16 BPB_BytsPerSec
;
77 UINT16 BPB_RsvdSecCnt
;
79 UINT16 BPB_RootEntCnt
;
89 // Fat32 specific field
97 UINT8 BPB_Reserved
[12];
103 CHAR8 BS_FilSysType
[8];
106 // Boot Code and Data
111 // Fat common signature - 0xAA55
117 FAT12_16_BPB_STRUCT Fat12_16
;
118 FAT32_BPB_STRUCT Fat32
;
133 UINT8 DIR_CrtTimeTenth
;
136 UINT16 DIR_LstAccDate
;
137 UINT16 DIR_FstClusHI
;
140 UINT16 DIR_FstClusLO
;
142 } FAT_DIRECTORY_ENTRY
;
146 #define FAT_MAX_FAT12_CLUSTER 0xFF5
147 #define FAT_MAX_FAT16_CLUSTER 0xFFF5
149 #define FAT_BS_SIGNATURE 0xAA55
150 #define FAT_BS_BOOTSIG 0x29
151 #define FAT_BS_JMP1 0xEB
152 #define FAT_BS_JMP2 0xE9
153 #define FAT_FILSYSTYPE "FAT "
154 #define FAT12_FILSYSTYPE "FAT12 "
155 #define FAT16_FILSYSTYPE "FAT16 "
156 #define FAT32_FILSYSTYPE "FAT32 "