Skip to content

Commit c8717a3

Browse files
Jan GlauberMartin Schwidefsky
authored andcommitted
s390/pci: add PCI Kconfig options
CONFIG_PCI is disabled by default currently. Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 1e8da95 commit c8717a3

1 file changed

Lines changed: 50 additions & 6 deletions

File tree

‎arch/s390/Kconfig‎

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ config GENERIC_BUG
3434
config GENERIC_BUG_RELATIVE_POINTERS
3535
def_bool y
3636

37-
config NO_IOMEM
38-
def_bool y
39-
40-
config NO_DMA
41-
def_bool y
42-
4337
config ARCH_DMA_ADDR_T_64BIT
4438
def_bool 64BIT
4539

@@ -58,6 +52,12 @@ config KEXEC
5852
config AUDIT_ARCH
5953
def_bool y
6054

55+
config NO_IOPORT
56+
def_bool y
57+
58+
config PCI_QUIRKS
59+
def_bool n
60+
6161
config S390
6262
def_bool y
6363
select USE_GENERIC_SMP_HELPERS if SMP
@@ -435,6 +435,50 @@ config QDIO
435435

436436
If unsure, say Y.
437437

438+
menuconfig PCI
439+
bool "PCI support"
440+
default n
441+
depends on 64BIT
442+
select ARCH_SUPPORTS_MSI
443+
select PCI_MSI
444+
help
445+
Enable PCI support.
446+
447+
if PCI
448+
449+
config PCI_NR_FUNCTIONS
450+
int "Maximum number of PCI functions (1-4096)"
451+
range 1 4096
452+
default "64"
453+
help
454+
This allows you to specify the maximum number of PCI functions which
455+
this kernel will support.
456+
457+
source "drivers/pci/Kconfig"
458+
source "drivers/pci/pcie/Kconfig"
459+
source "drivers/pci/hotplug/Kconfig"
460+
461+
endif # PCI
462+
463+
config PCI_DOMAINS
464+
def_bool PCI
465+
466+
config HAS_IOMEM
467+
def_bool PCI
468+
469+
config IOMMU_HELPER
470+
def_bool PCI
471+
472+
config HAS_DMA
473+
def_bool PCI
474+
select HAVE_DMA_API_DEBUG
475+
476+
config NEED_SG_DMA_LENGTH
477+
def_bool PCI
478+
479+
config HAVE_DMA_ATTRS
480+
def_bool PCI
481+
438482
config CHSC_SCH
439483
def_tristate m
440484
prompt "Support for CHSC subchannels"

0 commit comments

Comments
 (0)