]> git.proxmox.com Git - mirror_edk2.git/blob - EdkModulePkg/Include/Library/OemHookStatusCodeLib.h
Remove Static declaration for the related driver binding functions.
[mirror_edk2.git] / EdkModulePkg / Include / Library / OemHookStatusCodeLib.h
1
2 /** @file
3 OEM hook status code library functions with no library constructor/destructor
4
5 Copyright (c) 2006, 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 Module Name: OemHookStatusCodeLib.h
15
16 **/
17
18 #ifndef __OEM_HOOK_STATUSCODE_LIB__
19 #define __OEM_HOOK_STATUSCODE_LIB__
20
21 /**
22
23 Initialize OEM status code device .
24
25
26 @return Status of initialization of OEM status code device.
27
28 **/
29 EFI_STATUS
30 EFIAPI
31 OemHookStatusCodeInitialize (
32 VOID
33 );
34
35 /**
36 Report status code to OEM device.
37
38 @param CodeType Indicates the type of status code being reported. Type EFI_STATUS_CODE_TYPE is defined in "Related Definitions¡± below.
39
40 @param Value Describes the current status of a hardware or software entity.
41 This included information about the class and subclass that is used to classify the entity
42 as well as an operation. For progress codes, the operation is the current activity.
43 For error codes, it is the exception. For debug codes, it is not defined at this time.
44 Type EFI_STATUS_CODE_VALUE is defined in ¡°Related Definitions¡± below.
45 Specific values are discussed in the Intel? Platform Innovation Framework for EFI Status Code Specification.
46
47 @param Instance The enumeration of a hardware or software entity within the system.
48 A system may contain multiple entities that match a class/subclass pairing.
49 The instance differentiates between them. An instance of 0 indicates that instance information is unavailable,
50 not meaningful, or not relevant. Valid instance numbers start with 1.
51
52
53 @param CallerId This optional parameter may be used to identify the caller.
54 This parameter allows the status code driver to apply different rules to different callers.
55 Type EFI_GUID is defined in InstallProtocolInterface() in the EFI 1.10 Specification.
56
57
58 @param Data This optional parameter may be used to pass additional data
59
60 @return The function always return EFI_SUCCESS.
61
62 **/
63 EFI_STATUS
64 EFIAPI
65 OemHookStatusCodeReport (
66 IN EFI_STATUS_CODE_TYPE CodeType,
67 IN EFI_STATUS_CODE_VALUE Value,
68 IN UINT32 Instance,
69 IN EFI_GUID *CallerId, OPTIONAL
70 IN EFI_STATUS_CODE_DATA *Data OPTIONAL
71 );
72
73 #endif