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