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