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