]>
git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/Include/Library/SemihostLib.h
4e4f43d8bd8814a69ce1bba119cb75fa183eb1fd
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 (
82 SemihostReadCharacter (
87 SemihostWriteCharacter (
101 #endif // __SEMIHOSTING_H__