summaryrefslogtreecommitdiff
path: root/chips/bt478.c
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-02-20 20:44:33 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:34 +0200
commit2486c56afd5ac4392aa95f0e478978331d1c15d6 (patch)
treee3c5e8c5252d5e110208d7fc6dbfad1c3b1e802f /chips/bt478.c
parent2a50c925882fe2d6535f130401eb6d4a4feb3e93 (diff)
2006-02-20 Thomas Schwinge <tschwinge@gnu.org>
Remove unused and unsupported code. Consult the file `DEVELOPMENT' for details. Partly based on suggestions by Gianluca Guida <glguida@gmail.com>. * chips/atm.c: Remove file. * chips/atmreg.h: Likewise. * chips/audio.c: Likewise. * chips/audio_config.h: Likewise. * chips/audio_defs.h: Likewise. * chips/bt431.c: Likewise. * chips/bt431.h: Likewise. * chips/bt455.c: Likewise. * chips/bt455.h: Likewise. * chips/bt459.c: Likewise. * chips/bt459.h: Likewise. * chips/bt478.c: Likewise. * chips/bt478.h: Likewise. * chips/build_font.c: Likewise. * chips/cfb_hdw.c: Likewise. * chips/cfb_misc.c: Likewise. * chips/dc503.c: Likewise. * chips/dc503.h: Likewise. * chips/dtop.h: Likewise. * chips/dtop_handlers.c: Likewise. * chips/dtop_hdw.c: Likewise. * chips/dz_7085.h: Likewise. * chips/dz_defs.h: Likewise. * chips/dz_hdw.c: Likewise. * chips/eccreg.h: Likewise. * chips/fb_hdw.c: Likewise. * chips/fb_misc.c: Likewise. * chips/fdc_82077.h: Likewise. * chips/fdc_82077_hdw.c: Likewise. * chips/frc.c: Likewise. * chips/ims332.c: Likewise. * chips/ims332.h: Likewise. * chips/isdn_79c30.h: Likewise. * chips/isdn_79c30_hdw.c: Likewise. * chips/kernel_font.c: Likewise. * chips/kernel_font.data: Likewise. * chips/lance.c: Likewise. * chips/lance.h: Likewise. * chips/lance_mapped.c: Likewise. * chips/lk201.c: Likewise. * chips/lk201.h: Likewise. * chips/mc_clock.c: Likewise. * chips/mc_clock.h: Likewise. * chips/mouse.c: Likewise. * chips/nc.c: Likewise. * chips/nc.h: Likewise. * chips/nw.h: Likewise. * chips/nw_mk.c: Likewise. * chips/nw_mk.h: Likewise. * chips/pm_defs.h: Likewise. * chips/pm_hdw.c: Likewise. * chips/pm_misc.c: Likewise. * chips/scc_8530.h: Likewise. * chips/scc_8530_hdw.c: Likewise. * chips/screen.c: Likewise. * chips/screen.h: Likewise. * chips/screen_defs.h: Likewise. * chips/screen_switch.c: Likewise. * chips/screen_switch.h: Likewise. * chips/serial_console.c: Likewise. * chips/serial_defs.h: Likewise. * chips/sfb_hdw.c: Likewise. * chips/sfb_misc.c: Likewise. * chips/spans.c: Likewise. * chips/spans.h: Likewise. * chips/tca100.c: Likewise. * chips/tca100.h: Likewise. * chips/tca100_if.c: Likewise. * chips/tca100_if.h: Likewise. * chips/vs42x_rb.h: Likewise. * chips/xcfb_hdw.c: Likewise. * chips/xcfb_misc.c: Likewise. * chips/xcfb_monitor.h: Likewise. * Makefile.in (chips-files): Only contain `busses.c' and `busses.h'. * kern/syscall_sw.c: Don't include <chips/nw_mk.h> anymore.
Diffstat (limited to 'chips/bt478.c')
-rw-r--r--chips/bt478.c243
1 files changed, 0 insertions, 243 deletions
diff --git a/chips/bt478.c b/chips/bt478.c
deleted file mode 100644
index 841728f..0000000
--- a/chips/bt478.c
+++ /dev/null
@@ -1,243 +0,0 @@
-/*
- * 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.
- */
-/*
- * File: bt478.c
- * Author: Alessandro Forin, Carnegie Mellon University
- * Date: 9/90
- *
- * Routines for the bt478 Cursor/RAMDAC chip
- */
-
-#include <platforms.h>
-
-#include <chips/bt478.h>
-#include <chips/screen.h>
-
-#ifdef DECSTATION
-
-typedef struct {
- volatile unsigned char addr_mapwa;
- char pad0[3];
- volatile unsigned char addr_map;
- char pad1[3];
- volatile unsigned char addr_mask;
- char pad2[3];
- volatile unsigned char addr_mapra;
- char pad3[3];
- volatile unsigned char addr_overwa;
- char pad4[3];
- volatile unsigned char addr_over;
- char pad5[3];
- volatile unsigned char addr_xxxx;
- char pad6[3];
- volatile unsigned char addr_overra;
- char pad7[3];
-} bt478_padded_regmap_t;
-
-#else /*DECSTATION*/
-
-typedef bt478_regmap_t bt478_padded_regmap_t;
-#define wbflush()
-
-#endif /*DECSTATION*/
-
-
-/*
- * Cursor color
- */
-static
-bt478_load_cc(bt478, bg, fg)
- register bt478_padded_regmap_t *bt478;
- unsigned int *bg, *fg;
-{
- register int i;
-
- /* See init function for gotchas */
-
- bt478->addr_overwa = 4;
- wbflush();
- for (i = 0; i < 3; i++) {
- bt478->addr_over = (*bg++) >> 8;
- wbflush();
- }
-
- bt478->addr_overwa = 8;
- wbflush();
- bt478->addr_over = 0x00;
- wbflush();
- bt478->addr_over = 0x00;
- wbflush();
- bt478->addr_over = 0x7f;
- wbflush();
-
- bt478->addr_overwa = 12;
- wbflush();
- for (i = 0; i < 3; i++) {
- bt478->addr_over = (*fg++) >> 8;
- wbflush();
- }
-
-}
-
-
-bt478_cursor_color(bt478, color)
- bt478_padded_regmap_t *bt478;
- cursor_color_t *color;
-{
- register int i;
- register unsigned int *p;
-
- /* Do it twice, in case of collisions */
-
- bt478_load_cc(bt478, color->Bg_rgb, color->Fg_rgb);
-
- p = color->Bg_rgb;
- for (i = 0; i < 3; i++) {
- bt478->addr_over = (*p++) >> 8;
- wbflush();
- }
-
- p = color->Fg_rgb;
- for (i = 0; i < 3; i++) {
- bt478->addr_over = (*p++) >> 8;
- wbflush();
- }
-
- bt478_load_cc(bt478, color->Bg_rgb, color->Fg_rgb);
-}
-
-/*
- * Color map
- */
-bt478_load_colormap( regs, map)
- bt478_padded_regmap_t *regs;
- color_map_t *map;
-{
- register int i;
-
- regs->addr_mapwa = 0;
- wbflush();
- for (i = 0; i < 256; i++, map++) {
- regs->addr_map = map->red;
- wbflush();
- regs->addr_map = map->green;
- wbflush();
- regs->addr_map = map->blue;
- wbflush();
- }
-}
-
-bt478_load_colormap_entry( regs, entry, map)
- bt478_padded_regmap_t *regs;
- color_map_t *map;
-{
- regs->addr_mapwa = entry & 0xff;
- wbflush();
- regs->addr_map = map->red;
- wbflush();
- regs->addr_map = map->green;
- wbflush();
- regs->addr_map = map->blue;
- wbflush();
-}
-
-/*
- * Video on/off (unused)
- */
-bt478_video_on(pregs, up)
- bt478_padded_regmap_t **pregs;
-{
- (*pregs)->addr_mask = 0xff;
-}
-
-bt478_video_off(pregs, up)
- bt478_padded_regmap_t **pregs;
-{
- (*pregs)->addr_mask = 0;
-}
-
-/*
- * Initialization
- */
-static
-bt478_overlay(regs, plane)
- bt478_padded_regmap_t *regs;
- unsigned char *plane;
-{
- *plane = 0xff;
-
- /* Overlay planes 0 and 1 are wired zero, overlay plane 2
- is plane "B" of the cursor (second half of it), plane 3
- is plane "A" of the cursor. Soo, we get three colors
- for the cursor, at map entries 4, 8 and 12 */
-# define ovv(i,r,g,b) \
- regs->addr_overwa = i; wbflush(); \
- regs->addr_over = r; wbflush(); \
- regs->addr_over = b; wbflush(); \
- regs->addr_over = g; wbflush();
-
- ovv(4,0,0,0); ovv(8,0,0,0x7f); ovv(12,0xff,0xff,0xff);
-
-# undef ovv
-
- /* enable data input */
- regs->addr_mask = 0xff;
-}
-
-bt478_init_bw_map(regs, plane)
- bt478_padded_regmap_t *regs;
-{
- register int i;
-
- /* Set overlay color registers */
- bt478_overlay(regs, plane);
-
- /* loadup vdac map */
-# define mvv(i,v) { \
- regs->addr_mapwa = i; wbflush(); \
- regs->addr_map = v; wbflush(); \
- regs->addr_map = v; wbflush(); \
- regs->addr_map = v; wbflush();}
-
- for (i = 0; i < 128; i++) mvv(i,0x00);
- for (i = i; i < 256; i++) mvv(i,0xff);
-
-}
-
-bt478_init_color_map( regs, plane)
- bt478_padded_regmap_t *regs;
-{
- register int i;
-
- bt478_overlay(regs, plane);
-
- mvv(0,0);
- mvv(1,0xff);
- mvv(255,0xff);
-
-# undef mvv
-}
-