1*ce099b40Smartin /* $NetBSD: idprom.h,v 1.5 2008/04/28 20:23:38 martin Exp $ */ 2c1c742b4Sfredette 3c1c742b4Sfredette /*- 4c1c742b4Sfredette * Copyright (c) 1996 The NetBSD Foundation, Inc. 5c1c742b4Sfredette * All rights reserved. 6c1c742b4Sfredette * 7c1c742b4Sfredette * This code is derived from software contributed to The NetBSD Foundation 8c1c742b4Sfredette * by Adam Glass. 9c1c742b4Sfredette * 10c1c742b4Sfredette * Redistribution and use in source and binary forms, with or without 11c1c742b4Sfredette * modification, are permitted provided that the following conditions 12c1c742b4Sfredette * are met: 13c1c742b4Sfredette * 1. Redistributions of source code must retain the above copyright 14c1c742b4Sfredette * notice, this list of conditions and the following disclaimer. 15c1c742b4Sfredette * 2. Redistributions in binary form must reproduce the above copyright 16c1c742b4Sfredette * notice, this list of conditions and the following disclaimer in the 17c1c742b4Sfredette * documentation and/or other materials provided with the distribution. 18c1c742b4Sfredette * 19c1c742b4Sfredette * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20c1c742b4Sfredette * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21c1c742b4Sfredette * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22c1c742b4Sfredette * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23c1c742b4Sfredette * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24c1c742b4Sfredette * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25c1c742b4Sfredette * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26c1c742b4Sfredette * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27c1c742b4Sfredette * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28c1c742b4Sfredette * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29c1c742b4Sfredette * POSSIBILITY OF SUCH DAMAGE. 30c1c742b4Sfredette */ 31c1c742b4Sfredette 32c1c742b4Sfredette #ifndef _MACHINE_IDPROM_H 33c1c742b4Sfredette #define _MACHINE_IDPROM_H 34c1c742b4Sfredette 3515adcb96Sthorpej #include <dev/sun/idprom.h> 36c1c742b4Sfredette 37c1c742b4Sfredette #if defined(_KERNEL) || defined(_STANDALONE) 38c1c742b4Sfredette 39c1c742b4Sfredette extern struct idprom identity_prom; 40c1c742b4Sfredette extern u_char cpu_machine_id; 41c1c742b4Sfredette 4210b1a7beSchs void idprom_etheraddr(u_char *); 4310b1a7beSchs void idprom_init(void); 44c1c742b4Sfredette 45c1c742b4Sfredette #endif /* _KERNEL || _STANDALONE */ 46c1c742b4Sfredette 47c1c742b4Sfredette #endif /* !_MACHINE_IDPROM_H */ 48