From 10b5625b87a28c495693ea44366df36e27d52494 Mon Sep 17 00:00:00 2001 From: nisimura Date: Mon, 15 Mar 1999 01:54:56 +0000 Subject: [PATCH] - Nuke old leftover; round three. Remove never-used functions. XXX Needs to eliminate TURBOchannel exposure here. --- sys/arch/pmax/pmax/mainbus.c | 51 +++++++----------------------------- 1 file changed, 9 insertions(+), 42 deletions(-) diff --git a/sys/arch/pmax/pmax/mainbus.c b/sys/arch/pmax/pmax/mainbus.c index 9c7c862d3058..8055c3fc6143 100644 --- a/sys/arch/pmax/pmax/mainbus.c +++ b/sys/arch/pmax/pmax/mainbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: mainbus.c,v 1.26 1998/09/05 04:11:04 nisimura Exp $ */ +/* $NetBSD: mainbus.c,v 1.27 1999/03/15 01:54:56 nisimura Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -31,19 +31,12 @@ #include #include #include -#include - #include -#include -#include +#include -#include - -#include "pmaxtype.h" -#include "nameglue.h" - -#include "tc.h" /* Is TURBOchannel configured? */ +#include /* XXX */ +#include "tc.h" /* XXX Is TURBOchannel configured? */ struct mainbus_softc { struct device sc_dv; @@ -58,11 +51,6 @@ struct cfattach mainbus_ca = { sizeof(struct mainbus_softc), mbmatch, mbattach }; -void mb_intr_establish __P((struct confargs *ca, - int (*handler)(intr_arg_t), - intr_arg_t val )); -void mb_intr_disestablish __P((struct confargs *)); - static int mbmatch(parent, cf, aux) struct device *parent; @@ -74,12 +62,12 @@ mbmatch(parent, cf, aux) * Only one mainbus, but some people are stupid... */ if (cf->cf_unit > 0) - return(0); + return (0); /* * That one mainbus is always here. */ - return(1); + return (1); } int ncpus = 0; /* only support uniprocessors, for now */ @@ -90,13 +78,13 @@ mbattach(parent, self, aux) struct device *self; void *aux; { - register struct device *mb = self; + struct device *mb = self; struct confargs nca; printf("\n"); /* - * if we ever support multi-CPU DEcstations (5800 family), + * if we ever support multi-processor DECsystem (5800 family), * the Alpha port's mainbus.c has an example of attaching * multiple CPUs. * @@ -104,8 +92,6 @@ mbattach(parent, self, aux) */ nca.ca_name = "cpu"; nca.ca_slot = 0; - nca.ca_offset = 0; - nca.ca_addr = 0; config_found(mb, &nca, mbprint); #if NTC > 0 @@ -120,14 +106,13 @@ mbattach(parent, self, aux) } #endif /* NTC */ - if (systype == DS_PMAX || systype == DS_MIPSMATE) { nca.ca_name = "baseboard"; + nca.ca_slot = 0; config_found(mb, &nca, mbprint); } } - static int mbprint(aux, pnp) void *aux; @@ -138,21 +123,3 @@ mbprint(aux, pnp) return (QUIET); return (UNCONF); } - -void -mb_intr_establish(ca, handler, val) - struct confargs *ca; - int (*handler) __P((intr_arg_t)); - intr_arg_t val; -{ - - panic("can never mb_intr_establish"); -} - -void -mb_intr_disestablish(ca) - struct confargs *ca; -{ - - panic("can never mb_intr_disestablish"); -}