]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Include/Library/OemHookStatusCodeLib.h
Update header file comments.
[mirror_edk2.git] / IntelFrameworkModulePkg / Include / Library / OemHookStatusCodeLib.h
1 /** @file
2 OEM hook status code library. Platform can implement an instance to
3 initialize the OEM devices to report status code information.
4
5 Copyright (c) 2006 - 2009, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #ifndef __OEM_HOOK_STATUSCODE_LIB__
17 #define __OEM_HOOK_STATUSCODE_LIB__
18
19 /**
20
21 Initialize OEM status code device .
22
23
24 @return Status of initialization of OEM status code device.
25
26 **/
27 EFI_STATUS
28 EFIAPI
29 OemHookStatusCodeInitialize (
30 VOID
31 );
32
33 /**
34 Report status code to OEM device.
35
36 @param CodeType Indicates the type of status code being reported. Type EFI_STATUS_CODE_TYPE is defined in "Related Definitions" below.
37
38 @param Value Describes the current status of a hardware or software entity.
39 This included information about the class and subclass that is used to classify the entity
40 as well as an operation. For progress codes, the operation is the current activity.
41 For error codes, it is the exception. For debug codes, it is not defined at this time.
42 Type EFI_STATUS_CODE_VALUE is defined in "Related Definitions" below.
43 Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.
44
45 @param Instance The enumeration of a hardware or software entity within the system.
46 A system may contain multiple entities that match a class/subclass pairing.
47 The instance differentiates between them. An instance of 0 indicates that instance information is unavailable,
48 not meaningful, or not relevant. Valid instance numbers start with 1.
49
50
51 @param CallerId This optional parameter may be used to identify the caller.
52 This parameter allows the status code driver to apply different rules to different callers.
53 Type EFI_GUID is defined in InstallProtocolInterface() in the UEFI 2.0 Specification.
54
55
56 @param Data This optional parameter may be used to pass additional data
57
58 @return The function always return EFI_SUCCESS.
59
60 **/
61 EFI_STATUS
62 EFIAPI
63 OemHookStatusCodeReport (
64 IN EFI_STATUS_CODE_TYPE CodeType,
65 IN EFI_STATUS_CODE_VALUE Value,
66 IN UINT32 Instance,
67 IN EFI_GUID *CallerId, OPTIONAL
68 IN EFI_STATUS_CODE_DATA *Data OPTIONAL
69 );
70
71 #endif // __OEM_HOOK_STATUSCODE_LIB__
72