Skip to content

Commit 2c156ac

Browse files
kishonbjorn-helgaas
authored andcommitted
misc: Add host side PCI driver for PCI test function device
Add PCI endpoint test driver that can verify base address register, legacy interrupt/MSI interrupt and read/write/copy buffers between host and device. The corresponding pci-epf-test function driver should be used on the EP side. Signed-off-by: Kishon Vijay Abraham I <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 984c307 commit 2c156ac

File tree

5 files changed

+562
-0
lines changed

5 files changed

+562
-0
lines changed

drivers/misc/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,13 @@ config PANEL_BOOT_MESSAGE
771771

772772
endif # PANEL
773773

774+
config PCI_ENDPOINT_TEST
775+
depends on PCI
776+
tristate "PCI Endpoint Test driver"
777+
---help---
778+
Enable this configuration option to enable the host side test driver
779+
for PCI Endpoint.
780+
774781
source "drivers/misc/c2port/Kconfig"
775782
source "drivers/misc/eeprom/Kconfig"
776783
source "drivers/misc/cb710/Kconfig"

drivers/misc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ obj-$(CONFIG_ECHO) += echo/
5454
obj-$(CONFIG_VEXPRESS_SYSCFG) += vexpress-syscfg.o
5555
obj-$(CONFIG_CXL_BASE) += cxl/
5656
obj-$(CONFIG_PANEL) += panel.o
57+
obj-$(CONFIG_PCI_ENDPOINT_TEST) += pci_endpoint_test.o
5758

5859
lkdtm-$(CONFIG_LKDTM) += lkdtm_core.o
5960
lkdtm-$(CONFIG_LKDTM) += lkdtm_bugs.o

0 commit comments

Comments
 (0)