From 75d74b8f61de2e50989bf3b601ad414abdeeb964 Mon Sep 17 00:00:00 2001 From: nalin Date: Sun, 18 Jul 1999 06:44:42 +0000 Subject: Initial revision --- ddcprobe/vesamode.c | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 ddcprobe/vesamode.c (limited to 'ddcprobe/vesamode.c') diff --git a/ddcprobe/vesamode.c b/ddcprobe/vesamode.c new file mode 100644 index 000000000..5e8798a5a --- /dev/null +++ b/ddcprobe/vesamode.c @@ -0,0 +1,71 @@ +/* Most of these come from http://www.knowplace.org/timings.html */ + +#include "vesamode.h" +#ident "$Id$" + +/* Known standard VESA modes. */ +struct vesa_mode_t known_vesa_modes[] = { + /* VESA 1.0/1.1 ? */ + {0x100, 640, 400, 256, "640x400x256"}, + {0x101, 640, 480, 256, "640x480x256"}, + {0x102, 800, 600, 16, "800x600x16"}, + {0x103, 800, 600, 256, "800x600x256"}, + {0x104, 1024, 768, 16, "1024x768x16"}, + {0x105, 1024, 768, 256, "1024x768x256"}, + {0x106, 1280, 1024, 16, "1280x1024x16"}, + {0x107, 1280, 1024, 256,"1280x1024x256"}, + {0x108, 80, 60, 0, "80x60 (text)"}, + {0x109, 132, 25, 0, "132x25 (text)"}, + {0x10a, 132, 43, 0, "132x43 (text)"}, + {0x10b, 132, 50, 0, "132x50 (text)"}, + {0x10c, 132, 60, 0, "132x60 (text)"}, + /* VESA 1.2 */ + {0x10d, 320, 200, 32768, "320x200x32k"}, + {0x10e, 320, 200, 65536, "320x200x64k"}, + {0x10f, 320, 200, 16777216, "320x200x16m"}, + {0x110, 640, 480, 32768, "640x480x32k"}, + {0x111, 640, 480, 65536, "640x480x64k"}, + {0x112, 640, 480, 16777216, "640x480x16m"}, + {0x113, 800, 600, 32768, "800x600x32k"}, + {0x114, 800, 600, 65536, "800x600x64k"}, + {0x115, 800, 600, 16777216, "800x600x16m"}, + {0x116, 1024, 768, 32768, "1024x768x32k"}, + {0x117, 1024, 768, 65536, "1024x768x64k"}, + {0x118, 1024, 768, 16777216, "1024x768x16m"}, + {0x119, 1280, 1024, 32768, "1280x1024x32k"}, + {0x11a, 1280, 1024, 65536, "1280x1024x64k"}, + {0x11b, 1280, 1024, 16777216, "1280x1024x16m"}, + /* VESA 2.0 */ + {0x120, 1600, 1200, 256, "1600x1200x256"}, + {0x121, 1600, 1200, 32768, "1600x1200x32k"}, + {0x122, 1600, 1200, 16777216, "1600x1200x64k"}, + { 0, 0, 0, 0, ""}, +}; + +struct vesa_timing_t known_vesa_timings[] = { + { 640, 480, 75, 31.50, { 640, 16, 64, 120, 480, 1, 3, 16}, + hsync_neg, vsync_pos}, + { 640, 480, 85, 36.00, { 640, 56, 56, 80, 480, 1, 3, 25}, + hsync_neg, vsync_pos}, + { 800, 600, 75, 49.50, { 800, 16, 80, 160, 600, 1, 3, 21}, + hsync_pos, vsync_pos}, + { 800, 600, 85, 56.25, { 800, 32, 64, 132, 600, 1, 3, 27}, + hsync_pos, vsync_pos}, + {1024, 768, 75, 78.75, {1024, 16, 96, 176, 768, 1, 3, 28}, + hsync_pos, vsync_pos}, + {1024, 768, 85, 94.50, {1024, 48, 96, 208, 768, 1, 3, 36}, + hsync_pos, vsync_pos}, + {1152, 864, 75, 108.00, {1152, 64, 128, 256, 864, 1, 3, 32}, + hsync_pos, vsync_pos}, + {1152, 864, 85, 121.50, {1152, 64, 128, 224, 864, 1, 3, 43}, + hsync_pos, vsync_pos}, + {1280, 1024, 75, 135.00, {1280, 16, 144, 248, 1024, 1, 3, 38}, + hsync_pos, vsync_pos}, + {1280, 1024, 85, 157.50, {1280, 64, 160, 224, 1024, 1, 3, 44}, + hsync_pos, vsync_pos}, + {1600, 1200, 75, 202.50, {1600, 64, 192, 304, 1200, 1, 3, 46}, + hsync_pos, vsync_pos}, + {1600, 1200, 85, 229.50, {1600, 64, 192, 304, 1200, 1, 3, 46}, + hsync_pos, vsync_pos}, + { 0, 0, 0, 0.00, { 0, 0, 0, 0, 0, 0, 0, 0}, 0, 0}, +}; -- cgit