1 /* $NetBSD: decmonitors.c,v 1.2 2001/11/13 13:14:36 lukem 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/cdefs.h> 40 __KERNEL_RCSID(1, "$NetBSD: decmonitors.c,v 1.2 2001/11/13 13:14:36 lukem Exp $"); 41 42 #include <sys/types.h> 43 #include <dev/ic/monitors.h> 44 45 #define MHz * 1000000 46 #define KHz * 1000 47 48 struct monitor decmonitors[] = { 49 /* 0x0: 1280 x 1024 @ 72Hz */ 50 { 1280, 32, 160, 232, 51 1024, 3, 3, 33, 52 130808 KHz }, 53 54 /* 0x1: 1280 x 1024 @ 66Hz */ 55 { 1280, 32, 160, 232, 56 1024, 3, 3, 33, 57 119840 KHz }, 58 59 /* 0x2: 1280 x 1024 @ 60Hz */ 60 { 1280, 44, 184, 200, 61 1024, 3, 3, 26, 62 108180 KHz }, 63 64 /* 0x3: 1152 x 900 @ 72Hz */ 65 { 1152, 64, 112, 176, 66 900, 6, 10, 44, 67 103994 KHz }, 68 69 /* 0x4: 1600 x 1200 @ 65Hz */ 70 { 1600, 32, 192, 336, 71 1200, 1, 3, 46, 72 175 MHz }, 73 74 /* 0x5: 1024 x 768 @ 70Hz */ 75 { 1024, 24, 136, 144, 76 768, 3, 6, 29, 77 75 MHz }, 78 79 /* 0x6: 1024 x 768 @ 72Hz */ 80 { 1024, 16, 128, 128, 81 768, 1, 6, 22, 82 74 MHz }, 83 84 /* 0x7: 1024 x 864 @ 60Hz */ 85 { 1024, 12, 128, 116, 86 864, 0, 3, 34, 87 69 MHz }, 88 89 /* 0x8: 1024 x 768 @ 60Hz */ 90 { 1024, 56, 64, 200, 91 768, 7, 9, 26, 92 65 MHz }, 93 94 /* 0x9: 800 x 600 @ 72Hz */ 95 { 800, 56, 120, 64, 96 600, 37, 6, 23, 97 50 MHz }, 98 99 /* 0xa: 800 x 600 @ 60Hz */ 100 { 800, 40, 128, 88, 101 600, 1, 4, 23, 102 40 MHz }, 103 104 /* 0xb: 640 x 480 @ 72Hz */ 105 { 640, 24, 40, 128, 106 480, 9, 3, 28, 107 31500 KHz }, 108 109 /* 0xc: 640 x 480 @ 60Hz */ 110 { 640, 16, 96, 48, 111 480, 10, 2, 33, 112 25175 KHz }, 113 114 /* 0xd: 1280 x 1024 @ 75Hz */ 115 { 1280, 16, 144, 248, 116 1024, 1, 3, 38, 117 135 MHz }, 118 119 /* 0xe: 1280 x 1024 @ 60Hz */ 120 { 1280, 19, 163, 234, 121 1024, 6, 7, 44, 122 110 MHz }, 123 124 /* 0xf: 1600 x 1200 @ 75Hz */ 125 /* XXX -- this one's weird. rcd */ 126 { 1600, 32, 192, 336, 127 1200, 1, 3, 46, 128 202500 KHz } 129 }; 130 131 #undef MHz 132 #undef KHz 133