diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-26 18:12:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-26 18:12:13 +0000 |
commit | a8f00fc5aa9b1ee96395df57d191c0bb87ed6372 (patch) | |
tree | a849696c050436debbcd382004a307464642c7c1 /sys/arch/alpha/tc/tc_conf.h | |
parent | f8bc9fc741886cdb6606326d80da919ef2cee3af (diff) |
from netbsd:
machine-independent TurboChannel bus configuration. These files
deal with stuff like:
(1) configuring built-in devices,
(2) looking at TC slots configuring any devices found.
The lists of slots, slot locations, etc. and built-in devices
are provided by machine-dependent code. Interrupt handling
is also provided by machine-dependent code, but the MD code provides
hooks so that standard names for 'establish' and 'disestablish'
can be used in drivers.
This code requires <machine/tc_machdep.h>, which defines some
portability types specific to the TurboChannel bus code.
Diffstat (limited to 'sys/arch/alpha/tc/tc_conf.h')
-rw-r--r-- | sys/arch/alpha/tc/tc_conf.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/sys/arch/alpha/tc/tc_conf.h b/sys/arch/alpha/tc/tc_conf.h new file mode 100644 index 00000000000..1d73b9ac660 --- /dev/null +++ b/sys/arch/alpha/tc/tc_conf.h @@ -0,0 +1,60 @@ +/* $NetBSD: tc_conf.h,v 1.1 1995/12/20 00:43:32 cgd Exp $ */ + +/* + * Copyright (c) 1995 Carnegie-Mellon University. + * All rights reserved. + * + * Author: Chris G. Demetriou + * + * 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 the + * rights to redistribute these changes. + */ + +/* + * Machine-specific TurboChannel configuration definitions. + */ + +#ifdef DEC_3000_500 +extern void tc_3000_500_intr_setup __P((void)); +extern void tc_3000_500_iointr __P((void *, int)); + +extern void tc_3000_500_intr_establish __P((struct device *, void *, + tc_intrlevel_t, int (*)(void *), void *)); +extern void tc_3000_500_intr_disestablish __P((struct device *, void *)); + +extern int tc_3000_500_nslots; +extern struct tc_slotdesc tc_3000_500_slots[]; +extern int tc_3000_500_nbuiltins; +extern struct tc_builtin tc_3000_500_builtins[]; +#endif /* DEC_3000_500 */ + +#ifdef DEC_3000_300 +extern void tc_3000_300_intr_setup __P((void)); +extern void tc_3000_300_iointr __P((void *, int)); + +extern void tc_3000_300_intr_establish __P((struct device *, void *, + tc_intrlevel_t, int (*)(void *), void *)); +extern void tc_3000_300_intr_disestablish __P((struct device *, void *)); + +extern int tc_3000_300_nslots; +extern struct tc_slotdesc tc_3000_300_slots[]; +extern int tc_3000_300_nbuiltins; +extern struct tc_builtin tc_3000_300_builtins[]; +#endif /* DEC_3000_300 */ |