]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Library/EdkSerialPortLibNull/SerialPortLibNull.c
Ensure the validity of Ffs Sections when adding a new Sections to Ffs.
[mirror_edk2.git] / EdkModulePkg / Library / EdkSerialPortLibNull / SerialPortLibNull.c
CommitLineData
56836fe9 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
13 Module Name: SerialPortLibNull.c\r
14\r
15**/\r
16\r
e86976ff 17/*\r
56836fe9 18\r
19 Programmed hardware of Serial port.\r
20\r
e86976ff 21 @return Always return EFI_UNSUPPORTED.\r
22\r
56836fe9 23**/\r
24EFI_STATUS\r
25EFIAPI\r
26SerialPortInitialize (\r
27 VOID\r
28 )\r
29{\r
30 return EFI_UNSUPPORTED;\r
31}\r
32\r
33/**\r
34 Write data to serial device. \r
35 \r
56836fe9 36 @param Buffer Point of data buffer which need to be writed.\r
37 @param NumberOfBytes Number of output bytes which are cached in Buffer.\r
38\r
39 @retval 0 Write data failed.\r
40 @retval !0 Actual number of bytes writed to serial device.\r
41\r
42**/\r
43UINTN\r
44EFIAPI\r
45SerialPortWrite (\r
53408952 46 IN UINT8 *Buffer,\r
47 IN UINTN NumberOfBytes\r
56836fe9 48)\r
49{\r
50 return 0;\r
51}\r
52\r
53\r
54/**\r
55 Read data from serial device and save the datas in buffer.\r
56 \r
56836fe9 57 @param Buffer Point of data buffer which need to be writed.\r
58 @param NumberOfBytes Number of output bytes which are cached in Buffer.\r
59\r
60 @retval 0 Read data failed.\r
61 @retval !0 Aactual number of bytes read from serial device.\r
62\r
63**/\r
64UINTN\r
65EFIAPI\r
66SerialPortRead (\r
53408952 67 OUT UINT8 *Buffer,\r
68 IN UINTN NumberOfBytes\r
56836fe9 69)\r
70{\r
71 return 0;\r
72}\r
73\r