]>
Commit | Line | Data |
---|---|---|
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 | |
17 | /**\r | |
18 | \r | |
19 | Programmed hardware of Serial port.\r | |
20 | \r | |
21 | **/\r | |
22 | EFI_STATUS\r | |
23 | EFIAPI\r | |
24 | SerialPortInitialize (\r | |
25 | VOID\r | |
26 | )\r | |
27 | {\r | |
28 | return EFI_UNSUPPORTED;\r | |
29 | }\r | |
30 | \r | |
31 | /**\r | |
32 | Write data to serial device. \r | |
33 | \r | |
34 | If the buffer is NULL, then ASSERT(); \r | |
35 | if NumberOfBytes is zero, then ASSERT(). \r | |
36 | \r | |
37 | @param Buffer Point of data buffer which need to be writed.\r | |
38 | @param NumberOfBytes Number of output bytes which are cached in Buffer.\r | |
39 | \r | |
40 | @retval 0 Write data failed.\r | |
41 | @retval !0 Actual number of bytes writed to serial device.\r | |
42 | \r | |
43 | **/\r | |
44 | UINTN\r | |
45 | EFIAPI\r | |
46 | SerialPortWrite (\r | |
47 | IN UINT8 *Buffer,\r | |
48 | IN UINTN NumberOfBytes\r | |
49 | )\r | |
50 | {\r | |
51 | return 0;\r | |
52 | }\r | |
53 | \r | |
54 | \r | |
55 | /**\r | |
56 | Read data from serial device and save the datas in buffer.\r | |
57 | \r | |
58 | If the buffer is NULL, then ASSERT(); \r | |
59 | if NumberOfBytes is zero, then ASSERT(). \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 | |
68 | UINTN\r | |
69 | EFIAPI\r | |
70 | SerialPortRead (\r | |
71 | OUT UINT8 *Buffer,\r | |
72 | IN UINTN NumberOfBytes\r | |
73 | )\r | |
74 | {\r | |
75 | return 0;\r | |
76 | }\r | |
77 | \r |