VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Library/BaseSerialPortLibRiscVSbiLib/Common.h

Last change on this file was 101291, checked in by vboxsync, 19 months ago

EFI/FirmwareNew: Make edk2-stable202308 build on all supported platforms (using gcc at least, msvc not tested yet), bugref:4643

  • Property svn:eol-style set to native
File size: 741 bytes
Line 
1/** @file
2 Serial Port Library backed by SBI console.
3
4 Common functionality shared by PrePiDxeSerialPortLibRiscVSbi and
5 PrePiDxeSerialPortLibRiscVSbiRam implementations.
6
7 Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
8 SPDX-License-Identifier: BSD-2-Clause-Patent
9
10**/
11
12#ifndef SERIAL_PORT_SBI_COMMON_H_
13#define SERIAL_PORT_SBI_COMMON_H_
14
15#include <Base.h>
16#include <Library/SerialPortLib.h>
17#include <Library/BaseRiscVSbiLib.h>
18
19BOOLEAN
20SbiImplementsDbcn (
21 VOID
22 );
23
24BOOLEAN
25SbiImplementsLegacyPutchar (
26 VOID
27 );
28
29UINTN
30SbiLegacyPutchar (
31 IN UINT8 *Buffer,
32 IN UINTN NumberOfBytes
33 );
34
35UINTN
36SbiDbcnWrite (
37 IN UINT8 *Buffer,
38 IN UINTN NumberOfBytes
39 );
40
41#endif /* SERIAL_PORT_SBI_COMMON_H_ */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette