xref: /netbsd-src/sys/arch/sun3/include/idprom.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: idprom.h,v 1.22 2008/04/28 20:23:38 martin Exp $	*/
220af809cScgd 
303325025Sgwr /*-
403325025Sgwr  * Copyright (c) 1996 The NetBSD Foundation, Inc.
5a2133ea2Sglass  * All rights reserved.
6a2133ea2Sglass  *
703325025Sgwr  * This code is derived from software contributed to The NetBSD Foundation
803325025Sgwr  * by Adam Glass.
903325025Sgwr  *
10a2133ea2Sglass  * Redistribution and use in source and binary forms, with or without
11a2133ea2Sglass  * modification, are permitted provided that the following conditions
12a2133ea2Sglass  * are met:
13a2133ea2Sglass  * 1. Redistributions of source code must retain the above copyright
14a2133ea2Sglass  *    notice, this list of conditions and the following disclaimer.
15a2133ea2Sglass  * 2. Redistributions in binary form must reproduce the above copyright
16a2133ea2Sglass  *    notice, this list of conditions and the following disclaimer in the
17a2133ea2Sglass  *    documentation and/or other materials provided with the distribution.
18a2133ea2Sglass  *
1903325025Sgwr  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2003325025Sgwr  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2103325025Sgwr  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22340699a2Sgwr  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23340699a2Sgwr  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2403325025Sgwr  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2503325025Sgwr  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2603325025Sgwr  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2703325025Sgwr  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2803325025Sgwr  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2903325025Sgwr  * POSSIBILITY OF SUCH DAMAGE.
30a2133ea2Sglass  */
31a2133ea2Sglass 
3215adcb96Sthorpej #ifndef	_MACHINE_IDPROM_H
3315adcb96Sthorpej #define	_MACHINE_IDPROM_H
3411a0ff5fSglass 
3515adcb96Sthorpej #include <dev/sun/idprom.h>
360c5e3e49Sgwr 
37991d9e23Sgwr #if defined(_KERNEL) || defined(_STANDALONE)
380c5e3e49Sgwr 
39a01db714Sgwr extern struct idprom identity_prom;
400c5e3e49Sgwr extern u_char cpu_machine_id;
410c5e3e49Sgwr 
4210b1a7beSchs void idprom_etheraddr(u_char *);
4310b1a7beSchs void idprom_init(void);
440c5e3e49Sgwr 
45991d9e23Sgwr #endif	/* _KERNEL || _STANDALONE */
4615adcb96Sthorpej 
4715adcb96Sthorpej #endif /* !_MACHINE_IDPROM_H */
48