xref: /netbsd-src/sys/arch/evbmips/rasoc/autoconf.c (revision 6a493d6bc668897c91594964a732d38505b70cbb)
1 /*	$NetBSD: autoconf.c,v 1.4 2012/10/27 17:17:51 chs Exp $	*/
2 /*-
3  * Copyright (c) 2011 CradlePoint Technology, Inc.
4  * All rights reserved.
5  *
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  *
16  * THIS SOFTWARE IS PROVIDED BY CRADLEPOINT TECHNOLOGY, INC. AND CONTRIBUTORS
17  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
20  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26  * POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #include <sys/cdefs.h>
30 __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.4 2012/10/27 17:17:51 chs Exp $");
31 
32 #include <sys/param.h>
33 #include <sys/bus.h>
34 #include <sys/conf.h>
35 #include <sys/device.h>
36 #include <sys/systm.h>
37 
38 /*
39  * Configure all devices on system
40  */
41 void
42 cpu_configure(void)
43 {
44 	intr_init();
45 
46 	/* Kick off autoconfiguration. */
47 	if (config_rootfound("mainbus", NULL) == NULL)
48 		panic("no mainbus found");
49 
50 	/*
51 	 * Hardware interrupts will be enabled in
52 	 * sys/arch/mips/mips/mips3_clockintr.c:mips3_initclocks()
53 	 * to avoid hardclock(9) by CPU INT5 before softclockintr is
54 	 * initialized in initclocks().
55 	 */
56 }
57 
58 void
59 cpu_rootconf(void)
60 {
61 	rootconf();
62 }
63 
64 void
65 device_register(device_t dev, void *aux)
66 {
67 	/* TBD */
68 }
69