From 2486c56afd5ac4392aa95f0e478978331d1c15d6 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 20 Feb 2006 20:44:33 +0000 Subject: 2006-02-20 Thomas Schwinge Remove unused and unsupported code. Consult the file `DEVELOPMENT' for details. Partly based on suggestions by Gianluca Guida . * 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 anymore. --- chips/bt455.c | 222 ---------------------------------------------------------- 1 file changed, 222 deletions(-) delete mode 100644 chips/bt455.c (limited to 'chips/bt455.c') diff --git a/chips/bt455.c b/chips/bt455.c deleted file mode 100644 index 12acecb..0000000 --- a/chips/bt455.c +++ /dev/null @@ -1,222 +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: bt455.c - * Author: Alessandro Forin, Carnegie Mellon University - * Date: 7/91 - * - * Routines for the bt454/bt455 RAMDAC - */ - -#include - -#include -#include - -#ifdef DECSTATION - -typedef struct { - volatile unsigned char addr_cmap; - char pad0[3]; - volatile unsigned char addr_cmap_data; - char pad1[3]; - volatile unsigned char addr_clr; - char pad2[3]; - volatile unsigned char addr_ovly; - char pad3[3]; -} bt455_padded_regmap_t; - -#else /*DECSTATION*/ - -typedef bt455_regmap_t bt455_padded_regmap_t; -#define wbflush() - -#endif /*DECSTATION*/ - - -/* - * Generic register access - */ -#define bt455_select_entry(regs, regno) \ - { \ - (regs)->addr_cmap = (regno)&0x0f; \ - wbflush(); \ - } - - -/* - * Color map - */ -bt455_load_colormap( regs, map) - bt455_padded_regmap_t *regs; - color_map_t *map; -{ - register int i; - - bt455_select_entry(regs, 0); - - for (i = 0; i < 16; i++, map++) { - regs->addr_cmap_data = map->red >> 4; - wbflush(); - regs->addr_cmap_data = map->green >> 4; - wbflush(); - regs->addr_cmap_data = map->blue >> 4; - wbflush(); - } -} - -bt455_load_colormap_entry( regs, entry, map) - register bt455_padded_regmap_t *regs; - register color_map_t *map; -{ - bt455_select_entry(regs, entry); - - regs->addr_cmap_data = map->red >> 4; - wbflush(); - regs->addr_cmap_data = map->green >> 4; - wbflush(); - regs->addr_cmap_data = map->blue >> 4; - wbflush(); -} - -bt455_init_colormap( regs) - bt455_padded_regmap_t *regs; -{ - register int i; - color_map_t m[2]; - - m[0].red = m[0].green = m[0].blue = 0; - m[1].red = m[1].green = m[1].blue = 0xff; - - for (i = 0; i < 16; i++) - bt455_load_colormap_entry(regs, i, &m[0]); - - bt455_load_colormap_entry(regs, 1, &m[1]); - - bt455_cursor_color( regs, &m[0]); -} - -#if 1/*debug*/ -bt455_print_colormap( regs) - bt455_padded_regmap_t *regs; -{ - register int i; - - for (i = 0; i < 16; i++) { - register unsigned char red, green, blue; - - bt455_select_entry(regs, i); - red = regs->addr_cmap_data; - green = regs->addr_cmap_data; - blue = regs->addr_cmap_data; - printf("%x->[x%x x%x x%x]\n", i, - red, green, blue); - - } -} -#endif - -/* - * Video on/off - */ -bt455_video_off(regs, up) - bt455_padded_regmap_t *regs; - user_info_t *up; -{ - color_map_t m; - unsigned char *save; - - /* Yes, this is awful */ - save = (unsigned char *)up->dev_dep_2.gx.colormap; - - bt455_select_entry( regs, 0); - - *save++ = regs->addr_cmap_data; /* entry 0 */ - *save++ = regs->addr_cmap_data; - *save++ = regs->addr_cmap_data; - - *save++ = regs->addr_cmap_data; /* entry 1 */ - *save++ = regs->addr_cmap_data; - *save++ = regs->addr_cmap_data; - - m.red = m.green = m.blue = 0; - bt455_load_colormap_entry(regs, 0, &m); - bt455_load_colormap_entry(regs, 1, &m); -} - -bt455_video_on(regs, up) - bt455_padded_regmap_t *regs; - user_info_t *up; -{ - unsigned char *save; - - /* Like I said.. */ - save = (unsigned char *)up->dev_dep_2.gx.colormap; - - bt455_select_entry( regs, 0); - - regs->addr_cmap_data = *save++; wbflush(); - regs->addr_cmap_data = *save++; wbflush(); - regs->addr_cmap_data = *save++; wbflush(); - - regs->addr_cmap_data = *save++; wbflush(); - regs->addr_cmap_data = *save++; wbflush(); - regs->addr_cmap_data = *save; - -} - -/* - * Cursor 'color' [as used on DEC's board] - */ -bt455_cursor_color( regs, color) - bt455_padded_regmap_t *regs; - color_map_t *color; -{ - register int i; - - /* Bg is the first in color */ - bt455_load_colormap_entry( regs, 8, color); - bt455_load_colormap_entry( regs, 9, color); - - /* Fg is overlay */ - color++; - regs->addr_ovly = color->red >> 4; - wbflush(); - regs->addr_ovly = color->green >> 4; - wbflush(); - regs->addr_ovly = color->blue >> 4; - wbflush(); -} - -/* - * Initialization - */ -bt455_init(regs) - bt455_padded_regmap_t *regs; -{ - /* Nothing really needed */ -} - -- cgit v1.2.3