]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Library / OemHookStatusCodeLibNull / OemHookStatusCodeLibNull.c
CommitLineData
d9ab4740 1/** @file\r
2 Null instance of OEM Hook Status Code Library with empty functions.\r
3\r
d1102dba 4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
9d510e61 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
d9ab4740 6\r
7**/\r
8\r
d9ab4740 9/**\r
10 Initialize OEM status code device .\r
11\r
12 @retval EFI_SUCCESS Always return EFI_SUCCESS.\r
13\r
14**/\r
15EFI_STATUS\r
16EFIAPI\r
17OemHookStatusCodeInitialize (\r
18 VOID\r
19 )\r
20{\r
21 return EFI_SUCCESS;\r
22}\r
23\r
24/**\r
25 Report status code to OEM device.\r
d1102dba 26\r
d9ab4740 27 @param CodeType Indicates the type of status code being reported.\r
d1102dba
LG
28 @param Value Describes the current status of a hardware or software entity.\r
29 This included information about the class and subclass that is used to classify the entity\r
30 as well as an operation. For progress codes, the operation is the current activity.\r
31 For error codes, it is the exception. For debug codes, it is not defined at this time.\r
32 @param Instance The enumeration of a hardware or software entity within the system.\r
33 A system may contain multiple entities that match a class/subclass pairing.\r
34 The instance differentiates between them. An instance of 0 indicates that instance information is unavailable,\r
d9ab4740 35 not meaningful, or not relevant. Valid instance numbers start with 1.\r
d1102dba
LG
36 @param CallerId This optional parameter may be used to identify the caller.\r
37 This parameter allows the status code driver to apply different rules to different callers.\r
d9ab4740 38 @param Data This optional parameter may be used to pass additional data\r
d1102dba 39\r
d9ab4740 40 @retval EFI_SUCCESS Always return EFI_SUCCESS.\r
41\r
42**/\r
43EFI_STATUS\r
44EFIAPI\r
45OemHookStatusCodeReport (\r
1436aea4
MK
46 IN EFI_STATUS_CODE_TYPE CodeType,\r
47 IN EFI_STATUS_CODE_VALUE Value,\r
48 IN UINT32 Instance,\r
49 IN EFI_GUID *CallerId OPTIONAL,\r
50 IN EFI_STATUS_CODE_DATA *Data OPTIONAL\r
d9ab4740 51 )\r
52{\r
53 return EFI_SUCCESS;\r
54}\r