You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
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>
This commit is contained in:
committed by
Bjorn Helgaas
parent
42fc2ac6e8
commit
349e7a85b2
@@ -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
|
||||
|
||||
@@ -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
drivers/pci/endpoint/functions/Kconfig
Normal file
12
drivers/pci/endpoint/functions/Kconfig
Normal file
@@ -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
drivers/pci/endpoint/functions/Makefile
Normal file
5
drivers/pci/endpoint/functions/Makefile
Normal file
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# Makefile for PCI Endpoint Functions
|
||||
#
|
||||
|
||||
obj-$(CONFIG_PCI_EPF_TEST) += pci-epf-test.o
|
||||
510
drivers/pci/endpoint/functions/pci-epf-test.c
Normal file
510
drivers/pci/endpoint/functions/pci-epf-test.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user