]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: endpoint: Add pci_epf_assign_bar_space() API
authorFrank Li <Frank.Li@nxp.com>
Wed, 15 Oct 2025 15:27:30 +0000 (11:27 -0400)
committerManivannan Sadhasivam <mani@kernel.org>
Mon, 27 Oct 2025 15:08:20 +0000 (20:38 +0530)
commit0bfc6758f213a701bd662982de86f0032b51f18c
tree9c569f535637c397044baddcc2a67a92d784e8fc
parentf71e2b67b51dcb2fd8c6d566230f17a735770bee
PCI: endpoint: Add pci_epf_assign_bar_space() API

Add pci_epf_assign_bar_space() API to allow setting any MMIO address as
the BAR memory space, such as an MSI message base address.

This API also conforms to the BAR base address and size alignment
restrictions enforced by the PCI spec r6.0, sec 7.5.1.2.1.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
[mani: removed unused epc var, reworded kdoc, comments and description]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20251015-vntb_msi_doorbell-v6-3-9230298b1910@nxp.com
drivers/pci/endpoint/pci-epf-core.c
include/linux/pci-epf.h