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