- Brooktree Bt459 135 MHz Monolithic CMOS 256x64 Color Palette RAMDAC.
- Brooktree Bt431 Monolithic CMOS 64x64 Pixel Cursor Generator. - Inmos IMS G332 Color Video Controller.
This commit is contained in:
parent
7b111b4229
commit
675a2afc89
62
sys/dev/ic/bt431reg.h
Normal file
62
sys/dev/ic/bt431reg.h
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
/* $NetBSD: bt431reg.h,v 1.1 1998/10/28 04:10:37 nisimura Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Mach Operating System
|
||||||
|
* Copyright (c) 1991,1990,1989 Carnegie Mellon University
|
||||||
|
* All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify and distribute this software and its
|
||||||
|
* documentation is hereby granted, provided that both the copyright
|
||||||
|
* notice and this permission notice appear in all copies of the
|
||||||
|
* software, derivative works or modified versions, and any portions
|
||||||
|
* thereof, and that both notices appear in supporting documentation.
|
||||||
|
*
|
||||||
|
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
|
||||||
|
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
|
||||||
|
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
|
||||||
|
*
|
||||||
|
* Carnegie Mellon requests users of this software to return to
|
||||||
|
*
|
||||||
|
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
|
||||||
|
* School of Computer Science
|
||||||
|
* Carnegie Mellon University
|
||||||
|
* Pittsburgh PA 15213-3890
|
||||||
|
*
|
||||||
|
* any improvements or extensions that they make and grant Carnegie Mellon
|
||||||
|
* the rights to redistribute these changes.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Register definitions for the Brooktree Bt431 Monolithic CMOS
|
||||||
|
* 64x64 Pixel Cursor Generator.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define BT431_REG_COMMAND 0x000
|
||||||
|
#define BT431_REG_CURSOR_X_LOW 0x001
|
||||||
|
#define BT431_REG_CURSOR_X_HIGH 0x002
|
||||||
|
#define BT431_REG_CURSOR_Y_LOW 0x003
|
||||||
|
#define BT431_REG_CURSOR_Y_HIGH 0x004
|
||||||
|
#define BT431_REG_WXLO 0x005
|
||||||
|
#define BT431_REG_WXHI 0x006
|
||||||
|
#define BT431_REG_WYLO 0x007
|
||||||
|
#define BT431_REG_WYHI 0x008
|
||||||
|
#define BT431_REG_WWLO 0x009
|
||||||
|
#define BT431_REG_WWHI 0x00a
|
||||||
|
#define BT431_REG_WHLO 0x00b
|
||||||
|
#define BT431_REG_WHHI 0x00c
|
||||||
|
|
||||||
|
#define BT431_REG_CRAM_BASE 0x000
|
||||||
|
#define BT431_REG_CRAM_END 0x1ff
|
||||||
|
|
||||||
|
#define BT431_CMD_CURS_ENABLE 0x40
|
||||||
|
#define BT431_CMD_XHAIR_ENABLE 0x20
|
||||||
|
#define BT431_CMD_OR_CURSORS 0x10
|
||||||
|
#define BT431_CMD_AND_CURSORS 0x00
|
||||||
|
#define BT431_CMD_1_1_MUX 0x00
|
||||||
|
#define BT431_CMD_4_1_MUX 0x04
|
||||||
|
#define BT431_CMD_5_1_MUX 0x08
|
||||||
|
#define BT431_CMD_xxx_MUX 0x0c
|
||||||
|
#define BT431_CMD_THICK_1 0x00
|
||||||
|
#define BT431_CMD_THICK_3 0x01
|
||||||
|
#define BT431_CMD_THICK_5 0x02
|
||||||
|
#define BT431_CMD_THICK_7 0x03
|
68
sys/dev/ic/bt459reg.h
Normal file
68
sys/dev/ic/bt459reg.h
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
/* $NetBSD: bt459reg.h,v 1.1 1998/10/28 04:10:36 nisimura Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Mach Operating System
|
||||||
|
* Copyright (c) 1991,1990,1989 Carnegie Mellon University
|
||||||
|
* All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify and distribute this software and its
|
||||||
|
* documentation is hereby granted, provided that both the copyright
|
||||||
|
* notice and this permission notice appear in all copies of the
|
||||||
|
* software, derivative works or modified versions, and any portions
|
||||||
|
* thereof, and that both notices appear in supporting documentation.
|
||||||
|
*
|
||||||
|
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
|
||||||
|
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
|
||||||
|
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
|
||||||
|
*
|
||||||
|
* Carnegie Mellon requests users of this software to return to
|
||||||
|
*
|
||||||
|
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
|
||||||
|
* School of Computer Science
|
||||||
|
* Carnegie Mellon University
|
||||||
|
* Pittsburgh PA 15213-3890
|
||||||
|
*
|
||||||
|
* any improvements or extensions that they make and grant Carnegie Mellon
|
||||||
|
* the rights to redistribute these changes.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Register definitions for the Brooktree Bt459 135 MHz Monolithic
|
||||||
|
* CMOS 256x64 Color Palette RAMDAC.
|
||||||
|
*/
|
||||||
|
/* 0000-00ff Color Map entries */
|
||||||
|
|
||||||
|
#define BT459_REG_CCOLOR_1 0x0181 /* Cursor color regs */
|
||||||
|
#define BT459_REG_CCOLOR_2 0x0182
|
||||||
|
#define BT459_REG_CCOLOR_3 0x0183
|
||||||
|
#define BT459_REG_ID 0x0200 /* read-only, gives "4a" */
|
||||||
|
#define BT459_REG_COMMAND_0 0x0201
|
||||||
|
#define BT459_REG_COMMAND_1 0x0202
|
||||||
|
#define BT459_REG_COMMAND_2 0x0203
|
||||||
|
#define BT459_REG_PRM 0x0204
|
||||||
|
/* 0205 reserved */
|
||||||
|
#define BT459_REG_PBM 0x0206
|
||||||
|
/* 0207 reserved */
|
||||||
|
#define BT459_REG_ORM 0x0208
|
||||||
|
#define BT459_REG_OBM 0x0209
|
||||||
|
#define BT459_REG_ILV 0x020a
|
||||||
|
#define BT459_REG_TEST 0x020b
|
||||||
|
#define BT459_REG_RSIG 0x020c
|
||||||
|
#define BT459_REG_GSIG 0x020d
|
||||||
|
#define BT459_REG_BSIG 0x020e
|
||||||
|
/* 020f-02ff reserved */
|
||||||
|
#define BT459_REG_CCR 0x0300
|
||||||
|
#define BT459_REG_CURSOR_X_LOW 0x0301
|
||||||
|
#define BT459_REG_CURSOR_X_HIGH 0x0302
|
||||||
|
#define BT459_REG_CURSOR_Y_LOW 0x0303
|
||||||
|
#define BT459_REG_CURSOR_Y_HIGH 0x0304
|
||||||
|
#define BT459_REG_WXLO 0x0305
|
||||||
|
#define BT459_REG_WXHI 0x0306
|
||||||
|
#define BT459_REG_WYLO 0x0307
|
||||||
|
#define BT459_REG_WYHI 0x0308
|
||||||
|
#define BT459_REG_WWLO 0x0309
|
||||||
|
#define BT459_REG_WWHI 0x030a
|
||||||
|
#define BT459_REG_WHLO 0x030b
|
||||||
|
#define BT459_REG_WHHI 0x030c
|
||||||
|
/* 030d-03ff reserved */
|
||||||
|
#define BT459_REG_CRAM_BASE 0x0400
|
132
sys/dev/ic/ims332reg.h
Normal file
132
sys/dev/ic/ims332reg.h
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
/* $NetBSD: ims332reg.h,v 1.1 1998/10/28 04:10:37 nisimura Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Mach Operating System
|
||||||
|
* Copyright (c) 1991,1990,1989 Carnegie Mellon University
|
||||||
|
* All Rights Reserved.
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify and distribute this software and its
|
||||||
|
* documentation is hereby granted, provided that both the copyright
|
||||||
|
* notice and this permission notice appear in all copies of the
|
||||||
|
* software, derivative works or modified versions, and any portions
|
||||||
|
* thereof, and that both notices appear in supporting documentation.
|
||||||
|
*
|
||||||
|
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
|
||||||
|
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
|
||||||
|
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
|
||||||
|
*
|
||||||
|
* Carnegie Mellon requests users of this software to return to
|
||||||
|
*
|
||||||
|
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
|
||||||
|
* School of Computer Science
|
||||||
|
* Carnegie Mellon University
|
||||||
|
* Pittsburgh PA 15213-3890
|
||||||
|
*
|
||||||
|
* any improvements or extensions that they make and grant Carnegie Mellon
|
||||||
|
* the rights to redistribute these changes.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Defines for the Inmos IMS-G332 Colour video controller
|
||||||
|
* Author: Alessandro Forin, Carnegie Mellon University
|
||||||
|
* See: IMS G332 Colour Video Controller, 1990 Databook, pg 139-163,
|
||||||
|
* Inmos, Ltd.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Although the chip is built to be memory-mapped
|
||||||
|
* it can be programmed for 32 or 64 bit addressing.
|
||||||
|
* Moreover, the hardware bits have been twisted
|
||||||
|
* even more on the machine I am writing this for.
|
||||||
|
* So I'll just define the chip's offsets and leave
|
||||||
|
* it to the implementation to define the rest.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define IMS332_REG_BOOT 0x000 /* boot time config */
|
||||||
|
|
||||||
|
#define IMS332_REG_HALF_SYNCH 0x021 /* datapath registers */
|
||||||
|
#define IMS332_REG_BACK_PORCH 0x022
|
||||||
|
#define IMS332_REG_DISPLAY 0x023
|
||||||
|
#define IMS332_REG_SHORT_DIS 0x024
|
||||||
|
#define IMS332_REG_BROAD_PULSE 0x025
|
||||||
|
#define IMS332_REG_V_SYNC 0x026
|
||||||
|
#define IMS332_REG_V_PRE_EQUALIZE 0x027
|
||||||
|
#define IMS332_REG_V_POST_EQUALIZE 0x028
|
||||||
|
#define IMS332_REG_V_BLANK 0x029
|
||||||
|
#define IMS332_REG_V_DISPLAY 0x02a
|
||||||
|
#define IMS332_REG_LINE_TIME 0x02b
|
||||||
|
#define IMS332_REG_LINE_START 0x02c
|
||||||
|
#define IMS332_REG_MEM_INIT 0x02d
|
||||||
|
#define IMS332_REG_XFER_DELAY 0x02e
|
||||||
|
|
||||||
|
#define IMS332_REG_COLOR_MASK 0x040 /* color mask register */
|
||||||
|
|
||||||
|
#define IMS332_REG_CSR_A 0x060
|
||||||
|
|
||||||
|
#define IMS332_REG_CSR_B 0x070
|
||||||
|
|
||||||
|
#define IMS332_REG_TOP_SCREEN 0x080 /* top-of-screen offset */
|
||||||
|
|
||||||
|
#define IMS332_REG_CURSOR_LUT_0 0x0a1 /* cursor palette */
|
||||||
|
#define IMS332_REG_CURSOR_LUT_1 0x0a2
|
||||||
|
#define IMS332_REG_CURSOR_LUT_2 0x0a3
|
||||||
|
|
||||||
|
#define IMS332_REG_RGB_CKSUM_0 0x0c0 /* test registers */
|
||||||
|
#define IMS332_REG_RGB_CKSUM_1 0x0c1
|
||||||
|
#define IMS332_REG_RGB_CKSUM_2 0x0c2
|
||||||
|
|
||||||
|
#define IMS332_REG_CURSOR_LOC 0x0c7 /* cursor location */
|
||||||
|
|
||||||
|
#define IMS332_REG_LUT_BASE 0x100 /* color palette */
|
||||||
|
#define IMS332_REG_LUT_END 0x1ff
|
||||||
|
|
||||||
|
#define IMS332_REG_CURSOR_RAM 0x200 /* cursor bitmap */
|
||||||
|
#define IMS332_REG_CURSOR_RAM_END 0x3ff
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Control register A
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define IMS332_CSR_A_VTG_ENABLE 0x000001 /* vertical timing generator */
|
||||||
|
#define IMS332_CSR_A_INTERLACED 0x000002 /* screen format */
|
||||||
|
#define IMS332_CSR_A_CCIR 0x000004 /* default is EIA */
|
||||||
|
#define IMS332_CSR_A_SLAVE_SYNC 0x000008 /* else from our pll */
|
||||||
|
#define IMS332_CSR_A_PLAIN_SYNC 0x000010 /* else tesselated */
|
||||||
|
#define IMS332_CSR_A_SEPARATE_SYNC 0x000020 /* else composite */
|
||||||
|
#define IMS332_CSR_A_VIDEO_ONLY 0x000040 /* else video+sync */
|
||||||
|
#define IMS332_CSR_A_BLANK_PEDESTAL 0x000080 /* blank level */
|
||||||
|
#define IMS332_CSR_A_CBLANK_IS_OUT 0x000100
|
||||||
|
#define IMS332_CSR_A_CBLANK_NO_DELAY 0x000200
|
||||||
|
#define IMS332_CSR_A_FORCE_BLANK 0x000400
|
||||||
|
#define IMS332_CSR_A_BLANK_DISABLE 0x000800
|
||||||
|
#define IMS332_CSR_A_VRAM_INCREMENT 0x003000
|
||||||
|
# define IMS332_VRAM_INC_1 0x000000
|
||||||
|
# define IMS332_VRAM_INC_256 0x001000 /* except interlaced->2 */
|
||||||
|
# define IMS332_VRAM_INC_512 0x002000
|
||||||
|
# define IMS332_VRAM_INC_1024 0x003000
|
||||||
|
#define IMS332_CSR_A_DMA_DISABLE 0x004000
|
||||||
|
#define IMS332_CSR_A_SYNC_DELAY_MASK 0x038000 /* 0-7 VTG clk delays */
|
||||||
|
#define IMS332_CSR_A_PIXEL_INTERLEAVE 0x040000
|
||||||
|
#define IMS332_CSR_A_DELAYED_SAMPLING 0x080000
|
||||||
|
#define IMS332_CSR_A_BITS_PER_PIXEL 0x700000
|
||||||
|
# define IMS332_BPP_1 0x000000
|
||||||
|
# define IMS332_BPP_2 0x100000
|
||||||
|
# define IMS332_BPP_4 0x200000
|
||||||
|
# define IMS332_BPP_8 0x300000
|
||||||
|
# define IMS332_BPP_15 0x400000
|
||||||
|
# define IMS332_BPP_16 0x500000
|
||||||
|
#define IMS332_CSR_A_DISABLE_CURSOR 0x800000
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Control register B is mbz
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Boot register
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define IMS332_BOOT_PLL 0x00001f /* xPLL, binary */
|
||||||
|
#define IMS332_BOOT_CLOCK_PLL 0x000020 /* else xternal */
|
||||||
|
#define IMS332_BOOT_64_BIT_MODE 0x000040 /* else 32 */
|
||||||
|
#define IMS332_BOOT_xxx 0xffff80 /* reserved, mbz */
|
Loading…
Reference in New Issue
Block a user