remove unnecessary header inclusion (machine/autoconf.h) and now-bogus comment.
also, trim spaces at ends of lines, etc.
This commit is contained in:
parent
e27e15d0ac
commit
720c148692
@ -1,21 +1,21 @@
|
|||||||
/* $NetBSD: tc.c,v 1.13 1996/04/09 20:50:06 jonathan Exp $ */
|
/* $NetBSD: tc.c,v 1.14 1996/04/18 01:12:41 cgd Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Author: Chris G. Demetriou
|
* Author: Chris G. Demetriou
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify and distribute this software and
|
* Permission to use, copy, modify and distribute this software and
|
||||||
* its documentation is hereby granted, provided that both the copyright
|
* its documentation is hereby granted, provided that both the copyright
|
||||||
* notice and this permission notice appear in all copies of the
|
* notice and this permission notice appear in all copies of the
|
||||||
* software, derivative works or modified versions, and any portions
|
* software, derivative works or modified versions, and any portions
|
||||||
* thereof, and that both notices appear in supporting documentation.
|
* thereof, and that both notices appear in supporting documentation.
|
||||||
*
|
*
|
||||||
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
|
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
|
||||||
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
|
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
|
||||||
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
|
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* Carnegie Mellon requests users of this software to return to
|
* Carnegie Mellon requests users of this software to return to
|
||||||
*
|
*
|
||||||
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
|
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
|
||||||
@ -35,8 +35,6 @@
|
|||||||
#include <dev/tc/tcvar.h>
|
#include <dev/tc/tcvar.h>
|
||||||
#include <dev/tc/tcdevs.h>
|
#include <dev/tc/tcdevs.h>
|
||||||
|
|
||||||
#include <machine/autoconf.h>
|
|
||||||
|
|
||||||
struct tc_softc {
|
struct tc_softc {
|
||||||
struct device sc_dv;
|
struct device sc_dv;
|
||||||
|
|
||||||
@ -78,8 +76,6 @@ tcmatch(parent, cfdata, aux)
|
|||||||
if (strcmp(tba->tba_busname, cf->cf_driver->cd_name))
|
if (strcmp(tba->tba_busname, cf->cf_driver->cd_name))
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
/* XXX check other indicators */
|
|
||||||
|
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,7 +134,7 @@ tcattach(parent, self, aux)
|
|||||||
ta.ta_addr = tcaddr;
|
ta.ta_addr = tcaddr;
|
||||||
ta.ta_cookie = builtin->tcb_cookie;
|
ta.ta_cookie = builtin->tcb_cookie;
|
||||||
ta.ta_busspeed = sc->sc_speed;
|
ta.ta_busspeed = sc->sc_speed;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mark the slot as used, so we don't check it later.
|
* Mark the slot as used, so we don't check it later.
|
||||||
*/
|
*/
|
||||||
@ -199,17 +195,17 @@ tcprint(aux, pnp)
|
|||||||
|
|
||||||
if (pnp) {
|
if (pnp) {
|
||||||
tc_devinfo(ta->ta_modname, devinfo);
|
tc_devinfo(ta->ta_modname, devinfo);
|
||||||
printf("%s at %s", devinfo, pnp);
|
printf("%s at %s", devinfo, pnp);
|
||||||
}
|
}
|
||||||
printf(" slot %d offset 0x%lx", ta->ta_slot,
|
printf(" slot %d offset 0x%lx", ta->ta_slot,
|
||||||
(long)ta->ta_offset);
|
(long)ta->ta_offset);
|
||||||
return (UNCONF);
|
return (UNCONF);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
tcsubmatch(parent, match, aux)
|
tcsubmatch(parent, match, aux)
|
||||||
struct device *parent;
|
struct device *parent;
|
||||||
void *match, *aux;
|
void *match, *aux;
|
||||||
{
|
{
|
||||||
struct cfdata *cf = match;
|
struct cfdata *cf = match;
|
||||||
struct tc_attach_args *d = aux;
|
struct tc_attach_args *d = aux;
|
||||||
@ -280,7 +276,7 @@ tc_intr_establish(dev, cookie, level, handler, arg)
|
|||||||
{
|
{
|
||||||
struct tc_softc *sc = (struct tc_softc *)dev;
|
struct tc_softc *sc = (struct tc_softc *)dev;
|
||||||
|
|
||||||
(*sc->sc_intr_establish)(sc->sc_dv.dv_parent, cookie, level,
|
(*sc->sc_intr_establish)(sc->sc_dv.dv_parent, cookie, level,
|
||||||
handler, arg);
|
handler, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -295,12 +291,12 @@ tc_intr_disestablish(dev, cookie)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TCVERBOSE
|
#ifdef TCVERBOSE
|
||||||
/*
|
/*
|
||||||
* Descriptions of of known devices.
|
* Descriptions of of known devices.
|
||||||
*/
|
*/
|
||||||
struct tc_knowndev {
|
struct tc_knowndev {
|
||||||
const char *id, *driver, *description;
|
const char *id, *driver, *description;
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <dev/tc/tcdevs_data.h>
|
#include <dev/tc/tcdevs_data.h>
|
||||||
#endif /* TCVERBOSE */
|
#endif /* TCVERBOSE */
|
||||||
|
Loading…
Reference in New Issue
Block a user