1 /* $NetBSD: config.h,v 1.2 2001/06/10 14:12:49 scw Exp $ */ 2 3 /* 4 * Copyright (c) 1995 Theo de Raadt 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 3. All advertising materials mentioning features or use of this software 16 * must display the following acknowledgement: 17 * This product includes software developed by Theo de Raadt 18 * 4. The name of the Author may not be used to endorse or promote products 19 * derived from this software without specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 22 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 25 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34 /* configuration information for base-line code */ 35 36 #define ETHER_ADDR_147 (0xfffe0778) 37 #define ETHER_ADDR_16X (0xfffc0000+7980) 38 #define ERAM_ADDR (0xfffe0774) 39 #define LANCE_REG_ADDR (0xfffe1800) 40 #define INTEL_REG_ADDR (0xfff46000) 41 42 #define CPU_147 0x147 43 #define CPU_162 0x162 44 #define CPU_167 0x167 45 #define CPU_172 0x172 46 #define CPU_177 0x177 47 48 struct brdid { 49 u_long eye_catcher; 50 u_char rev; 51 u_char month; 52 u_char day; 53 u_char year; 54 u_short size; 55 u_short rsv1; 56 u_short model; 57 u_short suffix; 58 u_short options; 59 u_char family; 60 u_char cpu; 61 u_short ctrlun; 62 u_short devlun; 63 u_short devtype; 64 u_short devnum; 65 u_long bug; 66 }; 67 68 void machdep_common_ether __P((u_char *)); 69