17328c8f4SBjorn Helgaas# SPDX-License-Identifier: GPL-2.0 25e8cb403SKishon Vijay Abraham I# 35e8cb403SKishon Vijay Abraham I# PCI Endpoint Support 45e8cb403SKishon Vijay Abraham I# 55e8cb403SKishon Vijay Abraham I 65e8cb403SKishon Vijay Abraham Imenu "PCI Endpoint" 75e8cb403SKishon Vijay Abraham I 85e8cb403SKishon Vijay Abraham Iconfig PCI_ENDPOINT 95e8cb403SKishon Vijay Abraham I bool "PCI Endpoint Support" 10eb01d42aSChristoph Hellwig depends on HAVE_PCI 115e8cb403SKishon Vijay Abraham I help 125e8cb403SKishon Vijay Abraham I Enable this configuration option to support configurable PCI 135e8cb403SKishon Vijay Abraham I endpoint. This should be enabled if the platform has a PCI 145e8cb403SKishon Vijay Abraham I controller that can operate in endpoint mode. 155e8cb403SKishon Vijay Abraham I 165e8cb403SKishon Vijay Abraham I Enabling this option will build the endpoint library, which 175e8cb403SKishon Vijay Abraham I includes endpoint controller library and endpoint function 185e8cb403SKishon Vijay Abraham I library. 195e8cb403SKishon Vijay Abraham I 205e8cb403SKishon Vijay Abraham I If in doubt, say "N" to disable Endpoint support. 215e8cb403SKishon Vijay Abraham I 22d7467991SKishon Vijay Abraham Iconfig PCI_ENDPOINT_CONFIGFS 23d7467991SKishon Vijay Abraham I bool "PCI Endpoint Configfs Support" 24d7467991SKishon Vijay Abraham I depends on PCI_ENDPOINT 25d7467991SKishon Vijay Abraham I select CONFIGFS_FS 26d7467991SKishon Vijay Abraham I help 27d7467991SKishon Vijay Abraham I This will enable the configfs entry that can be used to 28d7467991SKishon Vijay Abraham I configure the endpoint function and used to bind the 29f4e026f4SBjorn Helgaas function with an endpoint controller. 30d7467991SKishon Vijay Abraham I 31*1c3b002cSFrank Liconfig PCI_ENDPOINT_MSI_DOORBELL 32*1c3b002cSFrank Li bool "PCI Endpoint MSI Doorbell Support" 33*1c3b002cSFrank Li depends on PCI_ENDPOINT && GENERIC_MSI_IRQ 34*1c3b002cSFrank Li help 35*1c3b002cSFrank Li This enables the EP's MSI interrupt controller to function as a 36*1c3b002cSFrank Li doorbell. The RC can trigger doorbell in EP by writing data to a 37*1c3b002cSFrank Li dedicated BAR, which the EP maps to the controller's message address. 38*1c3b002cSFrank Li 39349e7a85SKishon Vijay Abraham Isource "drivers/pci/endpoint/functions/Kconfig" 40349e7a85SKishon Vijay Abraham I 415e8cb403SKishon Vijay Abraham Iendmenu 42