diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2006-02-20 20:44:33 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:26:34 +0200 |
commit | 2486c56afd5ac4392aa95f0e478978331d1c15d6 (patch) | |
tree | e3c5e8c5252d5e110208d7fc6dbfad1c3b1e802f /chips/cfb_hdw.c | |
parent | 2a50c925882fe2d6535f130401eb6d4a4feb3e93 (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/cfb_hdw.c')
-rw-r--r-- | chips/cfb_hdw.c | 188 |
1 files changed, 0 insertions, 188 deletions
diff --git a/chips/cfb_hdw.c b/chips/cfb_hdw.c deleted file mode 100644 index 78764aa..0000000 --- a/chips/cfb_hdw.c +++ /dev/null @@ -1,188 +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: cfb_hdw.c - * Author: Alessandro Forin, Carnegie Mellon University - * Date: 9/90 - * - * Driver for the 3max Color Frame Buffer Display, - * hardware-level operations. - */ - -#include <cfb.h> -#if (NCFB > 0) - -#include <platforms.h> - -#include <machine/machspl.h> -#include <mach/std_types.h> -#include <chips/busses.h> -#include <chips/screen_defs.h> -#include <chips/pm_defs.h> - -typedef pm_softc_t cfb_softc_t; - -#ifdef DECSTATION -#include <mips/PMAX/pmag_ba.h> -#include <mips/PMAX/tc.h> -#endif - -#ifdef FLAMINGO -#include <mips/PMAX/pmag_ba.h> /* XXX fixme */ -#include <alpha/DEC/tc.h> -#endif - -/* - * Definition of the driver for the auto-configuration program. - */ - -int cfb_probe(), cfb_intr(); -static void cfb_attach(); - -vm_offset_t cfb_std[NCFB] = { 0 }; -struct bus_device *cfb_info[NCFB]; -struct bus_driver cfb_driver = - { cfb_probe, 0, cfb_attach, 0, cfb_std, "cfb", cfb_info, - 0, 0, BUS_INTR_DISABLED}; - -/* - * Probe/Attach functions - */ - -cfb_probe( /* reg, ui */) -{ - static probed_once = 0; - - /* - * Probing was really done sweeping the TC long ago - */ - if (tc_probe("cfb") == 0) - return 0; - if (probed_once++ > 1) - printf("[mappable] "); - return 1; -} - -static void -cfb_attach(ui) - struct bus_device *ui; -{ - /* ... */ - printf(": color display"); -} - - -/* - * Interrupt routine - */ - -cfb_intr(unit,spllevel) - spl_t spllevel; -{ - register volatile char *ack; - - /* acknowledge interrupt */ - ack = (volatile char *) cfb_info[unit]->address + CFB_OFFSET_IREQ; - *ack = 0; - -#ifdef mips - splx(spllevel); -#endif - lk201_led(unit); -} - -cfb_vretrace(cfb, on) - cfb_softc_t *cfb; -{ - int i; - - for (i = 0; i < NCFB; i++) - if (cfb_info[i]->address == (vm_offset_t)cfb->framebuffer) - break; - if (i == NCFB) return; - - (*tc_enable_interrupt)(cfb_info[i]->adaptor, on, 0); -} - -/* - * Boot time initialization: must make device - * usable as console asap. - */ -extern int - cfb_soft_reset(), cfb_set_status(), - bt459_pos_cursor(), bt459_video_on(), - bt459_video_off(), cfb_vretrace(), - pm_get_status(), pm_char_paint(), - pm_insert_line(), pm_remove_line(), - pm_clear_bitmap(), pm_map_page(); - -static struct screen_switch cfb_sw = { - screen_noop, /* graphic_open */ - cfb_soft_reset, /* graphic_close */ - cfb_set_status, /* set_status */ - pm_get_status, /* get_status */ - pm_char_paint, /* char_paint */ - bt459_pos_cursor, /* pos_cursor */ - pm_insert_line, /* insert_line */ - pm_remove_line, /* remove_line */ - pm_clear_bitmap, /* clear_bitmap */ - bt459_video_on, /* video_on */ - bt459_video_off, /* video_off */ - cfb_vretrace, /* intr_enable */ - pm_map_page /* map_page */ -}; - -cfb_cold_init(unit, up) - user_info_t *up; -{ - cfb_softc_t *cfb; - screen_softc_t sc = screen(unit); - int base = tc_probe("cfb"); - - bcopy(&cfb_sw, &sc->sw, sizeof(sc->sw)); - sc->flags |= COLOR_SCREEN; - sc->frame_scanline_width = 1024; - sc->frame_height = 1024; - sc->frame_visible_width = 1024; - sc->frame_visible_height = 864; - - pm_init_screen_params(sc,up); - (void) screen_up(unit, up); - - cfb = pm_alloc(unit, base + CFB_OFFSET_BT459, base + CFB_OFFSET_VRAM, -1); - - screen_default_colors(up); - - cfb_soft_reset(sc); - - /* - * Clearing the screen at boot saves from scrolling - * much, and speeds up booting quite a bit. - */ - screen_blitc( unit, 'C'-'@');/* clear screen */ -} - -#endif (NCFB > 0) |