]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/SerialPortLibNull/SerialPortLibNull.c
remove some comments introduced by tools.
[mirror_edk2.git] / MdePkg / Library / SerialPortLibNull / SerialPortLibNull.c
CommitLineData
316172ba 1/** @file\r
2 Serial I/O Port library functions with no library constructor/destructor\r
3\r
4 Copyright (c) 2006, Intel Corporation\r
5 All rights reserved. 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
316172ba 13**/\r
14\r
c892d846 15\r
7f1c3191 16#include <Base.h>\r
c892d846 17\r
18\r
316172ba 19#include <Library/SerialPortLib.h>\r
20\r
21/*\r
22\r
23 Programmed hardware of Serial port.\r
24\r
25 @return Always return EFI_UNSUPPORTED.\r
26\r
27**/\r
7f1c3191 28RETURN_STATUS\r
316172ba 29EFIAPI\r
30SerialPortInitialize (\r
31 VOID\r
32 )\r
33{\r
7f1c3191 34 return RETURN_UNSUPPORTED;\r
316172ba 35}\r
36\r
37/**\r
38 Write data to serial device.\r
39\r
40 @param Buffer Point of data buffer which need to be writed.\r
41 @param NumberOfBytes Number of output bytes which are cached in Buffer.\r
42\r
43 @retval 0 Write data failed.\r
44 @retval !0 Actual number of bytes writed to serial device.\r
45\r
46**/\r
47UINTN\r
48EFIAPI\r
49SerialPortWrite (\r
50 IN UINT8 *Buffer,\r
51 IN UINTN NumberOfBytes\r
52)\r
53{\r
54 return 0;\r
55}\r
56\r
57\r
58/**\r
59 Read data from serial device and save the datas in buffer.\r
60\r
61 @param Buffer Point of data buffer which need to be writed.\r
62 @param NumberOfBytes Number of output bytes which are cached in Buffer.\r
63\r
64 @retval 0 Read data failed.\r
65 @retval !0 Aactual number of bytes read from serial device.\r
66\r
67**/\r
68UINTN\r
69EFIAPI\r
70SerialPortRead (\r
71 OUT UINT8 *Buffer,\r
72 IN UINTN NumberOfBytes\r
73)\r
74{\r
75 return 0;\r
76}\r
77\r