+++ /dev/null
-/** @file\r
- Debug functions for fat driver\r
-\r
-Copyright (c) 2005, 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
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#include "Fat.h"\r
-\r
-/**\r
-\r
- Dump all the FAT Entry of the FAT table in the volume.\r
-\r
- @param Volume - The volume whose FAT info will be dumped\r
-\r
-**/\r
-VOID\r
-FatDumpFatTable (\r
- IN FAT_VOLUME *Volume\r
- )\r
-{\r
- UINTN EntryValue;\r
- UINTN MaxIndex;\r
- UINTN Index;\r
- CHAR16 *Pointer;\r
-\r
- MaxIndex = Volume->MaxCluster + 2;\r
-\r
- Print (L"Dump of Fat Table, MaxCluster %x\n", MaxIndex);\r
- for (Index = 0; Index < MaxIndex; Index++) {\r
- EntryValue = FatGetFatEntry (Volume, Index);\r
- if (EntryValue != FAT_CLUSTER_FREE) {\r
- Pointer = NULL;\r
- switch (EntryValue) {\r
- case FAT_CLUSTER_RESERVED:\r
- Pointer = L"RESREVED";\r
- break;\r
-\r
- case FAT_CLUSTER_BAD:\r
- Pointer = L"BAD";\r
- break;\r
- }\r
-\r
- if (FAT_END_OF_FAT_CHAIN (EntryValue)) {\r
- Pointer = L"LAST";\r
- }\r
-\r
- if (Pointer != NULL) {\r
- Print (L"Entry %x = %s\n", Index, Pointer);\r
- } else {\r
- Print (L"Entry %x = %x\n", Index, EntryValue);\r
- }\r
- }\r
- }\r
-}\r