]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: endpoint: Add auxiliary resource query API
authorKoichiro Den <den@valinux.co.jp>
Tue, 14 Apr 2026 14:15:08 +0000 (23:15 +0900)
committerManivannan Sadhasivam <mani@kernel.org>
Thu, 30 Apr 2026 16:18:22 +0000 (21:48 +0530)
commitcc07b903a646bf6592182b27c63457d92f128125
tree703f76c951f2f7b88a8277f12c36bef5bbec2302
parent254f49634ee16a731174d2ae34bc50bd5f45e731
PCI: endpoint: Add auxiliary resource query API

Endpoint controller drivers may integrate auxiliary blocks (e.g. DMA
engines) whose register windows and descriptor memories metadata need to
be exposed to a remote peer. Endpoint function drivers need a generic
way to discover such resources without hard-coding controller-specific
helpers.

Add pci_epc_get_aux_resources_count() / pci_epc_get_aux_resources() and
the corresponding pci_epc_ops callbacks. The count helper returns the
number of available resources, while the get helper fills a
caller-provided array of resources described by type, physical address
and size, plus type-specific metadata.

Suggested-by: Manivannan Sadhasivam <mani@kernel.org>
Suggested-by: Frank Li <Frank.li@nxp.com>
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260414141514.1341429-2-den@valinux.co.jp
drivers/pci/endpoint/pci-epc-core.c
include/linux/pci-epc.h