2 Extended Serial I/O Port library functions
4 Copyright (c) 2012, ARM Ltd. All rights reserved.
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.
18 #include <Library/SerialPortLib.h>
19 #include <Library/SerialPortExtLib.h>
22 Set the serial device control bits.
24 @return Always return RETURN_UNSUPPORTED.
29 SerialPortSetControl (
33 return RETURN_UNSUPPORTED
;
37 Get the serial device control bits.
39 @param Control Control signals read from the serial device.
41 @retval EFI_SUCCESS The control bits were read from the serial device.
42 @retval EFI_DEVICE_ERROR The serial device is not functioning correctly.
47 SerialPortGetControl (
51 if (SerialPortPoll ()) {
52 // If a character is pending don't set EFI_SERIAL_INPUT_BUFFER_EMPTY
53 *Control
= EFI_SERIAL_OUTPUT_BUFFER_EMPTY
;
55 *Control
= EFI_SERIAL_INPUT_BUFFER_EMPTY
| EFI_SERIAL_OUTPUT_BUFFER_EMPTY
;
57 return RETURN_SUCCESS
;
61 Set the serial device attributes.
63 @return Always return RETURN_UNSUPPORTED.
68 SerialPortSetAttributes (
69 IN OUT UINT64
*BaudRate
,
70 IN OUT UINT32
*ReceiveFifoDepth
,
71 IN OUT UINT32
*Timeout
,
72 IN OUT EFI_PARITY_TYPE
*Parity
,
73 IN OUT UINT8
*DataBits
,
74 IN OUT EFI_STOP_BITS_TYPE
*StopBits
77 return RETURN_UNSUPPORTED
;