-/*++\r
+/** @file\r
\r
-Copyright (c) 2007, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
+Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\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
-Module Name:\r
+**/\r
\r
- EdbSupportFile.c\r
-\r
-Abstract:\r
+#include "Edb.h"\r
\r
+/**\r
+ Read a file.\r
\r
---*/\r
+ @param Vol - File System Volume\r
+ @param FileName - The file to be read.\r
+ @param BufferSize - The file buffer size\r
+ @param Buffer - The file buffer\r
\r
-#include "Edb.h"\r
+ @retval EFI_SUCCESS - read file successfully\r
+ @retval EFI_NOT_FOUND - file not found\r
\r
+**/\r
EFI_STATUS\r
EFIAPI\r
ReadFileFromVol (\r
OUT UINTN *BufferSize,\r
OUT VOID **Buffer\r
)\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Read a file.\r
-\r
-Arguments:\r
-\r
- Vol - File System Volume\r
- FileName - The file to be read.\r
- BufferSize - The file buffer size\r
- Buffer - The file buffer\r
-\r
-Returns:\r
-\r
- EFI_SUCCESS - read file successfully\r
- EFI_NOT_FOUND - file not found\r
-\r
---*/\r
{\r
EFI_STATUS Status;\r
EFI_FILE_HANDLE RootDir;\r
return EFI_SUCCESS;\r
}\r
\r
+/**\r
+\r
+ Read a file.\r
+ If ScanFs is FLASE, it will use DebuggerPrivate->Vol as default Fs.\r
+ If ScanFs is TRUE, it will scan all FS and check the file.\r
+ If there is only one file match the name, it will be read.\r
+ If there is more than one file match the name, it will return Error.\r
+\r
+ @param DebuggerPrivate - EBC Debugger private data structure\r
+ @param FileName - The file to be read.\r
+ @param BufferSize - The file buffer size\r
+ @param Buffer - The file buffer\r
+ @param ScanFs - Need Scan all FS\r
+\r
+ @retval EFI_SUCCESS - read file successfully\r
+ @retval EFI_NOT_FOUND - file not found\r
+ @retval EFI_NO_MAPPING - there is duplicated files found\r
+\r
+**/\r
EFI_STATUS\r
EFIAPI\r
ReadFileToBuffer (\r
OUT VOID **Buffer,\r
IN BOOLEAN ScanFs\r
)\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Read a file.\r
- If ScanFs is FLASE, it will use DebuggerPrivate->Vol as default Fs.\r
- If ScanFs is TRUE, it will scan all FS and check the file.\r
- If there is only one file match the name, it will be read.\r
- If there is more than one file match the name, it will return Error.\r
-\r
-Arguments:\r
-\r
- DebuggerPrivate - EBC Debugger private data structure\r
- FileName - The file to be read.\r
- BufferSize - The file buffer size\r
- Buffer - The file buffer\r
- ScanFs - Need Scan all FS\r
-\r
-Returns:\r
-\r
- EFI_SUCCESS - read file successfully\r
- EFI_NOT_FOUND - file not found\r
- EFI_NO_MAPPING - there is duplicated files found\r
-\r
---*/\r
{\r
EFI_STATUS Status;\r
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *Vol;\r
return EFI_SUCCESS;\r
}\r
\r
+/**\r
+\r
+ Get file name under this dir with index\r
+\r
+ @param DebuggerPrivate - EBC Debugger private data structure\r
+ @param DirName - The dir to be read.\r
+ @param FileName - The file name pattern under this dir\r
+ @param Index - The file index under this dir\r
+\r
+ @return File Name which match the pattern and index.\r
+\r
+**/\r
CHAR16 *\r
EFIAPI\r
GetFileNameUnderDir (\r
IN CHAR16 *FileName,\r
IN OUT UINTN *Index\r
)\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Get file name under this dir with index\r
-\r
-Arguments:\r
-\r
- DebuggerPrivate - EBC Debugger private data structure\r
- DirName - The dir to be read.\r
- FileName - The file name pattern under this dir\r
- Index - The file index under this dir\r
-\r
-Returns:\r
-\r
- File Name which match the pattern and index.\r
-\r
---*/\r
{\r
EFI_STATUS Status;\r
EFI_FILE_HANDLE RootDir;\r