Rebecca Cran
9e7b042ecb
PrmPkg: Update code to be more C11 compliant by using __func__
...
__FUNCTION__ is a pre-standard extension that gcc and Visual C++ among
others support, while __func__ was standardized in C99.
Since it's more standard, replace __FUNCTION__ with __func__ throughout
PrmPkg.
Signed-off-by: Rebecca Cran <rebecca@bsdio.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Ard Biesheuvel <ardb@kernel.org >
2023-04-10 14:19:57 +00:00
Wei6 Xu
6032b46dce
PrmPkg/PrmSsdtInstallDxe: Update PRMT Device CID to PNP0C02.
...
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4141
PRMT device is an unknown device in Device Manager if there is no
Windows Driver installed for it. It will cause WHQL Signed Driver
test failure.
To complete WHQL certification, update PRMT Device CID to PNP0C02.
In this way, PRMT Device will be a Motherboard Resources when no
real driver is loaded (default), but will be shown as the actual
device name when a legitimate Windows Driver is loaded.
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com >
Cc: Ankit Sinha <ankit.sinha@intel.com >
Signed-off-by: Wei6 Xu <wei6.xu@intel.com >
Reviewed-by: Ankit Sinha <ankit.sinha@intel.com >
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com >
2022-11-08 16:08:26 +00:00
Michael Kubacki
a298a84478
PrmPkg: Apply uncrustify changes
...
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in PrmPkg.
Cc: Andrew Fish <afish@apple.com >
Cc: Kang Gao <kang.gao@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Benjamin You <benjamin.you@intel.com >
Cc: Liu Yun <yun.y.liu@intel.com >
Cc: Ankit Sinha <ankit.sinha@intel.com >
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Acked-by: Liming Gao <gaoliming@byosoft.com.cn >
Acked-by: Leif Lindholm <quic_llindhol@quicinc.com >
Reviewed-by: Ankit Sinha <ankit.sinha@intel.com >
2022-04-05 00:42:38 +00:00
Michael Kubacki
050b2ba27d
PrmPkg/Samples: Remove PrmSamplePrintModule
...
This sample module is removed since it directly depends on OS
services which are no longer supported as of the current PRM
design.
Cc: Andrew Fish <afish@apple.com >
Cc: Kang Gao <kang.gao@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Benjamin You <benjamin.you@intel.com >
Cc: Liu Yun <yun.y.liu@intel.com >
Cc: Ankit Sinha <ankit.sinha@intel.com >
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Acked-by: Liming Gao <gaoliming@byosoft.com.cn >
Acked-by: Leif Lindholm <quic_llindhol@quicinc.com >
Reviewed-by: Ankit Sinha <ankit.sinha@intel.com >
2022-04-05 00:42:38 +00:00
Liu Yun Y
a9302b89a9
PrmPkg: Update PRM OpRegion
...
1. Enable new PRM OpRegion structure
2. Add PRM Handler Update Lock/Unlock support
Cc: Andrew Fish <afish@apple.com >
Cc: Kang Gao <kang.gao@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Benjamin You <benjamin.you@intel.com >
Cc: Liu Yun <yun.y.liu@intel.com >
Cc: Ankit Sinha <ankit.sinha@intel.com >
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com >
Signed-off-by: Liu Yun <yun.y.liu@intel.com >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Acked-by: Liming Gao <gaoliming@byosoft.com.cn >
Acked-by: Leif Lindholm <quic_llindhol@quicinc.com >
Reviewed-by: Ankit Sinha <ankit.sinha@intel.com >
2022-04-05 00:42:38 +00:00
Michael Kubacki
50e1432a40
PrmPkg: Add initial PrmSsdtInstallDxe module
...
Adds a new module that installs a PRM SSDT.
Note: A library class would allow a high degree of flexibility for
platforms that choose:
1. To not install a PRM SSDT at all (using a NULL library instance)
2. To install a specific PRM SSDT implementation
However, it is implemented as a driver since build tools are not
linking ACPI tables to drivers from linked library classes.
Cc: Andrew Fish <afish@apple.com >
Cc: Kang Gao <kang.gao@intel.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Cc: Michael Kubacki <michael.kubacki@microsoft.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Benjamin You <benjamin.you@intel.com >
Cc: Liu Yun <yun.y.liu@intel.com >
Cc: Ankit Sinha <ankit.sinha@intel.com >
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Acked-by: Liming Gao <gaoliming@byosoft.com.cn >
Acked-by: Leif Lindholm <quic_llindhol@quicinc.com >
Reviewed-by: Ankit Sinha <ankit.sinha@intel.com >
2022-04-05 00:42:38 +00:00