Last change
on this file was 105670, checked in by vboxsync, 7 months ago |
Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
1.2 KB
|
Line | |
---|
1 | /** @file
|
---|
2 | The implementation of EDKII Redfish Platform Config Capability.
|
---|
3 | Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
---|
4 |
|
---|
5 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
6 |
|
---|
7 | **/
|
---|
8 |
|
---|
9 | #include "RedfishPlatformConfigDxe.h"
|
---|
10 | #include "RedfishPlatformConfigImpl.h"
|
---|
11 |
|
---|
12 | /**
|
---|
13 | Check if the debug property is enabled or not.
|
---|
14 |
|
---|
15 | @param[in] DebugType Debug enablement type
|
---|
16 |
|
---|
17 | @retval TRUE, the debug property is enabled.
|
---|
18 | FALSE, the debug property is not enabled.
|
---|
19 |
|
---|
20 | **/
|
---|
21 | BOOLEAN
|
---|
22 | RedfishPlatformConfigDebugProp (
|
---|
23 | IN UINT64 DebugType
|
---|
24 | )
|
---|
25 | {
|
---|
26 | UINT64 DebugProp;
|
---|
27 |
|
---|
28 | DebugProp = FixedPcdGet64 (PcdRedfishPlatformConfigDebugProperty);
|
---|
29 | if ((DebugProp & DebugType) != 0) {
|
---|
30 | return TRUE;
|
---|
31 | }
|
---|
32 |
|
---|
33 | return FALSE;
|
---|
34 | }
|
---|
35 |
|
---|
36 | /**
|
---|
37 | Check if the Platform Configure feature is enabled or not.
|
---|
38 |
|
---|
39 | @param[in] FeatureType Redfish platform config feature enablement
|
---|
40 |
|
---|
41 | @retval TRUE, the feature is enabled.
|
---|
42 | FALSE, the feature is not enabled.
|
---|
43 |
|
---|
44 | **/
|
---|
45 | BOOLEAN
|
---|
46 | RedfishPlatformConfigFeatureProp (
|
---|
47 | IN UINT64 FeatureType
|
---|
48 | )
|
---|
49 | {
|
---|
50 | UINT64 FeatureProp;
|
---|
51 |
|
---|
52 | FeatureProp = FixedPcdGet64 (PcdRedfishPlatformConfigFeatureProperty);
|
---|
53 | if ((FeatureProp & FeatureType) != 0) {
|
---|
54 | return TRUE;
|
---|
55 | }
|
---|
56 |
|
---|
57 | return FALSE;
|
---|
58 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.