<p>Pratikkumar V Prajapati has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21243">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">intel/common/systemagent: Add APIs to get SOC specific PRMRR base and mask<br><br>Implement weak definitions and SOC specific code would implement<br>actual definitions.<br><br>Change-Id: I5e787a2603aaa475cb5c61558cc31ec0afcb4a8b<br>Signed-off-by: Pratik Prajapati <pratikkumar.v.prajapati@intel.com><br>---<br>M src/soc/intel/common/block/include/intelblocks/systemagent.h<br>M src/soc/intel/common/block/systemagent/systemagent.c<br>2 files changed, 16 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/43/21243/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/intel/common/block/include/intelblocks/systemagent.h b/src/soc/intel/common/block/include/intelblocks/systemagent.h<br>index 5f04e36..a1c551f 100644<br>--- a/src/soc/intel/common/block/include/intelblocks/systemagent.h<br>+++ b/src/soc/intel/common/block/include/intelblocks/systemagent.h<br>@@ -16,6 +16,7 @@<br> #ifndef SOC_INTEL_COMMON_BLOCK_SA_H<br> #define SOC_INTEL_COMMON_BLOCK_SA_H<br> <br>+#include <cpu/x86/msr.h><br> #include <device/device.h><br> #include <soc/iomap.h><br> #include <stddef.h><br>@@ -96,4 +97,7 @@<br>  */<br> void soc_add_fixed_mmio_resources(struct device *dev, int *resource_cnt);<br> <br>+/* SoC specific APIs to get UNCORE PRMRR base and mask values */<br>+int soc_get_uncore_prmmr_base(msr_t *prmrr_base);<br>+int soc_get_uncore_prmmr_mask(msr_t *prmrr_mask);<br> #endif       /* SOC_INTEL_COMMON_BLOCK_SA_H */<br>diff --git a/src/soc/intel/common/block/systemagent/systemagent.c b/src/soc/intel/common/block/systemagent/systemagent.c<br>index cb7af41..188548a 100644<br>--- a/src/soc/intel/common/block/systemagent/systemagent.c<br>+++ b/src/soc/intel/common/block/systemagent/systemagent.c<br>@@ -36,6 +36,18 @@<br>        /* no-op */<br> }<br> <br>+__attribute__((weak)) int soc_get_uncore_prmmr_base(msr_t *prmrr_base)<br>+{<br>+      /* return failure for this dummy API */<br>+      return -1;<br>+}<br>+<br>+__attribute__((weak)) int soc_get_uncore_prmmr_mask(msr_t *prmrr_mask)<br>+{<br>+       /* return failure for this dummy API */<br>+      return -1;<br>+}<br>+<br> /*<br>  * Add all known fixed MMIO ranges that hang off the host bridge/memory<br>  * controller device.<br></pre><p>To view, visit <a href="https://review.coreboot.org/21243">change 21243</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/21243"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5e787a2603aaa475cb5c61558cc31ec0afcb4a8b </div>
<div style="display:none"> Gerrit-Change-Number: 21243 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pratikkumar V Prajapati <pratikkumar.v.prajapati@intel.com> </div>