3 Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Lib to provide port 80 status code reporting Routines. This routine
19 does not use PPI's but is monolithic.
21 In general you should use PPI's, but some times a monolithic driver
22 is better. The best justification for monolithic code is debug.
26 #include "RtPort80StatusCode.h"
30 RtPort80ReportStatusCode (
31 IN EFI_STATUS_CODE_TYPE CodeType
,
32 IN EFI_STATUS_CODE_VALUE Value
,
34 IN EFI_GUID
* CallerId
,
35 IN EFI_STATUS_CODE_DATA
* Data OPTIONAL
41 Provide a port 80 status code
45 Same as ReportStatusCode PPI
49 EFI_SUCCESS Always returns success.
56 // Progress or error code, Output Port 80h card
58 if (CodeTypeToPostCode (CodeType
, Value
, &Port80Code
)) {
59 IoWrite8 (0x80, Port80Code
);