Skip to content

Commit

Permalink
PCI: endpoint: functions: Add an EP function to test PCI
Browse files Browse the repository at this point in the history
Adds a new endpoint function driver (to program the virtual test device)
making use of the EP-core library.

[bhelgaas: fold in pci_epf_test_probe() -ENOMEM test from Wei Yongjun
<weiyongjun1@huawei.com>]
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
kishon authored and bjorn-helgaas committed Apr 11, 2017
1 parent 42fc2ac commit 349e7a8
Show file tree
Hide file tree
Showing 5 changed files with 530 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drivers/pci/endpoint/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ config PCI_ENDPOINT_CONFIGFS
configure the endpoint function and used to bind the
function with a endpoint controller.

source "drivers/pci/endpoint/functions/Kconfig"

endmenu
2 changes: 1 addition & 1 deletion drivers/pci/endpoint/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

obj-$(CONFIG_PCI_ENDPOINT_CONFIGFS) += pci-ep-cfs.o
obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\
pci-epc-mem.o
pci-epc-mem.o functions/
12 changes: 12 additions & 0 deletions drivers/pci/endpoint/functions/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# PCI Endpoint Functions
#

config PCI_EPF_TEST
tristate "PCI Endpoint Test driver"
depends on PCI_ENDPOINT
help
Enable this configuration option to enable the test driver
for PCI Endpoint.

If in doubt, say "N" to disable Endpoint test driver.
5 changes: 5 additions & 0 deletions drivers/pci/endpoint/functions/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# Makefile for PCI Endpoint Functions
#

obj-$(CONFIG_PCI_EPF_TEST) += pci-epf-test.o

0 comments on commit 349e7a8

Please sign in to comment.