soc/intel/xeon_sp: Add helper functions
commit9fa4048e2deccd63d0e225152ae6a06e8c767865
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Thu, 18 Jan 2024 07:55:08 +0000 (18 08:55 +0100)
committerPatrick Rudolph <patrick.rudolph@9elements.com>
Fri, 23 Feb 2024 07:45:15 +0000 (23 07:45 +0000)
treef19710a5d11ba9137cf6b729eca44d4d97c88e02
parent89cacb9050a9d2de91f0770dc1521ca1be7160be
soc/intel/xeon_sp: Add helper functions

Provide a helper function to locate PCI devices on a given socket
by their PCI vendor and device IDs and functions to return
information about the current device, like the corresponding stack
and socket.
In addition add functions to return "location" information, like stack
and socket affiliation.
This becomes handy when locating devices and generating ACPI code.

Change-Id: I266360588548ba579f46b228c4d5b3ae6e39a029
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80094
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shuo Liu <shuo.liu@intel.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
src/soc/intel/xeon_sp/chip_common.c
src/soc/intel/xeon_sp/include/soc/chip_common.h