3 Copyright (c) 2012, ARM Ltd. All rights reserved.
5 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 __SERIAL_PORT_EXT_LIB_H__
16 #define __SERIAL_PORT_EXT_LIB_H__
18 #include <Uefi/UefiBaseType.h>
19 #include <Protocol/SerialIo.h>
22 Set the serial device control bits.
24 @return Always return EFI_UNSUPPORTED.
29 SerialPortSetControl (
34 Get the serial device control bits.
36 @param Control Control signals read from the serial device.
38 @retval EFI_SUCCESS The control bits were read from the serial device.
39 @retval EFI_DEVICE_ERROR The serial device is not functioning correctly.
44 SerialPortGetControl (
49 Set the serial device attributes.
51 @return Always return EFI_UNSUPPORTED.
56 SerialPortSetAttributes (
58 IN UINT32 ReceiveFifoDepth
,
60 IN EFI_PARITY_TYPE Parity
,
62 IN EFI_STOP_BITS_TYPE StopBits