]>
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 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef __SEMIHOSTING_H__
17 #define __SEMIHOSTING_H__
21 * Please refer to ARM RVDS 3.0 Compiler and Libraries Guide for more information
22 * about the semihosting interface.
26 #define SEMIHOST_FILE_MODE_READ (0 << 2)
27 #define SEMIHOST_FILE_MODE_WRITE (1 << 2)
28 #define SEMIHOST_FILE_MODE_APPEND (2 << 2)
29 #define SEMIHOST_FILE_MODE_UPDATE (1 << 1)
30 #define SEMIHOST_FILE_MODE_BINARY (1 << 0)
31 #define SEMIHOST_FILE_MODE_ASCII (0 << 0)
34 SemihostConnectionSupported (
77 Get a temporary name for a file from the host running the debug agent.
79 @param[out] Buffer Pointer to the buffer where the temporary name has to
81 @param[in] Identifier File name identifier (integer in the range 0 to 255)
82 @param[in] Length Length of the buffer to store the temporary name
84 @retval RETURN_SUCCESS Temporary name returned
85 @retval RETURN_INVALID_PARAMETER Invalid buffer address
86 @retval RETURN_ABORTED Temporary name not returned
102 Rename a specified file.
104 @param[in] FileName Name of the file to rename.
105 @param[in] NewFileName The new name of the file.
107 @retval RETURN_SUCCESS File Renamed
108 @retval RETURN_INVALID_PARAMETER Either the current or the new name is not specified
109 @retval RETURN_ABORTED Rename failed
115 IN CHAR8
*NewFileName
119 SemihostReadCharacter (
124 SemihostWriteCharacter (
129 SemihostWriteString (
135 IN CHAR8
*CommandLine
138 #endif // __SEMIHOSTING_H__