autoconf.h revision 1.1 1 1.1 briggs /* $NetBSD: autoconf.h,v 1.1 1996/05/05 06:17:31 briggs Exp $ */
2 1.1 briggs
3 1.1 briggs /*
4 1.1 briggs * Copyright (c) 1994 Gordon W. Ross
5 1.1 briggs * Copyright (c) 1993 Adam Glass
6 1.1 briggs * All rights reserved.
7 1.1 briggs *
8 1.1 briggs * Redistribution and use in source and binary forms, with or without
9 1.1 briggs * modification, are permitted provided that the following conditions
10 1.1 briggs * are met:
11 1.1 briggs * 1. Redistributions of source code must retain the above copyright
12 1.1 briggs * notice, this list of conditions and the following disclaimer.
13 1.1 briggs * 2. Redistributions in binary form must reproduce the above copyright
14 1.1 briggs * notice, this list of conditions and the following disclaimer in the
15 1.1 briggs * documentation and/or other materials provided with the distribution.
16 1.1 briggs * 3. All advertising materials mentioning features or use of this software
17 1.1 briggs * must display the following acknowledgement:
18 1.1 briggs * This product includes software developed by Adam Glass.
19 1.1 briggs * 4. The name of the Author may not be used to endorse or promote products
20 1.1 briggs * derived from this software without specific prior written permission.
21 1.1 briggs *
22 1.1 briggs * THIS SOFTWARE IS PROVIDED BY Adam Glass ``AS IS'' AND
23 1.1 briggs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 1.1 briggs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 1.1 briggs * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 1.1 briggs * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 1.1 briggs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 1.1 briggs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 1.1 briggs * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 1.1 briggs * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 1.1 briggs * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 1.1 briggs * SUCH DAMAGE.
33 1.1 briggs */
34 1.1 briggs
35 1.1 briggs #include <sys/device.h>
36 1.1 briggs
37 1.1 briggs /*
38 1.1 briggs * Autoconfiguration information.
39 1.1 briggs * From sun3 port--adapted for mac68k platform by Allen Briggs.
40 1.1 briggs */
41 1.1 briggs
42 1.1 briggs /* These are the "bus" types: */
43 1.1 briggs #define BUS_OBIO 0 /* On-board I/O */
44 1.1 briggs #define BUS_NUBUS 1 /* "nubus" */
45 1.1 briggs
46 1.1 briggs /*
47 1.1 briggs * This is the "args" parameter to the bus match/attach functions.
48 1.1 briggs */
49 1.1 briggs struct confargs {
50 1.1 briggs int ca_bustype; /* BUS_INTERNAL0, ... */
51 1.1 briggs int slot;
52 1.1 briggs };
53 1.1 briggs
54 1.1 briggs void configure __P((void));
55 1.1 briggs
56 1.1 briggs void mrg_init __P((void));
57 1.1 briggs void startrtclock __P((void));
58 1.1 briggs void setconf __P((void));
59 1.1 briggs void dumpconf __P((void));
60 1.1 briggs
61 1.1 briggs int bus_scan __P((struct device *, void *, void *));
62 1.1 briggs int bus_print __P((void *, char *));
63 1.1 briggs int bus_peek __P((int, vm_offset_t, int));
64 1.1 briggs char *bus_mapin __P((int, int, int));
65 1.1 briggs int badbaddr __P((register caddr_t addr));
66 1.1 briggs int badwaddr __P((register caddr_t addr));
67 1.1 briggs int badladdr __P((register caddr_t addr));
68 1.1 briggs
69 1.1 briggs int mac68k_name_match __P((struct device *, void *, void *));
70 1.1 briggs
71 1.1 briggs /* clock.h */
72 1.1 briggs
73 1.1 briggs void enablertclock __P((void));
74 1.1 briggs void cpu_initclocks __P((void));
75 1.1 briggs void setstatclockrate __P((int));
76 1.1 briggs void disablertclock __P((void));
77 1.1 briggs u_long clkread __P((void));
78 1.1 briggs void inittodr __P((time_t));
79 1.1 briggs void resettodr __P((void));
80 1.1 briggs void mac68k_calibrate_delay __P((void));
81