]> git.proxmox.com Git - mirror_edk2.git/blobdiff - FatPkg/EnhancedFatDxe/FatFileSystem.h
UefiCpuPkg/PiSmmCpuDxeSmm: patch "gSmiStack" with PatchInstructionX86()
[mirror_edk2.git] / FatPkg / EnhancedFatDxe / FatFileSystem.h
index bcef25836aa9c6776b3c363276164d083bb56bcf..80cb802b0866c53285d35d1a0e3aaff81a422c5a 100644 (file)
@@ -1,6 +1,7 @@
-/*++\r
+/** @file\r
+  Definitions for on-disk FAT structures.\r
 \r
-Copyright (c) 2005, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available\r
 under the terms and conditions of the BSD License which accompanies this\r
 distribution. The full text of the license may be found at\r
@@ -10,17 +11,7 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 \r
-Module Name:\r
-\r
-  FatFileSystem.h\r
-\r
-Abstract:\r
-\r
-  Definitions for on-disk FAT structures\r
-\r
-Revision History\r
-\r
---*/\r
+**/\r
 \r
 #ifndef _FATFILESYSTEM_H_\r
 #define _FATFILESYSTEM_H_\r
@@ -35,7 +26,7 @@ Revision History
 //\r
 // FAT entry values\r
 //\r
-#define FAT_CLUSTER_SPECIAL_EXT       (-1 & (~0xF))\r
+#define FAT_CLUSTER_SPECIAL_EXT       (MAX_UINTN & (~0xF))\r
 #define FAT_CLUSTER_SPECIAL           ((FAT_CLUSTER_SPECIAL_EXT) | 0x07)\r
 #define FAT_CLUSTER_FREE              0\r
 #define FAT_CLUSTER_RESERVED          (FAT_CLUSTER_SPECIAL)\r
@@ -146,12 +137,14 @@ typedef struct {
   CHAR8   SystemId[8];\r
 } FAT32_BOOT_SECTOR_EXT;\r
 \r
-typedef struct {\r
-  FAT_BOOT_SECTOR_BASIC   FatBsb;\r
-  union {\r
+typedef union {\r
     FAT_BOOT_SECTOR_EXT   FatBse;\r
     FAT32_BOOT_SECTOR_EXT Fat32Bse;\r
-  } FatBse;\r
+  } FAT_BSE;\r
+\r
+typedef struct {\r
+  FAT_BOOT_SECTOR_BASIC   FatBsb;\r
+  FAT_BSE  FatBse;\r
 } FAT_BOOT_SECTOR;\r
 \r
 //\r