]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Platform/Generic/RuntimeDxe/StatusCode/Lib/RtPort80StatusCode/RtPort80StatusCode.c
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Platform / Generic / RuntimeDxe / StatusCode / Lib / RtPort80StatusCode / RtPort80StatusCode.c
CommitLineData
b38907a6 1/*++\r
2\r
4b1e1121
HT
3Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
b38907a6 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 \r
14 RtPort80StatusCode.c\r
15 \r
16Abstract:\r
17\r
18 Lib to provide port 80 status code reporting Routines. This routine\r
19 does not use PPI's but is monolithic.\r
20\r
21 In general you should use PPI's, but some times a monolithic driver\r
22 is better. The best justification for monolithic code is debug.\r
23\r
24--*/\r
25\r
26#include "RtPort80StatusCode.h"\r
27\r
28EFI_STATUS\r
29EFIAPI\r
30RtPort80ReportStatusCode (\r
31 IN EFI_STATUS_CODE_TYPE CodeType,\r
32 IN EFI_STATUS_CODE_VALUE Value,\r
33 IN UINT32 Instance,\r
34 IN EFI_GUID * CallerId,\r
35 IN EFI_STATUS_CODE_DATA * Data OPTIONAL\r
36 )\r
37/*++\r
38\r
39Routine Description:\r
40\r
41 Provide a port 80 status code\r
42\r
43Arguments:\r
44\r
45 Same as ReportStatusCode PPI\r
46 \r
47Returns:\r
48\r
49 EFI_SUCCESS Always returns success.\r
50\r
51--*/\r
52{\r
53 UINT8 Port80Code;\r
54\r
55 //\r
56 // Progress or error code, Output Port 80h card\r
57 //\r
58 if (CodeTypeToPostCode (CodeType, Value, &Port80Code)) {\r
59 IoWrite8 (0x80, Port80Code);\r
60 }\r
61\r
62 return EFI_SUCCESS;\r
63}\r