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