]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Include/Library/OemHookStatusCodeLib.h
8b09e7843553ebba2b6ddf6e43ad9ea51c8a17db
[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.
37
38 @param Value Describes the current status of a hardware or software entity.
39 This includes both an operation and classification information about the class and subclass.
40 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 Specific values are discussed in the Intel Platform Innovation Framework for EFI Status Code Specification.
43
44 @param Instance The enumeration of a hardware or software entity within the system.
45 A system may contain multiple entities that match a class/subclass pairing.
46 The instance differentiates between them. An instance of 0 indicates that instance information is unavailable,
47 not meaningful, or not relevant. Valid instance numbers start with 1.
48
49
50 @param CallerId This optional parameter may be used to identify the caller.
51 This parameter allows the status code driver to apply different rules to different callers.
52 Type EFI_GUID is defined in InstallProtocolInterface() in the UEFI 2.0 Specification.
53
54
55 @param Data This optional parameter may be used to pass additional data
56
57 @return The function always return EFI_SUCCESS.
58
59 **/
60 EFI_STATUS
61 EFIAPI
62 OemHookStatusCodeReport (
63 IN EFI_STATUS_CODE_TYPE CodeType,
64 IN EFI_STATUS_CODE_VALUE Value,
65 IN UINT32 Instance,
66 IN EFI_GUID *CallerId, OPTIONAL
67 IN EFI_STATUS_CODE_DATA *Data OPTIONAL
68 );
69
70 #endif // __OEM_HOOK_STATUSCODE_LIB__
71