blob: 6e494c719f39f6705bdfb15b463553de21a566a8 [file] [log] [blame]
Kevin O'Connorb9b923e2019-10-21 18:57:40 -04001// Common svga mode definitions
2//
3// Copyright (C) 2012 Kevin O'Connor <kevin@koconnor.net>
4// Copyright (C) 2011 Julian Pidancet <julian.pidancet@citrix.com>
5// Copyright (C) 2002 Jeroen Janssen
6//
7// This file may be distributed under the terms of the GNU LGPLv3 license.
8
Gerd Hoffmann004f5b32019-03-08 11:10:59 +01009#include "stdvga.h" // SEG_GRAPH
10#include "vgabios.h" // VAR16
11
12#include "svgamodes.h"
13
14struct generic_svga_mode svga_modes[] VAR16 = {
15 /* standard modes */
16 { 0x100, { MM_PACKED, 640, 400, 8, 8, 16, SEG_GRAPH } },
17 { 0x101, { MM_PACKED, 640, 480, 8, 8, 16, SEG_GRAPH } },
18 { 0x102, { MM_PLANAR, 800, 600, 4, 8, 16, SEG_GRAPH } },
19 { 0x103, { MM_PACKED, 800, 600, 8, 8, 16, SEG_GRAPH } },
20 { 0x104, { MM_PLANAR, 1024, 768, 4, 8, 16, SEG_GRAPH } },
21 { 0x105, { MM_PACKED, 1024, 768, 8, 8, 16, SEG_GRAPH } },
22 { 0x106, { MM_PLANAR, 1280, 1024, 4, 8, 16, SEG_GRAPH } },
23 { 0x107, { MM_PACKED, 1280, 1024, 8, 8, 16, SEG_GRAPH } },
24 { 0x10D, { MM_DIRECT, 320, 200, 15, 8, 16, SEG_GRAPH } },
25 { 0x10E, { MM_DIRECT, 320, 200, 16, 8, 16, SEG_GRAPH } },
26 { 0x10F, { MM_DIRECT, 320, 200, 24, 8, 16, SEG_GRAPH } },
27 { 0x110, { MM_DIRECT, 640, 480, 15, 8, 16, SEG_GRAPH } },
28 { 0x111, { MM_DIRECT, 640, 480, 16, 8, 16, SEG_GRAPH } },
29 { 0x112, { MM_DIRECT, 640, 480, 24, 8, 16, SEG_GRAPH } },
30 { 0x113, { MM_DIRECT, 800, 600, 15, 8, 16, SEG_GRAPH } },
31 { 0x114, { MM_DIRECT, 800, 600, 16, 8, 16, SEG_GRAPH } },
32 { 0x115, { MM_DIRECT, 800, 600, 24, 8, 16, SEG_GRAPH } },
33 { 0x116, { MM_DIRECT, 1024, 768, 15, 8, 16, SEG_GRAPH } },
34 { 0x117, { MM_DIRECT, 1024, 768, 16, 8, 16, SEG_GRAPH } },
35 { 0x118, { MM_DIRECT, 1024, 768, 24, 8, 16, SEG_GRAPH } },
36 { 0x119, { MM_DIRECT, 1280, 1024, 15, 8, 16, SEG_GRAPH } },
37 { 0x11A, { MM_DIRECT, 1280, 1024, 16, 8, 16, SEG_GRAPH } },
38 { 0x11B, { MM_DIRECT, 1280, 1024, 24, 8, 16, SEG_GRAPH } },
39 { 0x11C, { MM_PACKED, 1600, 1200, 8, 8, 16, SEG_GRAPH } },
40 { 0x11D, { MM_DIRECT, 1600, 1200, 15, 8, 16, SEG_GRAPH } },
41 { 0x11E, { MM_DIRECT, 1600, 1200, 16, 8, 16, SEG_GRAPH } },
42 { 0x11F, { MM_DIRECT, 1600, 1200, 24, 8, 16, SEG_GRAPH } },
43 /* other modes */
44 { 0x140, { MM_DIRECT, 320, 200, 32, 8, 16, SEG_GRAPH } },
45 { 0x141, { MM_DIRECT, 640, 400, 32, 8, 16, SEG_GRAPH } },
46 { 0x142, { MM_DIRECT, 640, 480, 32, 8, 16, SEG_GRAPH } },
47 { 0x143, { MM_DIRECT, 800, 600, 32, 8, 16, SEG_GRAPH } },
48 { 0x144, { MM_DIRECT, 1024, 768, 32, 8, 16, SEG_GRAPH } },
49 { 0x145, { MM_DIRECT, 1280, 1024, 32, 8, 16, SEG_GRAPH } },
50 { 0x146, { MM_PACKED, 320, 200, 8, 8, 16, SEG_GRAPH } },
51 { 0x147, { MM_DIRECT, 1600, 1200, 32, 8, 16, SEG_GRAPH } },
52 { 0x148, { MM_PACKED, 1152, 864, 8, 8, 16, SEG_GRAPH } },
53 { 0x149, { MM_DIRECT, 1152, 864, 15, 8, 16, SEG_GRAPH } },
54 { 0x14a, { MM_DIRECT, 1152, 864, 16, 8, 16, SEG_GRAPH } },
55 { 0x14b, { MM_DIRECT, 1152, 864, 24, 8, 16, SEG_GRAPH } },
56 { 0x14c, { MM_DIRECT, 1152, 864, 32, 8, 16, SEG_GRAPH } },
57 { 0x175, { MM_DIRECT, 1280, 768, 16, 8, 16, SEG_GRAPH } },
58 { 0x176, { MM_DIRECT, 1280, 768, 24, 8, 16, SEG_GRAPH } },
59 { 0x177, { MM_DIRECT, 1280, 768, 32, 8, 16, SEG_GRAPH } },
60 { 0x178, { MM_DIRECT, 1280, 800, 16, 8, 16, SEG_GRAPH } },
61 { 0x179, { MM_DIRECT, 1280, 800, 24, 8, 16, SEG_GRAPH } },
62 { 0x17a, { MM_DIRECT, 1280, 800, 32, 8, 16, SEG_GRAPH } },
63 { 0x17b, { MM_DIRECT, 1280, 960, 16, 8, 16, SEG_GRAPH } },
64 { 0x17c, { MM_DIRECT, 1280, 960, 24, 8, 16, SEG_GRAPH } },
65 { 0x17d, { MM_DIRECT, 1280, 960, 32, 8, 16, SEG_GRAPH } },
66 { 0x17e, { MM_DIRECT, 1440, 900, 16, 8, 16, SEG_GRAPH } },
67 { 0x17f, { MM_DIRECT, 1440, 900, 24, 8, 16, SEG_GRAPH } },
68 { 0x180, { MM_DIRECT, 1440, 900, 32, 8, 16, SEG_GRAPH } },
69 { 0x181, { MM_DIRECT, 1400, 1050, 16, 8, 16, SEG_GRAPH } },
70 { 0x182, { MM_DIRECT, 1400, 1050, 24, 8, 16, SEG_GRAPH } },
71 { 0x183, { MM_DIRECT, 1400, 1050, 32, 8, 16, SEG_GRAPH } },
72 { 0x184, { MM_DIRECT, 1680, 1050, 16, 8, 16, SEG_GRAPH } },
73 { 0x185, { MM_DIRECT, 1680, 1050, 24, 8, 16, SEG_GRAPH } },
74 { 0x186, { MM_DIRECT, 1680, 1050, 32, 8, 16, SEG_GRAPH } },
75 { 0x187, { MM_DIRECT, 1920, 1200, 16, 8, 16, SEG_GRAPH } },
76 { 0x188, { MM_DIRECT, 1920, 1200, 24, 8, 16, SEG_GRAPH } },
77 { 0x189, { MM_DIRECT, 1920, 1200, 32, 8, 16, SEG_GRAPH } },
78 { 0x18a, { MM_DIRECT, 2560, 1600, 16, 8, 16, SEG_GRAPH } },
79 { 0x18b, { MM_DIRECT, 2560, 1600, 24, 8, 16, SEG_GRAPH } },
80 { 0x18c, { MM_DIRECT, 2560, 1600, 32, 8, 16, SEG_GRAPH } },
81 { 0x18d, { MM_DIRECT, 1280, 720, 16, 8, 16, SEG_GRAPH } },
82 { 0x18e, { MM_DIRECT, 1280, 720, 24, 8, 16, SEG_GRAPH } },
83 { 0x18f, { MM_DIRECT, 1280, 720, 32, 8, 16, SEG_GRAPH } },
84 { 0x190, { MM_DIRECT, 1920, 1080, 16, 8, 16, SEG_GRAPH } },
85 { 0x191, { MM_DIRECT, 1920, 1080, 24, 8, 16, SEG_GRAPH } },
86 { 0x192, { MM_DIRECT, 1920, 1080, 32, 8, 16, SEG_GRAPH } },
Uwe Kleine-K├Ânig120996f2019-10-20 22:07:26 +020087
88 /* custom resolutions for 16:9 displays */
89 { 0x193, { MM_DIRECT, 1600, 900, 16, 8, 16, SEG_GRAPH } },
90 { 0x194, { MM_DIRECT, 1600, 900, 24, 8, 16, SEG_GRAPH } },
91 { 0x195, { MM_DIRECT, 1600, 900, 32, 8, 16, SEG_GRAPH } },
92 { 0x196, { MM_DIRECT, 2560, 1440, 16, 8, 16, SEG_GRAPH } },
93 { 0x197, { MM_DIRECT, 2560, 1440, 24, 8, 16, SEG_GRAPH } },
94 { 0x198, { MM_DIRECT, 2560, 1440, 32, 8, 16, SEG_GRAPH } },
Gerd Hoffmann004f5b32019-03-08 11:10:59 +010095};
96unsigned int svga_mcount VAR16 = ARRAY_SIZE(svga_modes);