summaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/skx/include
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2020-10-22 14:03:46 +0200
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2020-11-04 13:43:09 +0000
commit7f44929ed91d3f3157f2d26673fadb74ae7d8ff4 (patch)
tree0bb3d094a24e9974c75dc6ef796f4084a6ab85d8 /src/soc/intel/xeon_sp/skx/include
parent0be783b30e76a9f9aa6bf65eb315a02cb91cbe23 (diff)
soc/intel/xeon_sp: Add a smm_region function
This reports where TSEG is located and will be used when setting up SMM. Change-Id: I9a89cc79b08e2dcf1ffb91aa27d92c387cc93bfd Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46657 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/intel/xeon_sp/skx/include')
-rw-r--r--src/soc/intel/xeon_sp/skx/include/soc/pci_devs.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/soc/intel/xeon_sp/skx/include/soc/pci_devs.h b/src/soc/intel/xeon_sp/skx/include/soc/pci_devs.h
index 6b84f70d3b..b500c2896c 100644
--- a/src/soc/intel/xeon_sp/skx/include/soc/pci_devs.h
+++ b/src/soc/intel/xeon_sp/skx/include/soc/pci_devs.h
@@ -126,8 +126,14 @@
#define HPET0_FUNC_NUM 0x00
#define MMAP_VTD_CFG_REG_DEVID 0x2024
-#define VTD_DEV 5
-#define VTD_FUNC 0
+#define VTD_DEV_NUM 0x5
+#define VTD_FUNC_NUM 0x0
+
+#if !defined(__SIMPLE_DEVICE__)
+#define VTD_DEV(bus) pcidev_path_on_bus((bus), PCI_DEVFN(VTD_DEV_NUM, VTD_FUNC_NUM))
+#else
+#define VTD_DEV(bus) PCI_DEV((bus), VTD_DEV_NUM, VTD_FUNC_NUM)
+#endif
#define PCH_DEV_SLOT_LPC 0x1f
#define PCH_DEVFN_LPC _PCH_DEVFN(LPC, 0)