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