xref: /netbsd-src/sys/arch/sun2/include/eeprom.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: eeprom.h,v 1.4 2008/04/28 20:23:37 martin Exp $	*/
220293ce8Sfredette 
320293ce8Sfredette /*-
420293ce8Sfredette  * Copyright (c) 2001 The NetBSD Foundation, Inc.
520293ce8Sfredette  * All rights reserved.
620293ce8Sfredette  *
720293ce8Sfredette  * This code is derived from software contributed to The NetBSD Foundation
820293ce8Sfredette  * by Matthew Fredette.
920293ce8Sfredette  *
1020293ce8Sfredette  * Redistribution and use in source and binary forms, with or without
1120293ce8Sfredette  * modification, are permitted provided that the following conditions
1220293ce8Sfredette  * are met:
1320293ce8Sfredette  * 1. Redistributions of source code must retain the above copyright
1420293ce8Sfredette  *    notice, this list of conditions and the following disclaimer.
1520293ce8Sfredette  * 2. Redistributions in binary form must reproduce the above copyright
1620293ce8Sfredette  *    notice, this list of conditions and the following disclaimer in the
1720293ce8Sfredette  *    documentation and/or other materials provided with the distribution.
1820293ce8Sfredette  *
1920293ce8Sfredette  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2020293ce8Sfredette  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2120293ce8Sfredette  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2220293ce8Sfredette  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2320293ce8Sfredette  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2420293ce8Sfredette  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2520293ce8Sfredette  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2620293ce8Sfredette  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2720293ce8Sfredette  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2820293ce8Sfredette  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2920293ce8Sfredette  * POSSIBILITY OF SUCH DAMAGE.
3020293ce8Sfredette  */
3120293ce8Sfredette 
3220293ce8Sfredette #ifndef	_MACHINE_EEPROM_H
3320293ce8Sfredette #define	_MACHINE_EEPROM_H
3420293ce8Sfredette 
3520293ce8Sfredette /*
3620293ce8Sfredette  * The Sun2 doesn't have an EEPROM, but some common Sun code still
3720293ce8Sfredette  * wants to use this header file.  To keep that code clean, we fake as
3820293ce8Sfredette  * much as we need to, but always say that we couldn't map the EEPROM.
3920293ce8Sfredette  */
407adddd1bSthorpej 
417adddd1bSthorpej #include <dev/sun/eeprom.h>
4220293ce8Sfredette 
4320293ce8Sfredette #ifdef	_KERNEL
4420293ce8Sfredette #define eeprom_va NULL
4520293ce8Sfredette #endif
4620293ce8Sfredette 
4720293ce8Sfredette #endif /* _MACHINE_EEPROM_H */
4820293ce8Sfredette 
49