Skip to content

Commit 349e7a8

Browse files
kishonbjorn-helgaas
authored andcommitted
PCI: endpoint: functions: Add an EP function to test PCI
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>
1 parent 42fc2ac commit 349e7a8

File tree

5 files changed

+530
-1
lines changed

5 files changed

+530
-1
lines changed

drivers/pci/endpoint/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ config PCI_ENDPOINT_CONFIGFS
2626
configure the endpoint function and used to bind the
2727
function with a endpoint controller.
2828

29+
source "drivers/pci/endpoint/functions/Kconfig"
30+
2931
endmenu

drivers/pci/endpoint/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
obj-$(CONFIG_PCI_ENDPOINT_CONFIGFS) += pci-ep-cfs.o
66
obj-$(CONFIG_PCI_ENDPOINT) += pci-epc-core.o pci-epf-core.o\
7-
pci-epc-mem.o
7+
pci-epc-mem.o functions/
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# PCI Endpoint Functions
3+
#
4+
5+
config PCI_EPF_TEST
6+
tristate "PCI Endpoint Test driver"
7+
depends on PCI_ENDPOINT
8+
help
9+
Enable this configuration option to enable the test driver
10+
for PCI Endpoint.
11+
12+
If in doubt, say "N" to disable Endpoint test driver.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Makefile for PCI Endpoint Functions
3+
#
4+
5+
obj-$(CONFIG_PCI_EPF_TEST) += pci-epf-test.o

0 commit comments

Comments
 (0)