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 <[email protected]>] Signed-off-by: Kishon Vijay Abraham I <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 42fc2ac commit 349e7a8

File tree

5 files changed

+530
-1
lines changed

5 files changed

+530
-1
lines changed

Diff for: drivers/pci/endpoint/Kconfig

+2
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

Diff for: drivers/pci/endpoint/Makefile

+1-1
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/

Diff for: drivers/pci/endpoint/functions/Kconfig

+12
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.

Diff for: drivers/pci/endpoint/functions/Makefile

+5
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)