Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha Remove Avalon A12 support.
details: https://anonhg.NetBSD.org/src/rev/9552d8746cde
branches: trunk
changeset: 766148:9552d8746cde
user: matt <matt%NetBSD.org@localhost>
date: Fri Jun 17 03:55:56 2011 +0000
description:
Remove Avalon A12 support.
ok ross@
diffstat:
sys/arch/alpha/Makefile | 4 +-
sys/arch/alpha/a12/a12dc.c | 638 --------------------------------
sys/arch/alpha/a12/a12dcreg.h | 144 -------
sys/arch/alpha/a12/if_xb.c | 746 --------------------------------------
sys/arch/alpha/a12/if_xb.h | 82 ----
sys/arch/alpha/alpha/avalon_a12.c | 239 ------------
sys/arch/alpha/alpha/cpuconf.c | 12 +-
sys/arch/alpha/conf/files.alpha | 31 +-
sys/arch/alpha/conf/majors.alpha | 4 +-
sys/arch/alpha/pci/a12c.c | 166 --------
sys/arch/alpha/pci/a12c_bus_mem.c | 516 --------------------------
sys/arch/alpha/pci/a12c_dma.c | 145 -------
sys/arch/alpha/pci/a12c_pci.c | 210 ----------
sys/arch/alpha/pci/a12creg.h | 148 -------
sys/arch/alpha/pci/a12cvar.h | 93 ----
sys/arch/alpha/pci/pci_a12.c | 290 --------------
sys/arch/alpha/pci/pci_a12.h | 44 --
17 files changed, 7 insertions(+), 3505 deletions(-)
diffs (truncated from 3662 to 300 lines):
diff -r 6e890a4428f8 -r 9552d8746cde sys/arch/alpha/Makefile
--- a/sys/arch/alpha/Makefile Fri Jun 17 02:15:28 2011 +0000
+++ b/sys/arch/alpha/Makefile Fri Jun 17 03:55:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2011/04/03 23:07:19 dyoung Exp $
+# $NetBSD: Makefile,v 1.15 2011/06/17 03:55:56 matt Exp $
# Makefile for alpha tags file and boot blocks
@@ -13,7 +13,7 @@
AALPHA= ${SYSDIR}/arch/alpha/alpha/*.s ${SYSDIR}/arch/alpha/pci/*.s
# Directories in which to place tags links
-DALPHA= a12 common eisa include isa jensenio mcbus pci sableio tc tlsb
+DALPHA= common eisa include isa jensenio mcbus pci sableio tc tlsb
.include "../../kern/Make.tags.inc"
diff -r 6e890a4428f8 -r 9552d8746cde sys/arch/alpha/a12/a12dc.c
--- a/sys/arch/alpha/a12/a12dc.c Fri Jun 17 02:15:28 2011 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,638 +0,0 @@
-/* $NetBSD: a12dc.c,v 1.26 2011/06/14 15:34:21 matt Exp $ */
-
-/* [Notice revision 2.2]
- * Copyright (c) 1997, 1998 Avalon Computer Systems, Inc.
- * All rights reserved.
- *
- * Author: Ross Harvey
- *
- * 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 and
- * author 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. Neither the name of Avalon Computer Systems, Inc. nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- * 4. This copyright will be assigned to The NetBSD Foundation on
- * 1/1/2000 unless these terms (including possibly the assignment
- * date) are updated in writing by Avalon prior to the latest specified
- * assignment date.
- *
- * THIS SOFTWARE IS PROVIDED BY AVALON COMPUTER SYSTEMS, 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 AVALON OR THE 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.
- */
-
-/*
- * The A12 uses what DEC calls a "detached console", i.e., some of the console
- * implementation is on a dedicated processor with its own RAM.
- *
- * The A12 Detached Console interface uses two 16 bit registers (per CPU), one
- * going from the CPU to the a12ctrl processor and one going back the other
- * way. The first is polled, the second produces a GInt.
- *
- * In the very early days we loaded program images through this interface.
- *
- * Consequently, it developed an overly complicated (but sort of fast)
- * inverting sync/ack that isn't needed at all for its present application as
- * a text console device.
- *
- * One possible solution: most of the channels are undefined, so a console
- * channel using a stateless ack could be defined, with corresponding changes
- * to the backplane 68360 code.
- *
- * This file is complicated somewhat by its use in three different kernels:
- * NetBSD, the A12 CPU-resident console, and the a12ctrl backplane processor.
- * (The protocol is symmetrical.)
- */
-
-#include "opt_avalon_a12.h" /* Config options headers */
-#include "opt_kgdb.h"
-
-#ifndef BSIDE
-#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-
-__KERNEL_RCSID(0, "$NetBSD: a12dc.c,v 1.26 2011/06/14 15:34:21 matt Exp $");
-
-#include <sys/types.h>
-#include <sys/param.h>
-#include <sys/systm.h>
-
-#include <sys/tty.h>
-#include <sys/proc.h>
-#include <sys/uio.h>
-#include <sys/device.h>
-#include <sys/conf.h>
-#include <sys/kauth.h>
-
-#include <dev/cons.h>
-
-#include <machine/cpuconf.h>
-#include <machine/autoconf.h>
-#include <machine/rpb.h>
-
-#include <alpha/pci/a12creg.h>
-#include <alpha/pci/a12cvar.h>
-#include <alpha/pci/pci_a12.h>
-
-#include "a12dcreg.h"
-
-#define A12DC() /* Generate ctags(1) key */
-
-#define MAX_MODULES 1
-
-int a12dcmatch(device_t, cfdata_t, void *);
-void a12dcattach(device_t, device_t, void *);
-
-CFATTACH_DECL_NEW(a12dc, 0,
- a12dcmatch, a12dcattach, NULL, NULL);
-
-extern struct cfdriver a12dc_cd;
-
-dev_type_open(a12dcopen);
-dev_type_close(a12dcclose);
-dev_type_read(a12dcread);
-dev_type_write(a12dcwrite);
-dev_type_ioctl(a12dcioctl);
-dev_type_stop(a12dcstop);
-dev_type_tty(a12dctty);
-dev_type_poll(a12dcpoll);
-
-const struct cdevsw a12dc_cdevsw = {
- a12dcopen, a12dcclose, a12dcread, a12dcwrite, a12dcioctl,
- a12dcstop, a12dctty, a12dcpoll, nommap, ttykqfilter, D_TTY
-};
-
-int a12dcfound; /* There Can Be Only One. */
-
-struct a12dc_config { int im_not_used; } a12dc_configuration;
-
-static struct tty *a12dc_tty[1];
-
-void a12dcstart(struct tty *);
-void a12dctimeout(void *);
-int a12dcparam(struct tty *, struct termios *);
-void a12dc_init(struct a12dc_config *, int);
-static void a12cdrputc(int);
-int a12dccngetc(dev_t);
-void a12dccnputc(dev_t, int);
-void a12dccnpollc(dev_t, int);
-/* static int get_bc_char(int mn, int chan); */
-/* static int get_bc_any(int,int *,int *); */
-int a12dcintr(void *);
-static void a12_worry(int worry_number);
-static void A12InitBackDriver(int);
-
-int
-a12dcmatch(device_t parent, cfdata_t match, void *aux)
-{
- struct pcibus_attach_args *pba = aux;
-
- return cputype == ST_AVALON_A12
- && !a12dcfound;
-}
-
-void
-a12dcattach(device_t parent, device_t self, void *aux)
-{
- struct tty *tp;
- struct a12dc_config *ccp;
-
- /* note that we've attached the chipset; can't have 2 A12Cs. */
- a12dcfound = 1;
-
- aprintf_normal(": driver %s\n", "$Revision: 1.26 $");
-
- tp = a12dc_tty[0] = tty_alloc();
- tp->t_oproc = a12dcstart;
- tp->t_param = a12dcparam;
- tty_attach(tp);
-
- ccp = &a12dc_configuration;
- a12dc_init(ccp, 1);
-}
-
-void
-a12dc_init(struct a12dc_config *ccp, int sleepsafe)
-{
-}
-
-/*
- * XXX definitions specific to only one of the kernels will be moved into
- * kernel-local include files. (One of these days.)
- */
-#define spla12dc() spltty()
-#define a12yield()
-#define CDRADDR(m) ((mmreg_t *)(REGADDR(A12_CDR))) /* ignore m */
-#define modenormal()
-#define mb() alpha_mb()
-#define wmb() alpha_wmb()
-
-#else
-
-#include "product.def"
-#include "ghs.h"
-#include "a12ctrl.h"
-
-#define wmb()
-#define mb()
-#define swpipl(a) (a)
-#define splx(a) (a)
-#define spla12dc()
-#define hrhpanic(s,v) panic((s))
-#define CDRADDR(m) ((mmreg_t *)(A12_BACKPLANE+(m)))
-
-#endif
-
-static int msgetput(register mstate_type *, int, int);
-static void checkinit(void);
-
-static void
-A12InitBackDriver(int m)
-{
- /*
- * XXX memset() would be good here, but there is a (temporary) reason
- * for all this right now
- */
- a12_mstate[m].xcdr = CDRADDR(m);
- a12_mstate[m].txrdy_out = A12C_TXRDY;
- a12_mstate[m].txrdy_in = A12C_TXRDY;
- a12_mstate[m].txack_out = A12C_TXACK;
- a12_mstate[m].txack_in = A12C_TXACK;
- a12_mstate[m].txsv = tx_idle;
- a12_mstate[m].rxsv = rx_idle;
- a12_mstate[m].reset_scanner= 1;
- a12_mstate[m].reset_loader = 1;
- a12_mstate[m].up = 1;
- a12_mstate[m].lastr = 0; /* last char. received */
- a12_mstate[m].lastrc = 0; /* last received channel */
- a12_mstate[m].rx_busy_wait = 0; /* last received busy ticks */
- a12_mstate[m].rx_busy_cnt = 0; /* last received start clock */
- a12_mstate[m].lastt = 0; /* last char. trasmitted */
- a12_mstate[m].lasttc = 0; /* last transmit channel */
- a12_mstate[m].tx_busy_wait = 0; /* last transmitted busy ticks */
- a12_mstate[m].tx_busy_cnt = 0; /* last transmitted start clock */
- a12_mstate[m].tbytes = 0;
- a12_mstate[m].tblkbytes = 0;
- a12_mstate[m].tblks = 0;
- a12_mstate[m].blwobe = 0;
- a12_mstate[m].blwbe = 0;
- a12_mstate[m].max_blkretry = 0;
- a12_mstate[m].max_blktime = 0;
- a12_mstate[m].max_blktimesz = 0;
- a12_mstate[m].avg_blksz = 0;
- a12_mstate[m].avg_blktime = 0;
- a12_mstate[m].retry_time = 0;
-}
-
-static void
-checkinit(void)
-{
-static int did_init;
-
- if (!did_init) {
- A12InitBackDriver(0);
- did_init = 1;
- }
-}
-
-int
-a12dcopen(dev_t dev, int flag, int mode, struct lwp *l)
-{
- int unit = minor(dev);
- struct tty *tp;
- int s;
-
- if (unit >= 1)
- return ENXIO;
-
-#ifdef KGDB
- if (flags & COM_HW_KGDB)
- return EBUSY;
-#endif
-
- if (!a12dc_tty[unit]) {
- tp = a12dc_tty[unit] = tty_alloc();
- tty_attach(tp);
- } else
- tp = a12dc_tty[unit];
-
- if (kauth_authorize_device_tty(l->l_cred, KAUTH_DEVICE_TTY_OPEN, tp))
- return (EBUSY);
-
- s = spltty();
-
- tp->t_oproc = a12dcstart;
- tp->t_param = a12dcparam;
Home |
Main Index |
Thread Index |
Old Index