REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 Adds a sample PRM module that demonstrates: 1. How to write a PRM module 2. How to use multiple PRM handlers in a module 3. How to use a basic PRM OS service 4. MSR access at OS runtime Note: This module contains a PRM handler to read from the HPET MMIO range but the memory map changes needed for this to succeed are currently not implemented. These will be implemented in a future change. 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>
43 lines
1.1 KiB
INI
43 lines
1.1 KiB
INI
## @file
|
|
# Sample PRM Driver
|
|
#
|
|
# A sample PRM Module implementation. This PRM Module provides PRM handlers that perform various types
|
|
# of hardware access. This is simply meant to demonstrate hardware access capabilities from a PRM handler.
|
|
#
|
|
# Copyright (c) Microsoft Corporation
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = PrmSampleHardwareAccessModule
|
|
FILE_GUID = 0EF93ED7-14AE-425B-928F-B85A6213B57E
|
|
MODULE_TYPE = DXE_RUNTIME_DRIVER
|
|
VERSION_STRING = 1.0
|
|
ENTRY_POINT = PrmSampleHardwareAccessModuleInit
|
|
|
|
[Sources]
|
|
Hpet.h
|
|
PrmSampleHardwareAccessModule.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
UefiCpuPkg/UefiCpuPkg.dec
|
|
PrmPkg/PrmPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
MtrrLib
|
|
PrintLib
|
|
UefiDriverEntryPoint
|
|
UefiLib
|
|
|
|
[Depex]
|
|
TRUE
|
|
|
|
[BuildOptions.common]
|
|
MSFT:*_*_*_DLINK_FLAGS = /DLL /SUBSYSTEM:CONSOLE /VERSION:1.0
|