blob: b442b3e83259a82eed50a735012f117159970f00 [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'Connor5f4ce9e2012-01-15 02:01:24 -050016 help
Kevin O'Connor4562bf62012-04-15 22:02:58 -040017 Build basic VGA BIOS support (pre Super-VGA) for use
18 on emulators.
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050019
20 config VGA_CIRRUS
Kevin O'Connor58b157f2013-02-13 19:36:02 -050021 depends on QEMU
Kevin O'Connor4562bf62012-04-15 22:02:58 -040022 bool "QEMU/Bochs Cirrus SVGA"
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050023 help
Kevin O'Connor197ea6c2012-02-07 21:03:23 -050024 Build support for Cirrus VGA emulation found on QEMU
25 and Bochs emulators. This is for emulators; it is not
26 intended for use on real Cirrus hardware.
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050027
28 config VGA_BOCHS
Kevin O'Connor58b157f2013-02-13 19:36:02 -050029 depends on QEMU
Kevin O'Connor4562bf62012-04-15 22:02:58 -040030 bool "QEMU/Bochs VBE SVGA"
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050031 help
Kevin O'Connor4562bf62012-04-15 22:02:58 -040032 Build support for Bochs DISPI interface (a custom VBE
33 protocol) found on QEMU and Bochs emulators.
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050034
35 config VGA_GEODEGX2
Kevin O'Connor4562bf62012-04-15 22:02:58 -040036 bool "GeodeGX2"
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050037 help
38 Build support for Geode GX2 vga.
39
40 config VGA_GEODELX
Kevin O'Connor4562bf62012-04-15 22:02:58 -040041 bool "GeodeLX"
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050042 help
43 Build support for Geode LX vga.
44 endchoice
45
Christian Gmeiner5556f212012-10-01 14:02:47 +020046 choice
47 depends on VGA_GEODEGX2 || VGA_GEODELX
48 prompt "Output Mode"
49 default VGA_OUTPUT_CRT
50
51 config VGA_OUTPUT_CRT
52 bool "CRT"
53 help
54 Use CRT for output.
55
56 config VGA_OUTPUT_PANEL
57 bool "Flat Panel"
58 help
59 Use flat panel for output.
60
61 config VGA_OUTPUT_CRT_PANEL
62 bool "CRT and Flat Panel"
63 help
64 Use CRT and flat panel for output.
65 endchoice
66
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050067 config BUILD_VGABIOS
68 bool
69 default !NO_VGABIOS
70
Kevin O'Connor4a8b58c2013-11-30 19:16:15 -050071 config VGA_ALLOCATE_EXTRA_STACK
72 depends on BUILD_VGABIOS
73 bool "Allocate an internal stack for 16bit interrupt entry point"
74 default y
75 help
76 Attempt to allocate (via BIOS PMM call) an internal stack
77 for the legacy 16bit 0x10 interrupt entry point. This
78 reduces the amount of space on the caller's stack that
79 SeaVGABIOS uses.
80
81 config VGA_EXTRA_STACK_SIZE
82 int
83 default 512
84
Kevin O'Connorb3df8572012-01-15 02:43:19 -050085 config VGA_VBE
86 depends on BUILD_VGABIOS
87 bool "Video BIOS Extensions (VBE)"
88 default y
89 help
90 Support VBE.
91
Kevin O'Connor5f4ce9e2012-01-15 02:01:24 -050092 config VGA_PCI
93 depends on BUILD_VGABIOS
94 bool "PCI ROM Headers"
95 default y
96 help
97 Build PCI ROM headers so the vga rom can be extracted from
98 a PCI device.
99
100 config OVERRIDE_PCI_ID
101 depends on VGA_PCI
102 bool "Override PCI Vendor and Device IDs"
103 help
104 Specify specific values for the PCI Vendor and Device IDs.
105
106 config VGA_VID
107 depends on VGA_PCI
108 hex
109 prompt "PCI Vendor ID" if OVERRIDE_PCI_ID
110 default 0x1013 if VGA_CIRRUS
111 default 0x1234 if VGA_BOCHS
112 default 0x100b if VGA_GEODEGX2
113 default 0x1022 if VGA_GEODELX
114 default 0x0000
115 help
116 Vendor ID for the PCI ROM
117
118 config VGA_DID
119 depends on VGA_PCI
120 hex
121 prompt "PCI Vendor ID" if OVERRIDE_PCI_ID
122 default 0x00b8 if VGA_CIRRUS
123 default 0x1111 if VGA_BOCHS
124 default 0x0030 if VGA_GEODEGX2
125 default 0x2081 if VGA_GEODELX
126 default 0x0000
127 help
128 Device ID for the PCI ROM
129endmenu