]>
Commit | Line | Data |
---|---|---|
56836fe9 | 1 | \r |
2 | /** @file\r | |
3 | Serial I/O status code reporting worker.\r | |
4 | \r | |
161c26a7 | 5 | Copyright (c) 2006, Intel Corporation \r |
6 | All rights reserved. This program and the accompanying materials \r | |
7 | are licensed and made available under the terms and conditions of the BSD License \r | |
8 | which accompanies this distribution. The full text of the license may be found at \r | |
9 | http://opensource.org/licenses/bsd-license.php \r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
56836fe9 | 13 | \r |
14 | Module Name: SerialStatusCodeWorker.c\r | |
15 | \r | |
16 | **/\r | |
17 | \r | |
a93763b7 | 18 | STATIC\r |
19 | EFI_SERIAL_IO_PROTOCOL *mSerialIoProtocol;\r | |
56836fe9 | 20 | \r |
21 | /**\r | |
22 | Initialize serial status code worker.\r | |
23 | \r | |
24 | @return The function always return EFI_SUCCESS\r | |
25 | \r | |
26 | **/\r | |
27 | EFI_STATUS\r | |
28 | EfiSerialStatusCodeInitializeWorker (\r | |
29 | VOID\r | |
30 | )\r | |
31 | {\r | |
32 | EFI_STATUS Status;\r | |
33 | \r | |
34 | Status = gBS->LocateProtocol (\r | |
53408952 | 35 | &gEfiSerialIoProtocolGuid,\r |
36 | NULL,\r | |
37 | (VOID **) &mSerialIoProtocol\r | |
38 | );\r | |
56836fe9 | 39 | \r |
40 | ASSERT_EFI_ERROR (Status);\r | |
41 | \r | |
42 | return EFI_SUCCESS;\r | |
43 | }\r | |
44 | \r | |
45 | \r | |
46 | /**\r | |
47 | Convert status code value and extended data to readable ASCII string, send string to serial I/O device.\r | |
48 | \r | |
49 | Content-type: text/html ]>