]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Library/EdkSerialPortLibNull/SerialPortLibNull.c
2 Serial I/O Port library functions with no library constructor/destructor
4 Copyright (c) 2006, Intel Corporation
5 All rights reserved. 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.
13 Module Name: SerialPortLibNull.c
18 // The package level header files this module uses
20 #include <FrameworkPei.h>
22 // The protocols, PPI and GUID defintions for this module
25 // The Library classes this module consumes
27 #include <Library/SerialPortLib.h>
31 Programmed hardware of Serial port.
33 @return Always return EFI_UNSUPPORTED.
38 SerialPortInitialize (
42 return EFI_UNSUPPORTED
;
46 Write data to serial device.
48 @param Buffer Point of data buffer which need to be writed.
49 @param NumberOfBytes Number of output bytes which are cached in Buffer.
51 @retval 0 Write data failed.
52 @retval !0 Actual number of bytes writed to serial device.
59 IN UINTN NumberOfBytes
67 Read data from serial device and save the datas in buffer.
69 @param Buffer Point of data buffer which need to be writed.
70 @param NumberOfBytes Number of output bytes which are cached in Buffer.
72 @retval 0 Read data failed.
73 @retval !0 Aactual number of bytes read from serial device.
80 IN UINTN NumberOfBytes