]>
git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Include/Library/SemihostLib.h
3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
4 Portions copyright (c) 2011, 2012, ARM Ltd. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef SEMIHOSTING_LIB_H_
11 #define SEMIHOSTING_LIB_H_
15 * Please refer to ARM RVDS 3.0 Compiler and Libraries Guide for more information
16 * about the semihosting interface.
20 #define SEMIHOST_FILE_MODE_READ (0 << 2)
21 #define SEMIHOST_FILE_MODE_WRITE (1 << 2)
22 #define SEMIHOST_FILE_MODE_APPEND (2 << 2)
23 #define SEMIHOST_FILE_MODE_UPDATE (1 << 1)
24 #define SEMIHOST_FILE_MODE_BINARY (1 << 0)
25 #define SEMIHOST_FILE_MODE_ASCII (0 << 0)
28 SemihostConnectionSupported (
71 Get a temporary name for a file from the host running the debug agent.
73 @param[out] Buffer Pointer to the buffer where the temporary name has to
75 @param[in] Identifier File name identifier (integer in the range 0 to 255)
76 @param[in] Length Length of the buffer to store the temporary name
78 @retval RETURN_SUCCESS Temporary name returned
79 @retval RETURN_INVALID_PARAMETER Invalid buffer address
80 @retval RETURN_ABORTED Temporary name not returned
96 Rename a specified file.
98 @param[in] FileName Name of the file to rename.
99 @param[in] NewFileName The new name of the file.
101 @retval RETURN_SUCCESS File Renamed
102 @retval RETURN_INVALID_PARAMETER Either the current or the new name is not specified
103 @retval RETURN_ABORTED Rename failed
109 IN CHAR8
*NewFileName
113 SemihostReadCharacter (
118 SemihostWriteCharacter (
123 SemihostWriteString (
129 IN CHAR8
*CommandLine
132 #endif // SEMIHOSTING_LIB_H_