2006-03-04 06:39:02 +03:00
|
|
|
/* $NetBSD: eeprom.h,v 1.8 2006/03/04 03:39:02 uwe Exp $ */
|
1995-05-30 03:56:27 +04:00
|
|
|
|
2005-06-20 00:23:48 +04:00
|
|
|
/*-
|
|
|
|
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
1995-05-30 03:56:27 +04:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
2005-06-20 00:23:48 +04:00
|
|
|
* This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
* by Gordon W. Ross.
|
|
|
|
*
|
1995-05-30 03:56:27 +04:00
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
2005-06-20 00:23:48 +04:00
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by the NetBSD
|
|
|
|
* Foundation, Inc. and its contributors.
|
|
|
|
* 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
* contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
1995-05-30 03:56:27 +04:00
|
|
|
*
|
2005-06-20 00:23:48 +04:00
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
1995-05-30 03:56:27 +04:00
|
|
|
*/
|
|
|
|
|
2005-06-20 00:23:48 +04:00
|
|
|
#ifndef _MACHINE_EEPROM_H_
|
|
|
|
#define _MACHINE_EEPROM_H_
|
1995-05-30 03:56:27 +04:00
|
|
|
|
2005-06-20 00:23:48 +04:00
|
|
|
#include <dev/sun/eeprom.h>
|
1995-05-30 03:56:27 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The size of the eeprom on machines with the old clock is 2k. However,
|
|
|
|
* on machines with the new clock (and the `eeprom' in the nvram area)
|
|
|
|
* there are only 2040 bytes available. (???). Since we really only
|
|
|
|
* care about the `diagnostic' area, we'll use it's size when dealing
|
|
|
|
* with the eeprom in general.
|
|
|
|
*/
|
|
|
|
#define EEPROM_SIZE 0x500
|
|
|
|
|
|
|
|
#ifdef _KERNEL
|
1995-08-30 02:11:58 +04:00
|
|
|
extern char *eeprom_va;
|
2006-03-04 06:39:02 +03:00
|
|
|
int eeprom_uio(struct uio *);
|
2002-03-03 06:11:06 +03:00
|
|
|
#define DEV_EEPROM 11 /* minor device 11 is eeprom */
|
1995-05-30 03:56:27 +04:00
|
|
|
#endif /* _KERNEL */
|
|
|
|
|
2005-06-20 00:23:48 +04:00
|
|
|
#endif /* _MACHINE_EEPROM_H_ */
|