]>
git.proxmox.com Git - mirror_edk2.git/blob - Library/SemihostLib.h
3 Copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef __SEMIHOSTING_H__
16 #define __SEMIHOSTING_H__
20 * Please refer to ARM RVDS 3.0 Compiler and Libraries Guide for more information
21 * about the semihosting interface.
25 #define SEMIHOST_FILE_MODE_READ (0 << 2)
26 #define SEMIHOST_FILE_MODE_WRITE (1 << 2)
27 #define SEMIHOST_FILE_MODE_APPEND (2 << 2)
28 #define SEMIHOST_FILE_MODE_CREATE (1 << 1)
29 #define SEMIHOST_FILE_MODE_BINARY (1 << 0)
30 #define SEMIHOST_FILE_MODE_ASCII (0 << 0)
33 SemihostConnectionSupported (
41 OUT UINT32
*FileHandle
53 IN OUT UINT32
*Length
,
60 IN OUT UINT32
*Length
,
81 SemihostReadCharacter (
86 SemihostWriteCharacter (
100 #endif // __SEMIHOSTING_H__