]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkModulePkg/Include/Library/SerialPortLib.h
3 Serial I/O Port library functions with no library constructor/destructor
5 Copyright (c) 2006, Intel Corporation
6 All rights reserved. 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.
14 Module Name: SerialPortLib.h
18 #ifndef __SERIAL_PORT_LIB__
19 #define __SERIAL_PORT_LIB__
23 Programmed hardware of Serial port.
25 @return Status of Serial Port Device initialization.
30 SerialPortInitialize (
35 Write data to serial device.
37 If the buffer is NULL, then ASSERT();
38 if NumberOfBytes is zero, then ASSERT().
40 @param Buffer Point of data buffer which need to be writed.
41 @param NumberOfBytes Number of output bytes which are cached in Buffer.
43 @retval 0 Write data failed.
44 @retval !0 Actual number of bytes writed to serial device.
51 IN UINTN NumberOfBytes
56 Read data from serial device and save the datas in buffer.
58 If the buffer is NULL, then ASSERT();
59 if NumberOfBytes is zero, then ASSERT().
61 @param Buffer Point of data buffer which need to be writed.
62 @param NumberOfBytes Number of output bytes which are cached in Buffer.
64 @retval 0 Read data failed.
65 @retval !0 Aactual number of bytes read from serial device.
72 IN UINTN NumberOfBytes