]> git.proxmox.com Git - mirror_edk2.git/blame - EmbeddedPkg/Include/Library/SerialPortExtLib.h
ARM Packages: Corrected non-DOS line endings
[mirror_edk2.git] / EmbeddedPkg / Include / Library / SerialPortExtLib.h
CommitLineData
1e57a462 1/** @file\r
2\r
3 Copyright (c) 2012, ARM Ltd. All rights reserved.\r
4 \r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __SERIAL_PORT_EXT_LIB_H__\r
16#define __SERIAL_PORT_EXT_LIB_H__\r
17\r
18#include <Uefi/UefiBaseType.h>\r
19#include <Protocol/SerialIo.h>\r
20\r
21/**\r
22 Set the serial device control bits.\r
23\r
24 @return Always return EFI_UNSUPPORTED.\r
25\r
26**/\r
27RETURN_STATUS\r
28EFIAPI\r
29SerialPortSetControl (\r
30 IN UINT32 Control\r
31 );\r
32\r
33/**\r
34 Get the serial device control bits.\r
35\r
36 @param Control Control signals read from the serial device.\r
37\r
38 @retval EFI_SUCCESS The control bits were read from the serial device.\r
39 @retval EFI_DEVICE_ERROR The serial device is not functioning correctly.\r
40\r
41**/\r
42RETURN_STATUS\r
43EFIAPI\r
44SerialPortGetControl (\r
45 OUT UINT32 *Control\r
46 );\r
47\r
48/**\r
49 Set the serial device attributes.\r
50\r
51 @return Always return EFI_UNSUPPORTED.\r
52\r
53**/\r
54RETURN_STATUS\r
55EFIAPI\r
56SerialPortSetAttributes (\r
15e277d5 57 IN OUT UINT64 *BaudRate,\r
58 IN OUT UINT32 *ReceiveFifoDepth,\r
59 IN OUT UINT32 *Timeout,\r
60 IN OUT EFI_PARITY_TYPE *Parity,\r
61 IN OUT UINT8 *DataBits,\r
62 IN OUT EFI_STOP_BITS_TYPE *StopBits\r
1e57a462 63 );\r
64\r
65#endif\r
66\r