<p>Lijian Zhao has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/29490">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/intel/common: Add SSID header<br><br>CoffeeLake and newer FSP have provied an entry (SiSsidTablePtr and<br>SiNumberOfSsidTableEntry) to update internal devices SSID/SVID. Have<br>table format definied here for future usage.<br><br>Change-Id: I4bdabdd927fa477821f400e49c5787f405d0a9ea<br>Signed-off-by: Lijian Zhao <lijian.zhao@intel.com><br>---<br>A src/soc/intel/common/ssid.h<br>1 file changed, 46 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/90/29490/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/intel/common/ssid.h b/src/soc/intel/common/ssid.h</span><br><span>new file mode 100644</span><br><span>index 0000000..da32e24</span><br><span>--- /dev/null</span><br><span>+++ b/src/soc/intel/common/ssid.h</span><br><span>@@ -0,0 +1,46 @@</span><br><span style="color: hsl(120, 100%, 40%);">+/*</span><br><span style="color: hsl(120, 100%, 40%);">+ * This file is part of the coreboot project.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * Copyright (C) 2018 Intel Corporation.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * This program is free software; you can redistribute it and/or modify</span><br><span style="color: hsl(120, 100%, 40%);">+ * it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(120, 100%, 40%);">+ * the Free Software Foundation; version 2 of the License.</span><br><span style="color: hsl(120, 100%, 40%);">+ *</span><br><span style="color: hsl(120, 100%, 40%);">+ * This program is distributed in the hope that it will be useful,</span><br><span style="color: hsl(120, 100%, 40%);">+ * but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(120, 100%, 40%);">+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the</span><br><span style="color: hsl(120, 100%, 40%);">+ * GNU General Public License for more details.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+#ifndef SOC_INTEL_COMMON_SSID_H</span><br><span style="color: hsl(120, 100%, 40%);">+#define SOC_INTEL_COMMON_SSID_H</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/* Subsystem Vendor ID / Subsystem ID */</span><br><span style="color: hsl(120, 100%, 40%);">+typedef struct {</span><br><span style="color: hsl(120, 100%, 40%);">+ uint16_t svid;</span><br><span style="color: hsl(120, 100%, 40%);">+        uint16_t ssid;</span><br><span style="color: hsl(120, 100%, 40%);">+} svid_ssid_val;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/*</span><br><span style="color: hsl(120, 100%, 40%);">+ *  Below defination to match PCI_SEGMENT_LIB_ADDRESS (),</span><br><span style="color: hsl(120, 100%, 40%);">+ *  which can send to PciSegmentRead/Write functions directly.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+typedef struct {</span><br><span style="color: hsl(120, 100%, 40%);">+      union {</span><br><span style="color: hsl(120, 100%, 40%);">+               struct {</span><br><span style="color: hsl(120, 100%, 40%);">+                      uint64_t Register:12;</span><br><span style="color: hsl(120, 100%, 40%);">+                 uint64_t Function:3;</span><br><span style="color: hsl(120, 100%, 40%);">+                  uint64_t Device:5;</span><br><span style="color: hsl(120, 100%, 40%);">+                    uint64_t Bus:8;</span><br><span style="color: hsl(120, 100%, 40%);">+                       uint64_t Reserved1:4;</span><br><span style="color: hsl(120, 100%, 40%);">+                 uint64_t Segment:16;</span><br><span style="color: hsl(120, 100%, 40%);">+                  uint64_t Reserved2:16;</span><br><span style="color: hsl(120, 100%, 40%);">+                } Bits;</span><br><span style="color: hsl(120, 100%, 40%);">+               uint64_t SegBusDevFuncRegister;</span><br><span style="color: hsl(120, 100%, 40%);">+       } Address;</span><br><span style="color: hsl(120, 100%, 40%);">+    svid_ssid_val SvidSidValue;</span><br><span style="color: hsl(120, 100%, 40%);">+   uint32_t Reserved;</span><br><span style="color: hsl(120, 100%, 40%);">+} svid_ssid_init_entry;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+#endif /* SOC_INTEL_COMMON_SSID_H */</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/29490">change 29490</a>. To unsubscribe, or for help writing mail filters, 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/29490"/><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: I4bdabdd927fa477821f400e49c5787f405d0a9ea </div>
<div style="display:none"> Gerrit-Change-Number: 29490 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Lijian Zhao <lijian.zhao@intel.com> </div>