blob: f04fca7df558aa81f38fc0834f0fad2689e66976 [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.
49 endchoice
50
Christian Gmeiner5556f212012-10-01 14:02:47 +020051 choice
52 depends on VGA_GEODEGX2 || VGA_GEODELX
53 prompt "Output Mode"
54 default VGA_OUTPUT_CRT
55
56 config VGA_OUTPUT_CRT
57 bool "CRT"
58 help
59 Use CRT for output.
60
61 config VGA_OUTPUT_PANEL
62 bool "Flat Panel"
63 help
64 Use flat panel for output.
65
66 config VGA_OUTPUT_CRT_PANEL
67 bool "CRT and Flat Panel"
68 help
69 Use CRT and flat panel for output.
70 endchoice
71
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050072 config BUILD_VGABIOS
73 bool
74 default !NO_VGABIOS
75
Kevin O'Connorefbf4d62014-02-09 11:50:21 -050076 config VGA_STDVGA_PORTS
77 bool
78
Kevin O'Connor4a8b58c2013-11-30 19:16:15 -050079 config VGA_ALLOCATE_EXTRA_STACK
80 depends on BUILD_VGABIOS
81 bool "Allocate an internal stack for 16bit interrupt entry point"
82 default y
83 help
84 Attempt to allocate (via BIOS PMM call) an internal stack
85 for the legacy 16bit 0x10 interrupt entry point. This
86 reduces the amount of space on the caller's stack that
87 SeaVGABIOS uses.
88
89 config VGA_EXTRA_STACK_SIZE
90 int
91 default 512
92
Kevin O'Connorb3df8572012-01-15 02:43:19 -050093 config VGA_VBE
94 depends on BUILD_VGABIOS
95 bool "Video BIOS Extensions (VBE)"
96 default y
97 help
98 Support VBE.
99
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -0500100 config VGA_PCI
101 depends on BUILD_VGABIOS
102 bool "PCI ROM Headers"
103 default y
104 help
105 Build PCI ROM headers so the vga rom can be extracted from
106 a PCI device.
107
108 config OVERRIDE_PCI_ID
109 depends on VGA_PCI
110 bool "Override PCI Vendor and Device IDs"
111 help
112 Specify specific values for the PCI Vendor and Device IDs.
113
114 config VGA_VID
115 depends on VGA_PCI
116 hex
117 prompt "PCI Vendor ID" if OVERRIDE_PCI_ID
118 default 0x1013 if VGA_CIRRUS
119 default 0x1234 if VGA_BOCHS
120 default 0x100b if VGA_GEODEGX2
121 default 0x1022 if VGA_GEODELX
122 default 0x0000
123 help
124 Vendor ID for the PCI ROM
125
126 config VGA_DID
127 depends on VGA_PCI
128 hex
129 prompt "PCI Vendor ID" if OVERRIDE_PCI_ID
130 default 0x00b8 if VGA_CIRRUS
131 default 0x1111 if VGA_BOCHS
132 default 0x0030 if VGA_GEODEGX2
133 default 0x2081 if VGA_GEODELX
134 default 0x0000
135 help
136 Device ID for the PCI ROM
137endmenu