#include "vgabios.h" // SET_VGA
#include "vgafb.h" // handle_gfx_op
#include "vgautil.h" // VBE_total_memory
-#include "svgamodes.h" // svga_modes\r
+#include "svgamodes.h" // svga_modes
static int CBmode VAR16;
static struct vgamode_s CBmodeinfo VAR16;
return &CBemulinfo;
int i;
- for (i = 0; i < GET_GLOBAL(svga_mcount); i++) {\r
- struct generic_svga_mode *cbmode_g = &svga_modes[i];\r
+ for (i = 0; i < GET_GLOBAL(svga_mcount); i++) {
+ struct generic_svga_mode *cbmode_g = &svga_modes[i];
if (GET_GLOBAL(cbmode_g->mode) == 0xffff)
continue;
if (GET_GLOBAL(cbmode_g->mode) == mode)
* + 24 Bpp and 32 Bpp are supported
*/
int i;
- for (i = 0; i < GET_GLOBAL(svga_mcount) && dest < last; i++) {\r
- struct generic_svga_mode *cbmode_g = &svga_modes[i];\r
+ for (i = 0; i < GET_GLOBAL(svga_mcount) && dest < last; i++) {
+ struct generic_svga_mode *cbmode_g = &svga_modes[i];
u16 mode = GET_GLOBAL(cbmode_g->mode);
if (mode == 0xffff)
continue;
, get_global_seg(), &CBmodeinfo, sizeof(CBemulinfo));
// Validate modes
- for (i = 0; i < GET_GLOBAL(svga_mcount); i++) {\r
- struct generic_svga_mode *cbmode_g = &svga_modes[i];\r
+ for (i = 0; i < GET_GLOBAL(svga_mcount); i++) {
+ struct generic_svga_mode *cbmode_g = &svga_modes[i];
/* Skip VBE modes that doesn't fit into coreboot's framebuffer */
- if ((GET_GLOBAL(cbmode_g->info.memmodel) != MM_DIRECT)\r
- || (GET_GLOBAL(cbmode_g->info.height) > ylines)\r
+ if ((GET_GLOBAL(cbmode_g->info.memmodel) != MM_DIRECT)
+ || (GET_GLOBAL(cbmode_g->info.height) > ylines)
|| (GET_GLOBAL(cbmode_g->info.width) > xlines)
|| (GET_GLOBAL(cbmode_g->info.depth) != bpp)) {
dprintf(3, "Removing mode %x\n", GET_GLOBAL(cbmode_g->mode));
{ 0x190, { MM_DIRECT, 1920, 1080, 16, 8, 16, SEG_GRAPH } },
{ 0x191, { MM_DIRECT, 1920, 1080, 24, 8, 16, SEG_GRAPH } },
{ 0x192, { MM_DIRECT, 1920, 1080, 32, 8, 16, SEG_GRAPH } },
-\r
- /* custom resolutions for 16:9 displays */\r
- { 0x193, { MM_DIRECT, 1600, 900, 16, 8, 16, SEG_GRAPH } },\r
- { 0x194, { MM_DIRECT, 1600, 900, 24, 8, 16, SEG_GRAPH } },\r
- { 0x195, { MM_DIRECT, 1600, 900, 32, 8, 16, SEG_GRAPH } },\r
- { 0x196, { MM_DIRECT, 2560, 1440, 16, 8, 16, SEG_GRAPH } },\r
- { 0x197, { MM_DIRECT, 2560, 1440, 24, 8, 16, SEG_GRAPH } },\r
- { 0x198, { MM_DIRECT, 2560, 1440, 32, 8, 16, SEG_GRAPH } },\r
+
+ /* custom resolutions for 16:9 displays */
+ { 0x193, { MM_DIRECT, 1600, 900, 16, 8, 16, SEG_GRAPH } },
+ { 0x194, { MM_DIRECT, 1600, 900, 24, 8, 16, SEG_GRAPH } },
+ { 0x195, { MM_DIRECT, 1600, 900, 32, 8, 16, SEG_GRAPH } },
+ { 0x196, { MM_DIRECT, 2560, 1440, 16, 8, 16, SEG_GRAPH } },
+ { 0x197, { MM_DIRECT, 2560, 1440, 24, 8, 16, SEG_GRAPH } },
+ { 0x198, { MM_DIRECT, 2560, 1440, 32, 8, 16, SEG_GRAPH } },
};
unsigned int svga_mcount VAR16 = ARRAY_SIZE(svga_modes);