mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 15:36:48 +00:00

Implement the doorbell feature by mapping the EP's MSI interrupt controller message address to a dedicated BAR. The EPF driver should pass the actual message data to be written to the message address by the host through implementation-specific logic. Signed-off-by: Frank Li <Frank.Li@nxp.com> [mani: minor code cleanups and reworded commit message] Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> [bhelgaas: fix kernel-doc] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Tested-by: Niklas Cassel <cassel@kernel.org> Link: https://patch.msgid.link/20250710-ep-msi-v21-3-57683fc7fb25@nxp.com
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# PCI Endpoint Support
|
|
#
|
|
|
|
menu "PCI Endpoint"
|
|
|
|
config PCI_ENDPOINT
|
|
bool "PCI Endpoint Support"
|
|
depends on HAVE_PCI
|
|
help
|
|
Enable this configuration option to support configurable PCI
|
|
endpoint. This should be enabled if the platform has a PCI
|
|
controller that can operate in endpoint mode.
|
|
|
|
Enabling this option will build the endpoint library, which
|
|
includes endpoint controller library and endpoint function
|
|
library.
|
|
|
|
If in doubt, say "N" to disable Endpoint support.
|
|
|
|
config PCI_ENDPOINT_CONFIGFS
|
|
bool "PCI Endpoint Configfs Support"
|
|
depends on PCI_ENDPOINT
|
|
select CONFIGFS_FS
|
|
help
|
|
This will enable the configfs entry that can be used to
|
|
configure the endpoint function and used to bind the
|
|
function with an endpoint controller.
|
|
|
|
config PCI_ENDPOINT_MSI_DOORBELL
|
|
bool "PCI Endpoint MSI Doorbell Support"
|
|
depends on PCI_ENDPOINT && GENERIC_MSI_IRQ
|
|
help
|
|
This enables the EP's MSI interrupt controller to function as a
|
|
doorbell. The RC can trigger doorbell in EP by writing data to a
|
|
dedicated BAR, which the EP maps to the controller's message address.
|
|
|
|
source "drivers/pci/endpoint/functions/Kconfig"
|
|
|
|
endmenu
|