Various Kconfig fixes and improvements:
[coreboot.git] / src / devices / Kconfig
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2007 coresystems GmbH
5 ## (Written by Stefan Reinauer <stepan@coresystems.de> for coresystems GmbH)
6 ##
7 ## This program is free software; you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation; version 2 of the License
10 ##
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19 ##
20
21 menu "Devices"
22
23 config VGA_BRIDGE_SETUP
24         bool "Setup bridges on path to VGA adapter"
25         default y
26         help
27           Allow bridges to set up legacy decoding ranges for VGA. Don't disable
28           this unless you're sure you don't want the briges setup for VGA.
29
30 # TODO: Explain differences (if any) for onboard cards.
31 config VGA_ROM_RUN
32         bool "Run VGA option ROMs"
33         default y
34         help
35           Execute VGA option ROMs, if found. This is required to enable
36           PCI/AGP/PCI-E video cards.
37
38 config PCI_ROM_RUN
39         bool "Run non-VGA option ROMs"
40         default y
41         help
42           Execute non-VGA PCI option ROMs, if found.
43
44           Examples include IDE/SATA controller option ROMs and option ROMs
45           for network cards (NICs).
46
47 # TODO: Describe YABEL vs. x86emu differences in more detail.
48 choice
49         prompt "Option ROM execution type"
50         default PCI_OPTION_ROM_RUN_REALMODE
51         depends on PCI_ROM_RUN || VGA_ROM_RUN
52
53 config PCI_OPTION_ROM_RUN_REALMODE
54         prompt "Real mode"
55         bool
56         help
57           If you select this option, PCI option ROMs will be executed
58           natively on the hardware (a 32bit x86 system is required).
59
60 config PCI_OPTION_ROM_RUN_YABEL
61         prompt "YABEL"
62         bool
63         help
64           If you select this option, the YABEL BIOS emulator will be used to
65           execute PCI option ROMs.
66
67 config PCI_OPTION_ROM_RUN_X86EMU
68         prompt "x86emu"
69         bool
70         help
71           If you select this option, the x86emu BIOS emulator will be used to
72           execute PCI option ROMs.
73
74 endchoice
75
76 # TODO: Describe better, and/or make a "choice" selection for this.
77 config YABEL_DEBUG_FLAGS
78         prompt "Hex value for YABEL debug flags"
79         hex
80         default 0x0
81         depends on PCI_OPTION_ROM_RUN_YABEL
82         help
83           See debug.h for values 0 is no debug output, 0x31ff is _verbose_.
84
85 endmenu
86
87 config CONSOLE_VGA_MULTI
88         bool
89         default n
90
91 config PCI_64BIT_PREF_MEM
92         bool
93         default n
94
95 config HYPERTRANSPORT_PLUGIN_SUPPORT
96         bool
97         default n
98
99 config PCIX_PLUGIN_SUPPORT
100         bool
101         default y
102
103 config PCIEXP_PLUGIN_SUPPORT
104         bool
105         default y
106
107 config AGP_PLUGIN_SUPPORT
108         bool
109         default y
110
111 config CARDBUS_PLUGIN_SUPPORT
112         bool
113         default y