Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev Get rid of a bunch of obsolete files.
details: https://anonhg.NetBSD.org/src/rev/0f57924e670b
branches: trunk
changeset: 513088:0f57924e670b
user: eeh <eeh%NetBSD.org@localhost>
date: Mon Jul 23 18:21:26 2001 +0000
description:
Get rid of a bunch of obsolete files.
diffstat:
sys/arch/sparc64/dev/cgsix.c | 639 --------------------------------------
sys/arch/sparc64/dev/cgsix_obio.c | 232 -------------
sys/arch/sparc64/dev/cgsix_sbus.c | 192 -----------
sys/arch/sparc64/dev/cgsixreg.h | 216 ------------
sys/arch/sparc64/dev/cgsixvar.h | 84 ----
5 files changed, 0 insertions(+), 1363 deletions(-)
diffs (truncated from 1383 to 300 lines):
diff -r 2addbbcdeba5 -r 0f57924e670b sys/arch/sparc64/dev/cgsix.c
--- a/sys/arch/sparc64/dev/cgsix.c Mon Jul 23 17:26:50 2001 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,639 +0,0 @@
-/* $NetBSD: cgsix.c,v 1.7 2000/08/26 16:02:06 eeh Exp $ */
-
-/*-
- * Copyright (c) 1998 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Paul Kranenburg.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the NetBSD
- * Foundation, Inc. and its contributors.
- * 4. Neither the name of The NetBSD Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Copyright (c) 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This software was developed by the Computer Systems Engineering group
- * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
- * contributed to Berkeley.
- *
- * All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Lawrence Berkeley Laboratory.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)cgsix.c 8.4 (Berkeley) 1/21/94
- */
-
-/*
- * color display (cgsix) driver.
- *
- * Does not handle interrupts, even though they can occur.
- *
- * XXX should defer colormap updates to vertical retrace interrupts
- */
-
-#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/buf.h>
-#include <sys/device.h>
-#include <machine/fbio.h>
-#include <sys/ioctl.h>
-#include <sys/malloc.h>
-#include <sys/mman.h>
-#include <sys/tty.h>
-#include <sys/conf.h>
-
-#ifdef DEBUG
-#include <sys/proc.h>
-#include <sys/syslog.h>
-#endif
-
-#include <uvm/uvm_extern.h>
-
-#include <machine/bus.h>
-#include <machine/autoconf.h>
-#include <machine/pmap.h>
-#include <machine/fbvar.h>
-#include <machine/cpu.h>
-#include <machine/eeprom.h>
-#include <machine/conf.h>
-
-#include <dev/sbus/sbusvar.h>
-#include <sparc64/dev/btreg.h>
-#include <sparc64/dev/btvar.h>
-#include <sparc64/dev/cgsixreg.h>
-#include <sparc64/dev/cgsixvar.h>
-#include <sparc64/dev/pfourreg.h>
-
-static void cg6_unblank __P((struct device *));
-
-/* cdevsw prototypes */
-cdev_decl(cgsix);
-
-extern struct cfdriver cgsix_cd;
-
-/* frame buffer generic driver */
-static struct fbdriver cg6_fbdriver = {
- cg6_unblank, cgsixopen, cgsixclose, cgsixioctl, cgsixpoll, cgsixmmap
-};
-
-/*
- * Unlike the bw2 and cg3 drivers, we do not need to provide an rconsole
- * interface, as the cg6 is fast enough.. but provide a knob to turn it
- * on anyway.
- */
-#ifdef RASTERCONSOLE
-int cgsix_use_rasterconsole = 0;
-#endif
-
-static void cg6_reset __P((struct cgsix_softc *));
-static void cg6_loadcmap __P((struct cgsix_softc *, int, int));
-static void cg6_loadomap __P((struct cgsix_softc *));
-static void cg6_setcursor __P((struct cgsix_softc *));/* set position */
-static void cg6_loadcursor __P((struct cgsix_softc *));/* set shape */
-
-
-void
-cg6attach(sc, name, isconsole, isfb)
- struct cgsix_softc *sc;
- char *name;
- int isconsole;
- int isfb;
-{
- int i;
- volatile struct bt_regs *bt = sc->sc_bt;
- struct fbdevice *fb = &sc->sc_fb;
-
- fb->fb_driver = &cg6_fbdriver;
-
- /* Don't have to map the pfour register on the cgsix. */
- fb->fb_pfour = NULL;
-
- fb->fb_type.fb_cmsize = 256;
- fb->fb_type.fb_size = fb->fb_type.fb_height * fb->fb_linebytes;
- printf(": %s, %d x %d", name,
- fb->fb_type.fb_width, fb->fb_type.fb_height);
-
- sc->sc_fhcrev = (*sc->sc_fhc >> FHC_REV_SHIFT) &
- (FHC_REV_MASK >> FHC_REV_SHIFT);
-
- printf(", rev %d", sc->sc_fhcrev);
-
- /* reset cursor & frame buffer controls */
- cg6_reset(sc);
-
- /* grab initial (current) color map (DOES THIS WORK?) */
- bt->bt_addr = 0;
- for (i = 0; i < 256 * 3; i++)
- ((char *)&sc->sc_cmap)[i] = bt->bt_cmap >> 24;
-
- /* enable video */
- sc->sc_thc->thc_misc |= THC_MISC_VIDEN;
-
- if (isconsole) {
- printf(" (console)");
-#ifdef RASTERCONSOLE
- if (cgsix_use_rasterconsole)
- fbrcons_init(&sc->sc_fb);
-#endif
- }
-
- printf("\n");
- if (isfb)
- fb_attach(&sc->sc_fb, isconsole);
-}
-
-
-int
-cgsixopen(dev, flags, mode, p)
- dev_t dev;
- int flags, mode;
- struct proc *p;
-{
- int unit = minor(dev);
-
- if (unit >= cgsix_cd.cd_ndevs || cgsix_cd.cd_devs[unit] == NULL)
- return (ENXIO);
- return (0);
-}
-
-int
-cgsixclose(dev, flags, mode, p)
- dev_t dev;
- int flags, mode;
- struct proc *p;
-{
- struct cgsix_softc *sc = cgsix_cd.cd_devs[minor(dev)];
-
- cg6_reset(sc);
- return (0);
-}
-
-int
-cgsixioctl(dev, cmd, data, flags, p)
- dev_t dev;
- u_long cmd;
- caddr_t data;
- int flags;
- struct proc *p;
-{
- struct cgsix_softc *sc = cgsix_cd.cd_devs[minor(dev)];
- u_int count;
- int v, error;
- union cursor_cmap tcm;
-
- switch (cmd) {
-
- case FBIOGTYPE:
- *(struct fbtype *)data = sc->sc_fb.fb_type;
- break;
-
- case FBIOGATTR:
-#define fba ((struct fbgattr *)data)
- fba->real_type = sc->sc_fb.fb_type.fb_type;
- fba->owner = 0; /* XXX ??? */
- fba->fbtype = sc->sc_fb.fb_type;
- fba->sattr.flags = 0;
- fba->sattr.emu_type = sc->sc_fb.fb_type.fb_type;
- fba->sattr.dev_specific[0] = -1;
- fba->emu_types[0] = sc->sc_fb.fb_type.fb_type;
- fba->emu_types[1] = -1;
-#undef fba
- break;
-
- case FBIOGETCMAP:
- return (bt_getcmap((struct fbcmap *)data, &sc->sc_cmap, 256));
-
- case FBIOPUTCMAP:
- /* copy to software map */
-#define p ((struct fbcmap *)data)
- error = bt_putcmap(p, &sc->sc_cmap, 256);
- if (error)
- return (error);
- /* now blast them into the chip */
- /* XXX should use retrace interrupt */
- cg6_loadcmap(sc, p->index, p->count);
-#undef p
- break;
-
- case FBIOGVIDEO:
- *(int *)data = sc->sc_blanked;
- break;
-
- case FBIOSVIDEO:
- if (*(int *)data)
- cg6_unblank(&sc->sc_dev);
- else if (!sc->sc_blanked) {
- sc->sc_blanked = 1;
- sc->sc_thc->thc_misc &= ~THC_MISC_VIDEN;
- }
- break;
-
-/* these are for both FBIOSCURSOR and FBIOGCURSOR */
-#define p ((struct fbcursor *)data)
-#define cc (&sc->sc_cursor)
-
- case FBIOGCURSOR:
- /* do not quite want everything here... */
- p->set = FB_CUR_SETALL; /* close enough, anyway */
- p->enable = cc->cc_enable;
- p->pos = cc->cc_pos;
Home |
Main Index |
Thread Index |
Old Index