Add two YABEL options to Kconfig
[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 config VGA_BRIDGE_SETUP
22         bool "Setup bridges on path to VGA adapter"
23         default y
24         help
25           Allow bridges to set up legacy decoding ranges for VGA. Don't disable
26           this unless you're sure you don't want the briges setup for VGA.
27
28 # TODO: Explain differences (if any) for onboard cards.
29 config VGA_ROM_RUN
30         bool "Run VGA option ROMs"
31         default y
32         help
33           Execute VGA option ROMs, if found. This is required to enable
34           PCI/AGP/PCI-E video cards.
35
36 config PCI_ROM_RUN
37         bool "Run non-VGA option ROMs"
38         default y
39         help
40           Execute non-VGA PCI option ROMs, if found.
41
42           Examples include IDE/SATA controller option ROMs and option ROMs
43           for network cards (NICs).
44
45 choice
46         prompt "Option ROM execution type"
47         default PCI_OPTION_ROM_RUN_YABEL if !ARCH_X86
48         default PCI_OPTION_ROM_RUN_REALMODE if ARCH_X86
49         depends on PCI_ROM_RUN || VGA_ROM_RUN
50
51 config PCI_OPTION_ROM_RUN_REALMODE
52         prompt "Real mode"
53         bool
54         depends on ARCH_X86
55         help
56           If you select this option, PCI option ROMs will be executed
57           natively on the CPU in real mode. No CPU emulation is involved,
58           so this is the fastest, but also the least secure option.
59           (only works on x86/x64 systems)
60
61 config PCI_OPTION_ROM_RUN_X86EMU
62         prompt "x86emu"
63         bool
64         help
65           If you select this option, the x86emu CPU emulator will be used to
66           execute PCI option ROMs. 
67           When choosing this option, x86emu will pass through all hardware
68           accesses to memory and IO devices to the underlying memory and IO
69           addresses. While this option prevents option ROMs from doing dirty
70           tricks with the CPU (such as installing SMM modules or hypervisors),
71           they can still access all devices in the system.
72           Choosing x86emu, option ROM execution is slower than native execution
73           in real mode, but faster than the full system emulation YABEL
74           This is the default choice for non-x86 systems.
75
76 config PCI_OPTION_ROM_RUN_YABEL
77         prompt "YABEL"
78         bool
79         help
80           If you select this option, the YABEL system emulator will be used to
81           execute PCI option ROMs.
82           YABEL consists of two parts: It uses x86emu for the CPU emulation and
83           additionally provides a PC system emulation that filters bad device and
84           memory access (such as PCI config space access to other devices than the
85           initialized one).
86           This option best prevents option ROMs from doing dirty tricks with the 
87           system (such as installing SMM modules or hypervisors), but it is also
88           significantly slower than the other option ROM initialization methods.
89
90 endchoice
91
92 config YABEL_PCI_ACCESS_OTHER_DEVICES
93         prompt "Allow option roms to acces other devices"
94         bool
95         depends on PCI_OPTION_ROM_RUN_YABEL
96         help
97           Per default, YABEL only allows option roms to access the PCI device
98           that they are associated with. However, this causes trouble for some
99           onboard graphics chips whose option rom needs to reconfigure the 
100           north bridge. 
101
102 config YABEL_VIRTMEM_LOCATION
103         prompt "Location of YABEL's virtual memory"
104         hex
105         depends on EXPERT
106         default 0x1000000
107         help
108           YABEL requires 1MB memory for its CPU emulation. This memory is
109           normally located at 16MB.
110
111 # TODO: Describe better, and/or make a "choice" selection for this.
112 config YABEL_DEBUG_FLAGS
113         prompt "Hex value for YABEL debug flags"
114         hex
115         default 0x0
116         depends on PCI_OPTION_ROM_RUN_YABEL
117         help
118           See debug.h for values 0 is no debug output, 0x31ff is _verbose_.
119
120 config CONSOLE_VGA_MULTI
121         bool
122         default n
123
124 config PCI_64BIT_PREF_MEM
125         bool
126         default n
127
128 config HYPERTRANSPORT_PLUGIN_SUPPORT
129         bool
130         default n
131
132 config PCIX_PLUGIN_SUPPORT
133         bool
134         default y
135
136 config PCIEXP_PLUGIN_SUPPORT
137         bool
138         default y
139
140 config AGP_PLUGIN_SUPPORT
141         bool
142         default y
143
144 config CARDBUS_PLUGIN_SUPPORT
145         bool
146         default y