]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/SerialPortLibNull/SerialPortLibNull.c
Removed MdePkg usage of ModuleName: in file headers
[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
15//\r
16// The package level header files this module uses\r
17//\r
7f1c3191 18#include <Base.h>\r
316172ba 19//\r
20// The protocols, PPI and GUID defintions for this module\r
21//\r
22//\r
23// The Library classes this module consumes\r
24//\r
25#include <Library/SerialPortLib.h>\r
26\r
27/*\r
28\r
29 Programmed hardware of Serial port.\r
30\r
31 @return Always return EFI_UNSUPPORTED.\r
32\r
33**/\r
7f1c3191 34RETURN_STATUS\r
316172ba 35EFIAPI\r
36SerialPortInitialize (\r
37 VOID\r
38 )\r
39{\r
7f1c3191 40 return RETURN_UNSUPPORTED;\r
316172ba 41}\r
42\r
43/**\r
44 Write data to serial device.\r
45\r
46 @param Buffer Point of data buffer which need to be writed.\r
47 @param NumberOfBytes Number of output bytes which are cached in Buffer.\r
48\r
49 @retval 0 Write data failed.\r
50 @retval !0 Actual number of bytes writed to serial device.\r
51\r
52**/\r
53UINTN\r
54EFIAPI\r
55SerialPortWrite (\r
56 IN UINT8 *Buffer,\r
57 IN UINTN NumberOfBytes\r
58)\r
59{\r
60 return 0;\r
61}\r
62\r
63\r
64/**\r
65 Read data from serial device and save the datas in buffer.\r
66\r
67 @param Buffer Point of data buffer which need to be writed.\r
68 @param NumberOfBytes Number of output bytes which are cached in Buffer.\r
69\r
70 @retval 0 Read data failed.\r
71 @retval !0 Aactual number of bytes read from serial device.\r
72\r
73**/\r
74UINTN\r
75EFIAPI\r
76SerialPortRead (\r
77 OUT UINT8 *Buffer,\r
78 IN UINTN NumberOfBytes\r
79)\r
80{\r
81 return 0;\r
82}\r
83\r