1*ffbe1066Srin /* $NetBSD: autoconf.c,v 1.15 2021/03/05 06:26:56 rin Exp $ */
2249e0067Shannken
3249e0067Shannken /*-
4249e0067Shannken * Copyright (c) 2003 The NetBSD Foundation, Inc.
5249e0067Shannken * All rights reserved.
6249e0067Shannken *
7249e0067Shannken * This code is derived from software contributed to The NetBSD Foundation
8249e0067Shannken * by Juergen Hannken-Illjes.
9249e0067Shannken *
10249e0067Shannken * Redistribution and use in source and binary forms, with or without
11249e0067Shannken * modification, are permitted provided that the following conditions
12249e0067Shannken * are met:
13249e0067Shannken * 1. Redistributions of source code must retain the above copyright
14249e0067Shannken * notice, this list of conditions and the following disclaimer.
15249e0067Shannken * 2. Redistributions in binary form must reproduce the above copyright
16249e0067Shannken * notice, this list of conditions and the following disclaimer in the
17249e0067Shannken * documentation and/or other materials provided with the distribution.
18249e0067Shannken *
19249e0067Shannken * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20249e0067Shannken * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21249e0067Shannken * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22249e0067Shannken * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23249e0067Shannken * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24249e0067Shannken * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25249e0067Shannken * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26249e0067Shannken * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27249e0067Shannken * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28249e0067Shannken * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29249e0067Shannken * POSSIBILITY OF SUCH DAMAGE.
30249e0067Shannken */
31249e0067Shannken
3214172728Slukem #include <sys/cdefs.h>
33*ffbe1066Srin __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.15 2021/03/05 06:26:56 rin Exp $");
3414172728Slukem
35249e0067Shannken #include <sys/param.h>
36249e0067Shannken #include <sys/conf.h>
3751a2be50Smatt #include <sys/device_if.h>
38249e0067Shannken #include <sys/systm.h>
3951a2be50Smatt #include <sys/cpu.h>
4051a2be50Smatt
4151a2be50Smatt #include <powerpc/ibm4xx/cpu.h>
42249e0067Shannken
43249e0067Shannken void
cpu_configure(void)44249e0067Shannken cpu_configure(void)
45249e0067Shannken {
46*ffbe1066Srin
47*ffbe1066Srin intr_init();
48249e0067Shannken calc_delayconst();
49249e0067Shannken
50249e0067Shannken if (config_rootfound("elb", NULL) == NULL)
51249e0067Shannken panic("configure: elb not configured");
52249e0067Shannken
53525fa252Srin genppc_cpu_configure();
54249e0067Shannken }
55249e0067Shannken
56249e0067Shannken void
cpu_rootconf(void)57249e0067Shannken cpu_rootconf(void)
58249e0067Shannken {
598ce44338Smlelstv rootconf();
60249e0067Shannken }
611a4648d9Sthorpej
621a4648d9Sthorpej void
device_register(device_t dev,void * aux)6351a2be50Smatt device_register(device_t dev, void *aux)
641a4648d9Sthorpej {
651a4648d9Sthorpej }
66