blob: 951240cb20548855c1c18759850e491babfd3334 [file] [log] [blame]
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -05001# Kconfig SeaBIOS VGA BIOS configuration
2
3menu "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'Connor58b157f2013-02-13 19:36:02 -050014 depends on QEMU
Kevin O'Connor4562bf62012-04-15 22:02:58 -040015 bool "QEMU/Bochs Original IBM 256K VGA"
Kevin O'Connorefbf4d62014-02-09 11:50:21 -050016 select VGA_STDVGA_PORTS
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050017 help
Kevin O'Connor4562bf62012-04-15 22:02:58 -040018 Build basic VGA BIOS support (pre Super-VGA) for use
19 on emulators.
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050020
21 config VGA_CIRRUS
Kevin O'Connor58b157f2013-02-13 19:36:02 -050022 depends on QEMU
Kevin O'Connor4562bf62012-04-15 22:02:58 -040023 bool "QEMU/Bochs Cirrus SVGA"
Kevin O'Connorefbf4d62014-02-09 11:50:21 -050024 select VGA_STDVGA_PORTS
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050025 help
Kevin O'Connor197ea6c2012-02-07 21:03:23 -050026 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'Connor5f4ce9e2012-01-15 02:01:24 -050029
30 config VGA_BOCHS
Kevin O'Connor58b157f2013-02-13 19:36:02 -050031 depends on QEMU
Kevin O'Connor4562bf62012-04-15 22:02:58 -040032 bool "QEMU/Bochs VBE SVGA"
Kevin O'Connorefbf4d62014-02-09 11:50:21 -050033 select VGA_STDVGA_PORTS
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050034 help
Kevin O'Connor4562bf62012-04-15 22:02:58 -040035 Build support for Bochs DISPI interface (a custom VBE
36 protocol) found on QEMU and Bochs emulators.
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050037
38 config VGA_GEODEGX2
Kevin O'Connor4562bf62012-04-15 22:02:58 -040039 bool "GeodeGX2"
Kevin O'Connorefbf4d62014-02-09 11:50:21 -050040 select VGA_STDVGA_PORTS
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050041 help
42 Build support for Geode GX2 vga.
43
44 config VGA_GEODELX
Kevin O'Connor4562bf62012-04-15 22:02:58 -040045 bool "GeodeLX"
Kevin O'Connorefbf4d62014-02-09 11:50:21 -050046 select VGA_STDVGA_PORTS
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050047 help
48 Build support for Geode LX vga.
Kevin O'Connor7c790292014-02-11 15:34:58 -050049
50 config VGA_COREBOOT
51 depends on COREBOOT
52 bool "coreboot linear framebuffer"
53 help
54 Build support for a vgabios wrapper around video
55 devices initialized using coreboot native vga init.
56
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050057 endchoice
58
Christian Gmeiner5556f212012-10-01 14:02:47 +020059 choice
60 depends on VGA_GEODEGX2 || VGA_GEODELX
61 prompt "Output Mode"
62 default VGA_OUTPUT_CRT
63
64 config VGA_OUTPUT_CRT
65 bool "CRT"
66 help
67 Use CRT for output.
68
69 config VGA_OUTPUT_PANEL
70 bool "Flat Panel"
71 help
72 Use flat panel for output.
73
74 config VGA_OUTPUT_CRT_PANEL
75 bool "CRT and Flat Panel"
76 help
77 Use CRT and flat panel for output.
78 endchoice
79
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050080 config BUILD_VGABIOS
81 bool
82 default !NO_VGABIOS
83
Kevin O'Connorefbf4d62014-02-09 11:50:21 -050084 config VGA_STDVGA_PORTS
85 bool
86
Kevin O'Connor4a8b58c2013-11-30 19:16:15 -050087 config VGA_ALLOCATE_EXTRA_STACK
88 depends on BUILD_VGABIOS
89 bool "Allocate an internal stack for 16bit interrupt entry point"
90 default y
91 help
92 Attempt to allocate (via BIOS PMM call) an internal stack
93 for the legacy 16bit 0x10 interrupt entry point. This
94 reduces the amount of space on the caller's stack that
95 SeaVGABIOS uses.
96
97 config VGA_EXTRA_STACK_SIZE
98 int
99 default 512
100
Kevin O'Connorb3df8572012-01-15 02:43:19 -0500101 config VGA_VBE
102 depends on BUILD_VGABIOS
103 bool "Video BIOS Extensions (VBE)"
104 default y
105 help
106 Support VBE.
107
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -0500108 config VGA_PCI
Kevin O'Connor7c790292014-02-11 15:34:58 -0500109 depends on BUILD_VGABIOS && !VGA_COREBOOT
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -0500110 bool "PCI ROM Headers"
111 default y
112 help
113 Build PCI ROM headers so the vga rom can be extracted from
114 a PCI device.
115
116 config OVERRIDE_PCI_ID
117 depends on VGA_PCI
118 bool "Override PCI Vendor and Device IDs"
119 help
120 Specify specific values for the PCI Vendor and Device IDs.
121
122 config VGA_VID
123 depends on VGA_PCI
124 hex
125 prompt "PCI Vendor ID" if OVERRIDE_PCI_ID
126 default 0x1013 if VGA_CIRRUS
127 default 0x1234 if VGA_BOCHS
128 default 0x100b if VGA_GEODEGX2
129 default 0x1022 if VGA_GEODELX
130 default 0x0000
131 help
132 Vendor ID for the PCI ROM
133
134 config VGA_DID
135 depends on VGA_PCI
136 hex
137 prompt "PCI Vendor ID" if OVERRIDE_PCI_ID
138 default 0x00b8 if VGA_CIRRUS
139 default 0x1111 if VGA_BOCHS
140 default 0x0030 if VGA_GEODEGX2
141 default 0x2081 if VGA_GEODELX
142 default 0x0000
143 help
144 Device ID for the PCI ROM
145endmenu