xref: /openbsd/sys/dev/ic/decmonitors.c (revision d874cce4)
1 /* $OpenBSD: decmonitors.c,v 1.3 2008/06/26 05:42:15 ray Exp $ */
2 
3 /*-
4  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
5  * All rights reserved.
6  *
7  * This code is derived from software contributed to The NetBSD Foundation
8  * by Roland C. Dowdeswell.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  * 1. Redistributions of source code must retain the above copyright
14  *    notice, this list of conditions and the following disclaimer.
15  * 2. Redistributions in binary form must reproduce the above copyright
16  *    notice, this list of conditions and the following disclaimer in the
17  *    documentation and/or other materials provided with the distribution.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30  */
31 
32 #include <sys/types.h>
33 #include <dev/ic/monitors.h>
34 
35 #define MHz	* 1000000
36 #define KHz	* 1000
37 
38 struct monitor decmonitors[] = {
39 	/* 0x0: 1280 x 1024 @ 72Hz */
40 	{ 1280,	32,	160,	232,
41 	  1024,	3,	3,	33,
42 	  130808 KHz },
43 
44 	/* 0x1: 1280 x 1024 @ 66Hz */
45 	{ 1280,	32,	160,	232,
46 	  1024,	3,	3,	33,
47 	  119840 KHz },
48 
49 	/* 0x2: 1280 x 1024 @ 60Hz */
50 	{ 1280,	44,	184,	200,
51 	  1024,	3,	3,	26,
52 	  108180 KHz },
53 
54 	/* 0x3: 1152 x  900 @ 72Hz */
55 	{ 1152,	64,	112,	176,
56 	  900,	6,	10,	44,
57 	  103994 KHz },
58 
59 	/* 0x4: 1600 x 1200 @ 65Hz */
60 	{ 1600,	32,	192,	336,
61 	  1200,	1,	3,	46,
62 	  175 MHz },
63 
64 	/* 0x5: 1024 x  768 @ 70Hz */
65 	{ 1024,	24,	136,	144,
66 	  768,	3,	6,	29,
67 	  75 MHz },
68 
69 	/* 0x6: 1024 x  768 @ 72Hz */
70 	{ 1024,	16,	128,	128,
71 	  768,	1,	6,	22,
72 	  74 MHz },
73 
74 	/* 0x7: 1024 x  864 @ 60Hz */
75 	{ 1024,	12,	128,	116,
76 	  864,	0,	3,	34,
77 	  69 MHz },
78 
79 	/* 0x8: 1024 x  768 @ 60Hz */
80 	{ 1024,	56,	64,	200,
81 	  768,	7,	9,	26,
82 	  65 MHz },
83 
84 	/* 0x9:  800 x  600 @ 72Hz */
85 	{ 800,	56,	120,	64,
86 	  600,	37,	6,	23,
87 	  50 MHz },
88 
89 	/* 0xa:  800 x  600 @ 60Hz */
90 	{ 800,	40,	128,	88,
91 	  600,	1,	4,	23,
92 	  40 MHz },
93 
94 	/* 0xb:  640 x  480 @ 72Hz */
95 	{ 640,	24,	40,	128,
96 	  480,	9,	3,	28,
97 	  31500 KHz },
98 
99 	/* 0xc:  640 x  480 @ 60Hz */
100 	{ 640,	16,	96,	48,
101 	  480,	10,	2,	33,
102 	  25175 KHz },
103 
104 	/* 0xd: 1280 x 1024 @ 75Hz */
105 	{ 1280,	16,	144,	248,
106 	  1024,	1,	3,	38,
107 	  135 MHz  },
108 
109 	/* 0xe: 1280 x 1024 @ 60Hz */
110 	{ 1280,	19,	163,	234,
111 	  1024,	6,	7,	44,
112 	  110 MHz },
113 
114 	/* 0xf: 1600 x 1200 @ 75Hz */
115 	/* XXX -- this one's weird.  rcd */
116 	{ 1600,	32,	192,	336,
117 	  1200,	1,	3,	46,
118 	  202500 KHz }
119 };
120 
121 #undef MHz
122 #undef KHz
123