Don't run VGA option ROMs on S3 resume.
[coreboot.git] / src / devices / Kconfig
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright (C) 2007-2010 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 S3_VGA_ROM_RUN
37         bool "Re-run VGA option ROMs on S3 resume"
38         default y
39         depends on VGA_ROM_RUN && HAVE_ACPI_RESUME
40         help
41           Execute VGA option ROMs when coming out of an S3 resume.
42
43 config PCI_ROM_RUN
44         bool "Run non-VGA option ROMs"
45         default y
46         help
47           Execute non-VGA PCI option ROMs, if found.
48
49           Examples include IDE/SATA controller option ROMs and option ROMs
50           for network cards (NICs).
51
52 choice
53         prompt "Option ROM execution type"
54         default PCI_OPTION_ROM_RUN_YABEL if !ARCH_X86
55         default PCI_OPTION_ROM_RUN_REALMODE if ARCH_X86
56         depends on PCI_ROM_RUN || VGA_ROM_RUN || GEODE_VSA
57
58 config PCI_OPTION_ROM_RUN_REALMODE
59         prompt "Native mode"
60         bool
61         depends on ARCH_X86
62         help
63           If you select this option, PCI option ROMs will be executed
64           natively on the CPU in real mode. No CPU emulation is involved,
65           so this is the fastest, but also the least secure option.
66           (only works on x86/x64 systems)
67
68 config PCI_OPTION_ROM_RUN_YABEL
69         prompt "Secure mode"
70         bool
71         depends on !GEODE_VSA
72         help
73           If you select this option, the x86emu CPU emulator will be used to
74           execute PCI option ROMs.
75
76           This option prevents option ROMs from doing dirty tricks with the
77           system (such as installing SMM modules or hypervisors), but it is
78           also significantly slower than the native option ROM initialization
79           method.
80
81           This is the default choice for non-x86 systems.
82
83 endchoice
84
85 config YABEL_PCI_ACCESS_OTHER_DEVICES
86         prompt "Allow option ROMs to access other devices"
87         bool
88         depends on PCI_OPTION_ROM_RUN_YABEL
89         help
90           Per default, YABEL only allows option ROMs to access the PCI device
91           that they are associated with. However, this causes trouble for some
92           onboard graphics chips whose option ROM needs to reconfigure the
93           north bridge.
94
95 config YABEL_VIRTMEM_LOCATION
96         prompt "Location of YABEL's virtual memory"
97         hex
98         depends on PCI_OPTION_ROM_RUN_YABEL && EXPERT
99         default 0x1000000
100         help
101           YABEL requires 1MB memory for its CPU emulation. This memory is
102           normally located at 16MB.
103
104 config YABEL_VIRTMEM_LOCATION
105         hex
106         depends on PCI_OPTION_ROM_RUN_YABEL && !EXPERT
107         default 0x1000000
108
109 config YABEL_DIRECTHW
110         prompt "Direct hardware access"
111         bool
112         depends on PCI_OPTION_ROM_RUN_YABEL
113         help
114           YABEL consists of two parts: It uses x86emu for the CPU emulation and
115           additionally provides a PC system emulation that filters bad device
116           and memory access (such as PCI config space access to other devices
117           than the initialized one).
118
119           When choosing this option, x86emu will pass through all hardware
120           accesses to memory and I/O devices to the underlying memory and I/O
121           addresses. While this option prevents option ROMs from doing dirty
122           tricks with the CPU (such as installing SMM modules or hypervisors),
123           they can still access all devices in the system.
124           Enable this option for a good compromise between security and speed.
125
126 config MULTIPLE_VGA_ADAPTERS
127         bool
128         default n
129
130 config PCI_64BIT_PREF_MEM
131         bool
132         default n
133
134 config HYPERTRANSPORT_PLUGIN_SUPPORT
135         bool
136         default n
137
138 config PCIX_PLUGIN_SUPPORT
139         bool
140         default y
141
142 config PCIEXP_PLUGIN_SUPPORT
143         bool
144         default y
145
146 config AGP_PLUGIN_SUPPORT
147         bool
148         default y
149
150 config CARDBUS_PLUGIN_SUPPORT
151         bool
152         default y