Add constants for fast path resume copying
[coreboot.git] / src / devices / Kconfig
index 5e13e4e39303eb3d1a928122c2498d83469932c5..516881951907b7c5123490af43fce5f1028a19e3 100644 (file)
@@ -27,33 +27,53 @@ config VGA_BRIDGE_SETUP
 
 # TODO: Explain differences (if any) for onboard cards.
 config VGA_ROM_RUN
-       bool "Run VGA option ROMs"
+       bool "Run VGA Option ROMs"
        default y
        help
-         Execute VGA option ROMs, if found. This is required to enable
+         Execute VGA Option ROMs, if found. This is required to enable
          PCI/AGP/PCI-E video cards.
 
+config S3_VGA_ROM_RUN
+       bool "Re-run VGA Option ROMs on S3 resume"
+       default y
+       depends on VGA_ROM_RUN && HAVE_ACPI_RESUME
+       help
+         Execute VGA Option ROMs when coming out of an S3 resume.
+
 config PCI_ROM_RUN
-       bool "Run non-VGA option ROMs"
+       bool "Run non-VGA Option ROMs"
        default y
        help
-         Execute non-VGA PCI option ROMs, if found.
+         Execute non-VGA PCI Option ROMs, if found.
 
-         Examples include IDE/SATA controller option ROMs and option ROMs
+         Examples include IDE/SATA controller Option ROMs and Option ROMs
          for network cards (NICs).
 
+config ON_DEVICE_ROM_RUN
+       bool "Run Option ROMs on PCI devices"
+       default y
+       help
+         Execute Option ROMs that are stored on PCI/PCIe/AGP devices.
+
+         If disabled, only Option ROMs stored in CBFS will be executed. If
+         you are concerned about security, you might want to disable this
+         option, but it might leave your system in a state of degraded
+         functionality.
+
+         If unsure, say Y
+
 choice
        prompt "Option ROM execution type"
        default PCI_OPTION_ROM_RUN_YABEL if !ARCH_X86
        default PCI_OPTION_ROM_RUN_REALMODE if ARCH_X86
-       depends on PCI_ROM_RUN || VGA_ROM_RUN
+       depends on PCI_ROM_RUN || VGA_ROM_RUN || GEODE_VSA
 
 config PCI_OPTION_ROM_RUN_REALMODE
        prompt "Native mode"
        bool
        depends on ARCH_X86
        help
-         If you select this option, PCI option ROMs will be executed
+         If you select this option, PCI Option ROMs will be executed
          natively on the CPU in real mode. No CPU emulation is involved,
          so this is the fastest, but also the least secure option.
          (only works on x86/x64 systems)
@@ -61,84 +81,28 @@ config PCI_OPTION_ROM_RUN_REALMODE
 config PCI_OPTION_ROM_RUN_YABEL
        prompt "Secure mode"
        bool
+       depends on !GEODE_VSA
        help
          If you select this option, the x86emu CPU emulator will be used to
-         execute PCI option ROMs.
+         execute PCI Option ROMs.
 
-         This option prevents option ROMs from doing dirty tricks with the
+         This option prevents Option ROMs from doing dirty tricks with the
          system (such as installing SMM modules or hypervisors), but it is
-         also significantly slower than the native option ROM initialization
+         also significantly slower than the native Option ROM initialization
          method.
 
          This is the default choice for non-x86 systems.
 
 endchoice
 
