summaryrefslogtreecommitdiff
path: root/chips/fb_hdw.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/fb_hdw.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/fb_hdw.c')
-rw-r--r--chips/fb_hdw.c219
1 files changed, 0 insertions, 219 deletions
diff --git a/chips/fb_hdw.c b/chips/fb_hdw.c
deleted file mode 100644
index 7139a86..0000000
--- a/chips/fb_hdw.c
+++ /dev/null
@@ -1,219 +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: fb_hdw.c
- * Author: Alessandro Forin, Carnegie Mellon University
- * Date: 7/91
- *
- * Driver for the 3max Monochrome Frame Buffer Display,
- * hardware-level operations.
- */
-
-#include <mfb.h>
-#if (NMFB > 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 fb_softc_t;
-
-
-#ifdef DECSTATION
-#include <mips/PMAX/pmag_aa.h>
-#include <mips/PMAX/tc.h>
-#endif
-
-#ifdef FLAMINGO
-#include <mips/PMAX/pmag_aa.h> /* XXX fixme */
-#include <alpha/DEC/tc.h>
-#endif
-
-/*
- * Definition of the driver for the auto-configuration program.
- */
-
-int fb_probe(), fb_intr();
-static void fb_attach();
-
-vm_offset_t fb_std[NMFB] = { 0 };
-struct bus_device *fb_info[NMFB];
-struct bus_driver fb_driver =
- { fb_probe, 0, fb_attach, 0, fb_std, "fb", fb_info,
- 0, 0, BUS_INTR_DISABLED};
-
-/*
- * Probe/Attach functions
- */
-
-fb_probe( /* reg, ui */)
-{
- static probed_once = 0;
-
- /*
- * Probing was really done sweeping the TC long ago
- */
- if (tc_probe("fb") == 0)
- return 0;
- if (probed_once++ > 1)
- printf("[mappable] ");
- return 1;
-}
-
-static void
-fb_attach(ui)
- struct bus_device *ui;
-{
- /* ... */
- printf(": monochrome display");
-}
-
-
-/*
- * Interrupt routine
- */
-
-fb_intr(unit,spllevel)
- spl_t spllevel;
-{
- register volatile char *ack;
-
- /* acknowledge interrupt */
- ack = (volatile char *) fb_info[unit]->address + FB_OFFSET_IREQ;
- *ack = 0;
-
-#if mips
- splx(spllevel);
-#endif
- lk201_led(unit);
-}
-
-fb_vretrace(fb, on)
- fb_softc_t *fb;
-{
- int i;
-
- for (i = 0; i < NMFB; i++)
- if (fb_info[i]->address == (vm_offset_t)fb->framebuffer)
- break;
- if (i == NMFB) return;
-
- (*tc_enable_interrupt)(fb_info[i]->adaptor, on, 0);
-}
-
-/*
- * Video on/off
- */
-fb_video_on(fb, up)
- fb_softc_t *fb;
- user_info_t *up;
-{
- if (!fb->cursor_state) /* video is "on" at boot */
- return;
- bt455_video_on(fb->vdac_registers, up);
- bt431_cursor_on(fb->cursor_registers);
- fb->cursor_state = 0;
-}
-
-fb_video_off(fb, up)
- fb_softc_t *fb;
- user_info_t *up;
-{
- if (fb->cursor_state)
- return;
- bt455_video_off(fb->vdac_registers, up);
- bt431_cursor_off(fb->cursor_registers);
- fb->cursor_state = 1;
-}
-
-/*
- * Boot time initialization: must make device
- * usable as console asap.
- */
-extern int
- fb_soft_reset(), fb_set_status(),
- bt431_pos_cursor(), fb_video_on(),
- fb_video_off(), fb_vretrace(),
- pm_get_status(), pm_char_paint(),
- pm_insert_line(), pm_remove_line(),
- pm_clear_bitmap(), pm_map_page();
-
-static struct screen_switch fb_sw = {
- screen_noop, /* graphic_open */
- fb_soft_reset, /* graphic_close */
- fb_set_status, /* set_status */
- pm_get_status, /* get_status */
- pm_char_paint, /* char_paint */
- bt431_pos_cursor, /* pos_cursor */
- pm_insert_line, /* insert_line */
- pm_remove_line, /* remove_line */
- pm_clear_bitmap, /* clear_bitmap */
- fb_video_on, /* video_on */
- fb_video_off, /* video_off */
- fb_vretrace, /* intr_enable */
- pm_map_page /* map_page */
-};
-
-fb_cold_init(unit, up)
- user_info_t *up;
-{
- fb_softc_t *fb;
- screen_softc_t sc = screen(unit);
- vm_offset_t base = tc_probe("fb");
-
- bcopy(&fb_sw, &sc->sw, sizeof(sc->sw));
-#if 0
- sc->flags |= MONO_SCREEN;
-#else
- sc->flags |= COLOR_SCREEN;
-#endif
- sc->frame_scanline_width = 2048;
- sc->frame_height = 1024;
- sc->frame_visible_width = 1280;
- sc->frame_visible_height = 1024;
-
- pm_init_screen_params(sc, up);
- (void) screen_up(unit, up);
-
- fb = pm_alloc(unit, base+FB_OFFSET_BT431, base+FB_OFFSET_VRAM, -1);
- fb->vdac_registers = (char*) base + FB_OFFSET_BT455;
-
- screen_default_colors(up);
-
- fb_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 (NMFB > 0)