]>
git.proxmox.com Git - mirror_edk2.git/blob - EmbeddedPkg/Include/Library/GdbSerialLib.h
2 Basic serial IO abstraction for GDB
4 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __GDB_SERIAL_LIB_H__
11 #define __GDB_SERIAL_LIB_H__
14 Sets the baud rate, receive FIFO depth, transmit/receive time out, parity,
15 data buts, and stop bits on a serial device. This call is optional as the serial
16 port will be set up with defaults base on PCD values.
18 @param BaudRate The requested baud rate. A BaudRate value of 0 will use the
19 device's default interface speed.
20 @param Parity The type of parity to use on this serial device. A Parity value of
21 DefaultParity will use the device's default parity value.
22 @param DataBits The number of data bits to use on the serial device. A DataBits
23 value of 0 will use the device's default data bit setting.
24 @param StopBits The number of stop bits to use on this serial device. A StopBits
25 value of DefaultStopBits will use the device's default number of
28 @retval EFI_SUCCESS The device was configured.
29 @retval EFI_DEVICE_ERROR The serial device could not be configured.
42 Check to see if a character is available from GDB. Do not read the character as that is
43 done via GdbGetChar().
45 @return TRUE - Character available
46 @return FALSE - Character not available
56 Get a character from GDB. This function must be able to run in interrupt context.
58 @return A character from GDB
68 Send a character to GDB. This function must be able to run in interrupt context.
71 @param Char Send a character to GDB
82 Send an ASCII string to GDB. This function must be able to run in interrupt context.
85 @param String Send a string to GDB