Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 1 | # Kconfig SeaBIOS VGA BIOS configuration |
| 2 | |
| 3 | menu "VGA ROM" |
| 4 | choice |
| 5 | prompt "VGA Hardware Type" |
| 6 | default NO_VGABIOS |
| 7 | |
| 8 | config NO_VGABIOS |
| 9 | bool "None" |
| 10 | help |
| 11 | Do not build a VGA BIOS. |
| 12 | |
| 13 | config VGA_STANDARD_VGA |
Kevin O'Connor | 58b157f | 2013-02-13 19:36:02 -0500 | [diff] [blame] | 14 | depends on QEMU |
Kevin O'Connor | 4562bf6 | 2012-04-15 22:02:58 -0400 | [diff] [blame] | 15 | bool "QEMU/Bochs Original IBM 256K VGA" |
Kevin O'Connor | efbf4d6 | 2014-02-09 11:50:21 -0500 | [diff] [blame] | 16 | select VGA_STDVGA_PORTS |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 17 | help |
Kevin O'Connor | 4562bf6 | 2012-04-15 22:02:58 -0400 | [diff] [blame] | 18 | Build basic VGA BIOS support (pre Super-VGA) for use |
| 19 | on emulators. |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 20 | |
| 21 | config VGA_CIRRUS |
Kevin O'Connor | 58b157f | 2013-02-13 19:36:02 -0500 | [diff] [blame] | 22 | depends on QEMU |
Kevin O'Connor | 4562bf6 | 2012-04-15 22:02:58 -0400 | [diff] [blame] | 23 | bool "QEMU/Bochs Cirrus SVGA" |
Kevin O'Connor | efbf4d6 | 2014-02-09 11:50:21 -0500 | [diff] [blame] | 24 | select VGA_STDVGA_PORTS |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 25 | help |
Kevin O'Connor | 197ea6c | 2012-02-07 21:03:23 -0500 | [diff] [blame] | 26 | Build support for Cirrus VGA emulation found on QEMU |
| 27 | and Bochs emulators. This is for emulators; it is not |
| 28 | intended for use on real Cirrus hardware. |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 29 | |
| 30 | config VGA_BOCHS |
Kevin O'Connor | 58b157f | 2013-02-13 19:36:02 -0500 | [diff] [blame] | 31 | depends on QEMU |
Kevin O'Connor | 4562bf6 | 2012-04-15 22:02:58 -0400 | [diff] [blame] | 32 | bool "QEMU/Bochs VBE SVGA" |
Kevin O'Connor | efbf4d6 | 2014-02-09 11:50:21 -0500 | [diff] [blame] | 33 | select VGA_STDVGA_PORTS |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 34 | help |
Kevin O'Connor | 4562bf6 | 2012-04-15 22:02:58 -0400 | [diff] [blame] | 35 | Build support for Bochs DISPI interface (a custom VBE |
| 36 | protocol) found on QEMU and Bochs emulators. |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 37 | |
| 38 | config VGA_GEODEGX2 |
Kevin O'Connor | 4562bf6 | 2012-04-15 22:02:58 -0400 | [diff] [blame] | 39 | bool "GeodeGX2" |
Kevin O'Connor | efbf4d6 | 2014-02-09 11:50:21 -0500 | [diff] [blame] | 40 | select VGA_STDVGA_PORTS |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 41 | help |
| 42 | Build support for Geode GX2 vga. |
| 43 | |
| 44 | config VGA_GEODELX |
Kevin O'Connor | 4562bf6 | 2012-04-15 22:02:58 -0400 | [diff] [blame] | 45 | bool "GeodeLX" |
Kevin O'Connor | efbf4d6 | 2014-02-09 11:50:21 -0500 | [diff] [blame] | 46 | select VGA_STDVGA_PORTS |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 47 | help |
| 48 | Build support for Geode LX vga. |
Kevin O'Connor | 7c79029 | 2014-02-11 15:34:58 -0500 | [diff] [blame] | 49 | |
| 50 | config VGA_COREBOOT |
| 51 | depends on COREBOOT |
| 52 | bool "coreboot linear framebuffer" |
Kevin O'Connor | 6fed307 | 2014-10-30 12:09:19 -0400 | [diff] [blame] | 53 | select VGA_EMULATE_TEXT |
Kevin O'Connor | 7c79029 | 2014-02-11 15:34:58 -0500 | [diff] [blame] | 54 | help |
| 55 | Build support for a vgabios wrapper around video |
| 56 | devices initialized using coreboot native vga init. |
| 57 | |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 58 | endchoice |
| 59 | |
Christian Gmeiner | 5556f21 | 2012-10-01 14:02:47 +0200 | [diff] [blame] | 60 | choice |
| 61 | depends on VGA_GEODEGX2 || VGA_GEODELX |
| 62 | prompt "Output Mode" |
| 63 | default VGA_OUTPUT_CRT |
| 64 | |
| 65 | config VGA_OUTPUT_CRT |
| 66 | bool "CRT" |
| 67 | help |
| 68 | Use CRT for output. |
| 69 | |
| 70 | config VGA_OUTPUT_PANEL |
| 71 | bool "Flat Panel" |
| 72 | help |
| 73 | Use flat panel for output. |
| 74 | |
| 75 | config VGA_OUTPUT_CRT_PANEL |
| 76 | bool "CRT and Flat Panel" |
| 77 | help |
| 78 | Use CRT and flat panel for output. |
| 79 | endchoice |
| 80 | |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 81 | config BUILD_VGABIOS |
| 82 | bool |
| 83 | default !NO_VGABIOS |
| 84 | |
Kevin O'Connor | efbf4d6 | 2014-02-09 11:50:21 -0500 | [diff] [blame] | 85 | config VGA_STDVGA_PORTS |
| 86 | bool |
Kevin O'Connor | 6fed307 | 2014-10-30 12:09:19 -0400 | [diff] [blame] | 87 | config VGA_EMULATE_TEXT |
| 88 | bool |
| 89 | help |
| 90 | Support emulating text mode features when only a |
| 91 | framebuffer is available. |
Kevin O'Connor | efbf4d6 | 2014-02-09 11:50:21 -0500 | [diff] [blame] | 92 | |
Kevin O'Connor | 4a8b58c | 2013-11-30 19:16:15 -0500 | [diff] [blame] | 93 | config VGA_ALLOCATE_EXTRA_STACK |
| 94 | depends on BUILD_VGABIOS |
| 95 | bool "Allocate an internal stack for 16bit interrupt entry point" |
| 96 | default y |
| 97 | help |
| 98 | Attempt to allocate (via BIOS PMM call) an internal stack |
| 99 | for the legacy 16bit 0x10 interrupt entry point. This |
| 100 | reduces the amount of space on the caller's stack that |
| 101 | SeaVGABIOS uses. |
| 102 | |
| 103 | config VGA_EXTRA_STACK_SIZE |
| 104 | int |
| 105 | default 512 |
| 106 | |
Kevin O'Connor | b3df857 | 2012-01-15 02:43:19 -0500 | [diff] [blame] | 107 | config VGA_VBE |
| 108 | depends on BUILD_VGABIOS |
| 109 | bool "Video BIOS Extensions (VBE)" |
| 110 | default y |
| 111 | help |
| 112 | Support VBE. |
| 113 | |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 114 | config VGA_PCI |
Kevin O'Connor | 7c79029 | 2014-02-11 15:34:58 -0500 | [diff] [blame] | 115 | depends on BUILD_VGABIOS && !VGA_COREBOOT |
Kevin O'Connor | 5f4ce9e | 2012-01-15 02:01:24 -0500 | [diff] [blame] | 116 | bool "PCI ROM Headers" |
| 117 | default y |
| 118 | help |
| 119 | Build PCI ROM headers so the vga rom can be extracted from |
| 120 | a PCI device. |
| 121 | |
| 122 | config OVERRIDE_PCI_ID |
| 123 | depends on VGA_PCI |
| 124 | bool "Override PCI Vendor and Device IDs" |
| 125 | help |
| 126 | Specify specific values for the PCI Vendor and Device IDs. |
| 127 | |
| 128 | config VGA_VID |
| 129 | depends on VGA_PCI |
| 130 | hex |
| 131 | prompt "PCI Vendor ID" if OVERRIDE_PCI_ID |
| 132 | default 0x1013 if VGA_CIRRUS |
| 133 | default 0x1234 if VGA_BOCHS |
| 134 | default 0x100b if VGA_GEODEGX2 |
| 135 | default 0x1022 if VGA_GEODELX |
| 136 | default 0x0000 |
| 137 | help |
| 138 | Vendor ID for the PCI ROM |
| 139 | |
| 140 | config VGA_DID |
| 141 | depends on VGA_PCI |
| 142 | hex |
| 143 | prompt "PCI Vendor ID" if OVERRIDE_PCI_ID |
| 144 | default 0x00b8 if VGA_CIRRUS |
| 145 | default 0x1111 if VGA_BOCHS |
| 146 | default 0x0030 if VGA_GEODEGX2 |
| 147 | default 0x2081 if VGA_GEODELX |
| 148 | default 0x0000 |
| 149 | help |
| 150 | Device ID for the PCI ROM |
| 151 | endmenu |