xref: /openbsd-src/sys/dev/ic/bt458reg.h (revision 9cf0b362605d8b8094b068d007166d141682403f)
1*9cf0b362Sjason /*	$OpenBSD: bt458reg.h,v 1.2 2003/06/02 18:53:18 jason Exp $	*/
2a9874271Sjason 
3a9874271Sjason /*
4a9874271Sjason  * Copyright (c) 2003 Jason L. Wright (jason@thought.net)
5a9874271Sjason  * All rights reserved.
6a9874271Sjason  *
7a9874271Sjason  * Redistribution and use in source and binary forms, with or without
8a9874271Sjason  * modification, are permitted provided that the following conditions
9a9874271Sjason  * are met:
10a9874271Sjason  * 1. Redistributions of source code must retain the above copyright
11a9874271Sjason  *    notice, this list of conditions and the following disclaimer.
12a9874271Sjason  * 2. Redistributions in binary form must reproduce the above copyright
13a9874271Sjason  *    notice, this list of conditions and the following disclaimer in the
14a9874271Sjason  *    documentation and/or other materials provided with the distribution.
15a9874271Sjason  *
16a9874271Sjason  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17a9874271Sjason  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18a9874271Sjason  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19a9874271Sjason  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
20a9874271Sjason  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21a9874271Sjason  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22a9874271Sjason  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23a9874271Sjason  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
24a9874271Sjason  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
25a9874271Sjason  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26a9874271Sjason  * POSSIBILITY OF SUCH DAMAGE.
27a9874271Sjason  */
28a9874271Sjason 
29a9874271Sjason /*
30a9874271Sjason  * Brooktree Bt451, Bt457, Bt458 register definitions
31a9874271Sjason  */
32a9874271Sjason #define	BT_OV0	0x00		/* overlay 0 */
33a9874271Sjason #define	BT_OV1	0x01		/* overlay 1 */
34a9874271Sjason #define	BT_OV2	0x02		/* overlay 2 */
35a9874271Sjason #define	BT_OV3	0x03		/* overlay 3 */
36a9874271Sjason #define	BT_RMR	0x04		/* read mask */
37a9874271Sjason #define	BT_BMR	0x05		/* blink mask */
38a9874271Sjason #define	BT_CR	0x06		/* control */
39a9874271Sjason #define	BT_CTR	0x07		/* control/test */
40a9874271Sjason 
41a9874271Sjason #define	BTCR_MPLX_5		0x80	/* multiplex select, 5:1 */
42a9874271Sjason #define	BTCR_MPLX_4		0x00	/* multiplex select, 4:1 */
43a9874271Sjason #define	BTCR_RAMENA		0x40	/* use color palette RAM */
44a9874271Sjason #define	BTCR_BLINK_M		0x30	/* blink mask */
45a9874271Sjason #define	BTCR_BLINK_1648		0x00	/*  16 on, 48 off */
46a9874271Sjason #define	BTCR_BLINK_1616		0x10	/*  16 on, 16 off */
47a9874271Sjason #define	BTCR_BLINK_3232		0x20	/*  32 on, 32 off */
48a9874271Sjason #define	BTCR_BLINK_6464		0x30	/*  64 on, 64 off */
49a9874271Sjason #define	BTCR_BLINKENA_OV1	0x08	/* OV1 blink enable */
50a9874271Sjason #define	BTCR_BLINKENA_OV0	0x04	/* OV0 blink enable */
51a9874271Sjason #define	BTCR_DISPENA_OV1	0x02	/* OV1 display enable */
52a9874271Sjason #define	BTCR_DISPENA_OV0	0x01	/* OV0 display enable */
53a9874271Sjason 
54a9874271Sjason #define	BTCTR_R_ENA		0x01	/* red channel enable */
55a9874271Sjason #define	BTCTR_G_ENA		0x02	/* green channel enable */
56a9874271Sjason #define	BTCTR_B_ENA		0x04	/* blue channel enable */
57a9874271Sjason #define	BTCTR_NIB_M		0x08	/* nibble mask: */
58a9874271Sjason #define	BTCTR_NIB_LOW		0x08	/*  low */
59a9874271Sjason #define	BTCTR_NIB_HIGH		0x00	/*  high */
60