-# TODO: Describe better, and/or make a "choice" selection for this.
-config YABEL_DEBUG_FLAGS
-       prompt "Hex value for YABEL debug flags"
-       hex
-       default 0x0
-       depends on PCI_OPTION_ROM_RUN_YABEL
-       help
-         CONFIG_YABEL_DEBUG_FLAGS is a binary switch that allows you
-         to select the following items to debug. 1=on 0=off. After you
-         decide what you want to debug create the binary value, convert to
-         hex and set the option.
-
-         Example for "debug all":
-           CONFIG_YABEL_DEBUG_FLAGS = 0x31FF
-
-         |-DEBUG_JMP - Print info about JMP and RETF opcodes from x86emu
-         ||-DEBUG_TRACE_X86EMU - Print _all_ opcodes that are executed by
-         ||                      x86emu (WARNING: this will produce a LOT
-         ||                      of output)
-         |||-Currently unused
-         ||||-Currently unused
-         |||||-Currently unused
-         ||||||-DEBUG_PNP - Print Plug And Play accesses made by option ROM
-         |||||||-DEBUG_DISK - Print Disk I/O related messages, currently unused
-         ||||||||-DEBUG_PMM - Print messages related to POST Memory
-         ||||||||             Manager (PMM)
-         |||||||||-DEBUG_VBE - Print messages related to VESA BIOS Extension
-         |||||||||             (VBE) functions
-         ||||||||||-DEBUG_PRINT_INT10 - Let INT10 (i.e. character output)
-         ||||||||||                     calls print messages to debug output
-         |||||||||||-DEBUG_INTR - Print messages related to interrupt handling
-         ||||||||||||-DEBUG_CHECK_VMEM_ACCESS - Print messages related to
-         ||||||||||||                           accesses to certain areas of
-         ||||||||||||                           the virtual memory (e.g. BDA
-         ||||||||||||                           (BIOS Data Area) or interrupt
-         ||||||||||||                           vectors)
-         |||||||||||||-DEBUG_MEM - Print memory accesses made by option ROM
-         |||||||||||||             (NOTE: this also includes accesses to
-         |||||||||||||             fetch instructions)
-         ||||||||||||||-DEBUG_IO - Print I/O accesses made by option ROM
-         11000111111111 - Maximum binary value, i.e. "debug all"
-                          (WARNING: This could run for hours)
-
-         DEBUG_IO                      0x0001
-         DEBUG_MEM                     0x0002
-         DEBUG_CHECK_VMEM_ACCESS       0x0004
-         DEBUG_INTR                    0x0008
-         DEBUG_PRINT_INT10             0x0010
-         DEBUG_VBE                     0x0020
-         DEBUG_PMM                     0x0040
-         DEBUG_DISK                    0x0080
-         DEBUG_PNP                     0x0100
-         DEBUG_TRACE_X86EMU            0x1000
-         DEBUG_JMP                     0x2000
-
-         See debug.h for values. 0 is no debug output, 0x31ff is _verbose_.
-
 config YABEL_PCI_ACCESS_OTHER_DEVICES
-       prompt "Allow option ROMs to access other devices"
+       prompt "Allow Option ROMs to access other devices"
        bool
        depends on PCI_OPTION_ROM_RUN_YABEL
        help
-         Per default, YABEL only allows option ROMs to access the PCI device
+         Per default, YABEL only allows Option ROMs to access the PCI device
          that they are associated with. However, this causes trouble for some
-         onboard graphics chips whose option ROM needs to reconfigure the
+         onboard graphics chips whose Option ROM needs to reconfigure the
          north bridge.
 
 config YABEL_VIRTMEM_LOCATION
@@ -150,6 +114,11 @@ config YABEL_VIRTMEM_LOCATION
          YABEL requires 1MB memory for its CPU emulation. This memory is
          normally located at 16MB.
 
+config YABEL_VIRTMEM_LOCATION
+       hex
+       depends on PCI_OPTION_ROM_RUN_YABEL && !EXPERT
+       default 0x1000000
+
 config YABEL_DIRECTHW
        prompt "Direct hardware access"
        bool
@@ -162,12 +131,12 @@ config YABEL_DIRECTHW
 
          When choosing this option, x86emu will pass through all hardware
          accesses to memory and I/O devices to the underlying memory and I/O
-         addresses. While this option prevents option ROMs from doing dirty
+         addresses. While this option prevents Option ROMs from doing dirty
          tricks with the CPU (such as installing SMM modules or hypervisors),
          they can still access all devices in the system.
          Enable this option for a good compromise between security and speed.
 
-config CONSOLE_VGA_MULTI
+config MULTIPLE_VGA_ADAPTERS
        bool
        default n
 
@@ -194,3 +163,17 @@ config AGP_PLUGIN_SUPPORT
 config CARDBUS_PLUGIN_SUPPORT
        bool
        default y
+
+config PCIEXP_COMMON_CLOCK
+       prompt "Enable PCIe Common Clock"
+       bool
+       default n
+       help
+         Detect and enable Common Clock on PCIe links.
+
+config PCIEXP_ASPM
+       prompt "Enable PCIe ASPM"
+       bool
+       default n
+       help
+         Detect and enable ASPM on PCIe links.