Skip to content

Commit 6630a8e

Browse files
Christoph Hellwigmasahir0y
authored andcommitted
eisa: consolidate EISA Kconfig entry in drivers/eisa
Let architectures opt into EISA support by selecting HAVE_EISA and handle everything else in drivers/eisa. Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Acked-by: Paul Burton <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 1753d50 commit 6630a8e

File tree

8 files changed

+36
-80
lines changed

8 files changed

+36
-80
lines changed

arch/alpha/Kconfig

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,13 @@ choice
129129
config ALPHA_GENERIC
130130
bool "Generic"
131131
depends on TTY
132+
select HAVE_EISA
132133
help
133134
A generic kernel will run on all supported Alpha hardware.
134135

135136
config ALPHA_ALCOR
136137
bool "Alcor/Alpha-XLT"
138+
select HAVE_EISA
137139
help
138140
For systems using the Digital ALCOR chipset: 5 chips (4, 64-bit data
139141
slices (Data Switch, DSW) - 208-pin PQFP and 1 control (Control, I/O
@@ -207,6 +209,7 @@ config ALPHA_JENSEN
207209
bool "Jensen"
208210
depends on BROKEN
209211
select DMA_DIRECT_OPS
212+
select HAVE_EISA
210213
help
211214
DEC PC 150 AXP (aka Jensen): This is a very old Digital system - one
212215
of the first-generation Alpha systems. A number of these systems
@@ -223,6 +226,7 @@ config ALPHA_LX164
223226

224227
config ALPHA_LYNX
225228
bool "Lynx"
229+
select HAVE_EISA
226230
help
227231
AlphaServer 2100A-based systems.
228232

@@ -233,6 +237,7 @@ config ALPHA_MARVEL
233237

234238
config ALPHA_MIATA
235239
bool "Miata"
240+
select HAVE_EISA
236241
help
237242
The Digital PersonalWorkStation (PWS 433a, 433au, 500a, 500au, 600a,
238243
or 600au).
@@ -252,6 +257,7 @@ config ALPHA_NONAME_CH
252257

253258
config ALPHA_NORITAKE
254259
bool "Noritake"
260+
select HAVE_EISA
255261
help
256262
AlphaServer 1000A, AlphaServer 600A, and AlphaServer 800-based
257263
systems.
@@ -264,6 +270,7 @@ config ALPHA_P2K
264270

265271
config ALPHA_RAWHIDE
266272
bool "Rawhide"
273+
select HAVE_EISA
267274
help
268275
AlphaServer 1200, AlphaServer 4000 and AlphaServer 4100 machines.
269276
See HOWTO at
@@ -283,6 +290,7 @@ config ALPHA_SX164
283290

284291
config ALPHA_SABLE
285292
bool "Sable"
293+
select HAVE_EISA
286294
help
287295
Digital AlphaServer 2000 and 2100-based systems.
288296

@@ -512,11 +520,6 @@ config ALPHA_SRM
512520

513521
If unsure, say N.
514522

515-
config EISA
516-
bool
517-
depends on ALPHA_GENERIC || ALPHA_JENSEN || ALPHA_ALCOR || ALPHA_MIKASA || ALPHA_SABLE || ALPHA_LYNX || ALPHA_NORITAKE || ALPHA_RAWHIDE
518-
default y
519-
520523
config ARCH_MAY_HAVE_PC_FDC
521524
def_bool y
522525

@@ -667,8 +670,6 @@ config HZ
667670
default 1200 if HZ_1200
668671
default 1024
669672

670-
source "drivers/eisa/Kconfig"
671-
672673
config SRM_ENV
673674
tristate "SRM environment through procfs"
674675
depends on PROC_FS

arch/arm/Kconfig

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -161,21 +161,6 @@ config HAVE_PROC_CPU
161161
config NO_IOPORT_MAP
162162
bool
163163

164-
config EISA
165-
bool
166-
---help---
167-
The Extended Industry Standard Architecture (EISA) bus was
168-
developed as an open alternative to the IBM MicroChannel bus.
169-
170-
The EISA bus provided some of the features of the IBM MicroChannel
171-
bus while maintaining backward compatibility with cards made for
172-
the older ISA bus. The EISA bus saw limited use between 1988 and
173-
1995 when it was made obsolete by the PCI bus.
174-
175-
Say Y here if you are building a kernel for an EISA-based machine.
176-
177-
Otherwise, say N.
178-
179164
config SBUS
180165
bool
181166

arch/mips/Kconfig

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ config MIPS
2424
select GENERIC_IOMAP
2525
select GENERIC_IRQ_PROBE
2626
select GENERIC_IRQ_SHOW
27+
select GENERIC_ISA_DMA if EISA
2728
select GENERIC_LIB_ASHLDI3
2829
select GENERIC_LIB_ASHRDI3
2930
select GENERIC_LIB_CMPDI2
@@ -71,6 +72,7 @@ config MIPS
7172
select HAVE_SYSCALL_TRACEPOINTS
7273
select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
7374
select IRQ_FORCED_THREADING
75+
select ISA if EISA
7476
select MODULES_USE_ELF_RELA if MODULES && 64BIT
7577
select MODULES_USE_ELF_REL if MODULES
7678
select PERF_USE_VMALLOC
@@ -632,7 +634,7 @@ config SGI_IP22
632634
select CSRC_R4K
633635
select DEFAULT_SGI_PARTITION
634636
select DMA_NONCOHERENT
635-
select HW_HAS_EISA
637+
select HAVE_EISA
636638
select I8253
637639
select I8259
638640
select IP22_CPU_SCACHE
@@ -697,7 +699,7 @@ config SGI_IP28
697699
select DMA_NONCOHERENT
698700
select GENERIC_ISA_DMA_SUPPORT_BROKEN
699701
select IRQ_MIPS_CPU
700-
select HW_HAS_EISA
702+
select HAVE_EISA
701703
select I8253
702704
select I8259
703705
select SGI_HAS_I8042
@@ -840,8 +842,8 @@ config SNI_RM
840842
select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
841843
select DMA_NONCOHERENT
842844
select GENERIC_ISA_DMA
845+
select HAVE_EISA
843846
select HAVE_PCSPKR_PLATFORM
844-
select HW_HAS_EISA
845847
select HAVE_PCI
846848
select IRQ_MIPS_CPU
847849
select I8253
@@ -3024,9 +3026,6 @@ config MIPS_AUTO_PFN_OFFSET
30243026

30253027
menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
30263028

3027-
config HW_HAS_EISA
3028-
bool
3029-
30303029
config PCI_DRIVERS_GENERIC
30313030
select PCI_DOMAINS_GENERIC if PCI
30323031
bool
@@ -3044,26 +3043,6 @@ config PCI_DRIVERS_LEGACY
30443043
config ISA
30453044
bool
30463045

3047-
config EISA
3048-
bool "EISA support"
3049-
depends on HW_HAS_EISA
3050-
select ISA
3051-
select GENERIC_ISA_DMA
3052-
---help---
3053-
The Extended Industry Standard Architecture (EISA) bus was
3054-
developed as an open alternative to the IBM MicroChannel bus.
3055-
3056-
The EISA bus provided some of the features of the IBM MicroChannel
3057-
bus while maintaining backward compatibility with cards made for
3058-
the older ISA bus. The EISA bus saw limited use between 1988 and
3059-
1995 when it was made obsolete by the PCI bus.
3060-
3061-
Say Y here if you are building a kernel for an EISA-based machine.
3062-
3063-
Otherwise, say N.
3064-
3065-
source "drivers/eisa/Kconfig"
3066-
30673046
config TC
30683047
bool "TURBOchannel support"
30693048
depends on MACH_DECSTATION

arch/powerpc/Kconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -886,9 +886,6 @@ config PPC_INDIRECT_PCI
886886
depends on PCI
887887
default y if 40x || 44x
888888

889-
config EISA
890-
bool
891-
892889
config SBUS
893890
bool
894891

arch/x86/Kconfig

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ config X86
147147
select HAVE_DYNAMIC_FTRACE_WITH_REGS
148148
select HAVE_EBPF_JIT
149149
select HAVE_EFFICIENT_UNALIGNED_ACCESS
150+
select HAVE_EISA
150151
select HAVE_EXIT_THREAD
151152
select HAVE_FENTRY if X86_64 || DYNAMIC_FTRACE
152153
select HAVE_FTRACE_MCOUNT_RECORD
@@ -2682,24 +2683,6 @@ config ISA
26822683
(MCA) or VESA. ISA is an older system, now being displaced by PCI;
26832684
newer boards don't support it. If you have ISA, say Y, otherwise N.
26842685

2685-
config EISA
2686-
bool "EISA support"
2687-
depends on ISA
2688-
---help---
2689-
The Extended Industry Standard Architecture (EISA) bus was
2690-
developed as an open alternative to the IBM MicroChannel bus.
2691-
2692-
The EISA bus provided some of the features of the IBM MicroChannel
2693-
bus while maintaining backward compatibility with cards made for
2694-
the older ISA bus. The EISA bus saw limited use between 1988 and
2695-
1995 when it was made obsolete by the PCI bus.
2696-
2697-
Say Y here if you are building a kernel for an EISA-based machine.
2698-
2699-
Otherwise, say N.
2700-
2701-
source "drivers/eisa/Kconfig"
2702-
27032686
config SCx200
27042687
tristate "NatSemi SCx200 support"
27052688
---help---

drivers/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ menu "Device Drivers"
44
# Keep I/O buses first
55

66
source "drivers/amba/Kconfig"
7+
source "drivers/eisa/Kconfig"
78
source "drivers/pci/Kconfig"
89
source "drivers/pcmcia/Kconfig"
910
source "drivers/rapidio/Kconfig"

drivers/eisa/Kconfig

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
#
22
# EISA configuration
33
#
4+
5+
config HAVE_EISA
6+
bool
7+
8+
menuconfig EISA
9+
bool "EISA support"
10+
depends on HAVE_EISA
11+
---help---
12+
The Extended Industry Standard Architecture (EISA) bus was
13+
developed as an open alternative to the IBM MicroChannel bus.
14+
15+
The EISA bus provided some of the features of the IBM MicroChannel
16+
bus while maintaining backward compatibility with cards made for
17+
the older ISA bus. The EISA bus saw limited use between 1988 and
18+
1995 when it was made obsolete by the PCI bus.
19+
20+
Say Y here if you are building a kernel for an EISA-based machine.
21+
22+
Otherwise, say N.
23+
424
config EISA_VLB_PRIMING
525
bool "Vesa Local Bus priming"
626
depends on X86 && EISA
@@ -53,4 +73,3 @@ config EISA_NAMES
5373
names.
5474

5575
When in doubt, say Y.
56-

drivers/parisc/Kconfig

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ menu "Bus options (PCI, PCMCIA, EISA, GSC, ISA)"
22

33
config GSC
44
bool "VSC/GSC/HSC bus support"
5+
select HAVE_EISA
56
default y
67
help
78
The VSC, GSC and HSC busses were used from the earliest 700-series
@@ -46,16 +47,6 @@ config GSC_WAX
4647
used), a HIL interface chip and is also known to be used as the
4748
GSC bridge for an X.25 GSC card.
4849

49-
config EISA
50-
bool "EISA support"
51-
depends on GSC
52-
help
53-
Say Y here if you have an EISA bus in your machine. This code
54-
supports both the Mongoose & Wax EISA adapters. It is sadly
55-
incomplete and lacks support for card-to-host DMA.
56-
57-
source "drivers/eisa/Kconfig"
58-
5950
config ISA
6051
bool "ISA support"
6152
depends on EISA

0 commit comments

Comments
 (0)