xref: /openbsd-src/sys/dev/ic/decmonitors.c (revision b2ea75c1b17e1a9a339660e7ed45cd24946b230e)
1 /* $OpenBSD: decmonitors.c,v 1.2 2001/07/04 09:03:01 niklas 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  * 3. All advertising materials mentioning features or use of this software
19  *    must display the following acknowledgement:
20  *      This product includes software developed by the NetBSD
21  *      Foundation, Inc. and its contributors.
22  * 4. Neither the name of The NetBSD Foundation nor the names of its
23  *    contributors may be used to endorse or promote products derived
24  *    from this software without specific prior written permission.
25  *
26  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36  * POSSIBILITY OF SUCH DAMAGE.
37  */
38 
39 #include <sys/types.h>
40 #include <dev/ic/monitors.h>
41 
42 #define MHz	* 1000000
43 #define KHz	* 1000
44 
45 struct monitor decmonitors[] = {
46 	/* 0x0: 1280 x 1024 @ 72Hz */
47 	{ 1280,	32,	160,	232,
48 	  1024,	3,	3,	33,
49 	  130808 KHz },
50 
51 	/* 0x1: 1280 x 1024 @ 66Hz */
52 	{ 1280,	32,	160,	232,
53 	  1024,	3,	3,	33,
54 	  119840 KHz },
55 
56 	/* 0x2: 1280 x 1024 @ 60Hz */
57 	{ 1280,	44,	184,	200,
58 	  1024,	3,	3,	26,
59 	  108180 KHz },
60 
61 	/* 0x3: 1152 x  900 @ 72Hz */
62 	{ 1152,	64,	112,	176,
63 	  900,	6,	10,	44,
64 	  103994 KHz },
65 
66 	/* 0x4: 1600 x 1200 @ 65Hz */
67 	{ 1600,	32,	192,	336,
68 	  1200,	1,	3,	46,
69 	  175 MHz },
70 
71 	/* 0x5: 1024 x  768 @ 70Hz */
72 	{ 1024,	24,	136,	144,
73 	  768,	3,	6,	29,
74 	  75 MHz },
75 
76 	/* 0x6: 1024 x  768 @ 72Hz */
77 	{ 1024,	16,	128,	128,
78 	  768,	1,	6,	22,
79 	  74 MHz },
80 
81 	/* 0x7: 1024 x  864 @ 60Hz */
82 	{ 1024,	12,	128,	116,
83 	  864,	0,	3,	34,
84 	  69 MHz },
85 
86 	/* 0x8: 1024 x  768 @ 60Hz */
87 	{ 1024,	56,	64,	200,
88 	  768,	7,	9,	26,
89 	  65 MHz },
90 
91 	/* 0x9:  800 x  600 @ 72Hz */
92 	{ 800,	56,	120,	64,
93 	  600,	37,	6,	23,
94 	  50 MHz },
95 
96 	/* 0xa:  800 x  600 @ 60Hz */
97 	{ 800,	40,	128,	88,
98 	  600,	1,	4,	23,
99 	  40 MHz },
100 
101 	/* 0xb:  640 x  480 @ 72Hz */
102 	{ 640,	24,	40,	128,
103 	  480,	9,	3,	28,
104 	  31500 KHz },
105 
106 	/* 0xc:  640 x  480 @ 60Hz */
107 	{ 640,	16,	96,	48,
108 	  480,	10,	2,	33,
109 	  25175 KHz },
110 
111 	/* 0xd: 1280 x 1024 @ 75Hz */
112 	{ 1280,	16,	144,	248,
113 	  1024,	1,	3,	38,
114 	  135 MHz  },
115 
116 	/* 0xe: 1280 x 1024 @ 60Hz */
117 	{ 1280,	19,	163,	234,
118 	  1024,	6,	7,	44,
119 	  110 MHz },
120 
121 	/* 0xf: 1600 x 1200 @ 75Hz */
122 	/* XXX -- this one's weird.  rcd */
123 	{ 1600,	32,	192,	336,
124 	  1200,	1,	3,	46,
125 	  202500 KHz }
126 };
127 
128 #undef MHz
129 #undef KHz
130