]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/SerialPortLibNull/SerialPortLibNull.c
e98865b40275e9e84873ad930d015297a68caff9
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.
16 // The package level header files this module uses
20 // The protocols, PPI and GUID defintions for this module
23 // The Library classes this module consumes
25 #include <Library/SerialPortLib.h>
29 Programmed hardware of Serial port.
31 @return Always return EFI_UNSUPPORTED.
36 SerialPortInitialize (
40 return RETURN_UNSUPPORTED
;
44 Write data to serial device.
46 @param Buffer Point of data buffer which need to be writed.
47 @param NumberOfBytes Number of output bytes which are cached in Buffer.
49 @retval 0 Write data failed.
50 @retval !0 Actual number of bytes writed to serial device.
57 IN UINTN NumberOfBytes
65 Read data from serial device and save the datas in buffer.
67 @param Buffer Point of data buffer which need to be writed.
68 @param NumberOfBytes Number of output bytes which are cached in Buffer.
70 @retval 0 Read data failed.
71 @retval !0 Aactual number of bytes read from serial device.
78 IN UINTN NumberOfBytes