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