1*1fd2c684Smatt /* $NetBSD: board_prop.c,v 1.4 2011/06/18 06:41:41 matt Exp $ */
20f2e5868Sshige
30f2e5868Sshige /*
40f2e5868Sshige * Copyright (c) 2004 Shigeyuki Fukushima.
50f2e5868Sshige * All rights reserved.
60f2e5868Sshige *
70f2e5868Sshige * Redistribution and use in source and binary forms, with or without
80f2e5868Sshige * modification, are permitted provided that the following conditions
90f2e5868Sshige * are met:
100f2e5868Sshige * 1. Redistributions of source code must retain the above copyright
110f2e5868Sshige * notice, this list of conditions and the following disclaimer.
120f2e5868Sshige * 2. Redistributions in binary form must reproduce the above
130f2e5868Sshige * copyright notice, this list of conditions and the following
140f2e5868Sshige * disclaimer in the documentation and/or other materials provided
150f2e5868Sshige * with the distribution.
160f2e5868Sshige * 3. The name of the author may not be used to endorse or promote
170f2e5868Sshige * products derived from this software without specific prior
180f2e5868Sshige * written permission.
190f2e5868Sshige *
200f2e5868Sshige * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
210f2e5868Sshige * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
220f2e5868Sshige * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
230f2e5868Sshige * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
240f2e5868Sshige * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
250f2e5868Sshige * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
260f2e5868Sshige * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
270f2e5868Sshige * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
280f2e5868Sshige * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
290f2e5868Sshige * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
300f2e5868Sshige * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
310f2e5868Sshige */
320f2e5868Sshige
330f2e5868Sshige #include <sys/cdefs.h>
34*1fd2c684Smatt __KERNEL_RCSID(0, "$NetBSD: board_prop.c,v 1.4 2011/06/18 06:41:41 matt Exp $");
350f2e5868Sshige
360f2e5868Sshige #include <sys/param.h>
370f2e5868Sshige #include <sys/systm.h>
38*1fd2c684Smatt #include <sys/cpu.h>
390f2e5868Sshige
40fb44a857Sthorpej #include <prop/proplib.h>
41fb44a857Sthorpej
42*1fd2c684Smatt #include <powerpc/ibm4xx/cpu.h>
430f2e5868Sshige
44fb44a857Sthorpej prop_dictionary_t board_properties;
450f2e5868Sshige
460f2e5868Sshige void
board_info_init(void)470f2e5868Sshige board_info_init(void)
480f2e5868Sshige {
490f2e5868Sshige
500f2e5868Sshige /*
51fb44a857Sthorpej * Set up the board properties dictionary.
520f2e5868Sshige */
53fb44a857Sthorpej if (board_properties != NULL)
540f2e5868Sshige return;
55fb44a857Sthorpej board_properties = prop_dictionary_create();
56fb44a857Sthorpej KASSERT(board_properties != NULL);
570f2e5868Sshige }
58