xref: /netbsd/sys/arch/news68k/news68k/machid.h (revision bf9ec67e)
1 /*	$NetBSD: machid.h,v 1.2 2000/02/08 16:17:34 tsutsui Exp $	*/
2 /*
3  * Copyright (c) 1992, 1993
4  *	The Regents of the University of California.  All rights reserved.
5  *
6  * This code is derived from software contributed to Berkeley by
7  * Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  * 1. Redistributions of source code must retain the above copyright
13  *    notice, this list of conditions and the following disclaimer.
14  * 2. Redistributions in binary form must reproduce the above copyright
15  *    notice, this list of conditions and the following disclaimer in the
16  *    documentation and/or other materials provided with the distribution.
17  * 3. All advertising materials mentioning features or use of this software
18  *    must display the following acknowledgement:
19  *	This product includes software developed by the University of
20  *	California, Berkeley and its contributors.
21  * 4. Neither the name of the University nor the names of its contributors
22  *    may be used to endorse or promote products derived from this software
23  *    without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35  * SUCH DAMAGE.
36  *
37  * from: $Hdr: machid.h,v 4.300 91/06/09 06:35:19 root Rel41 $ SONY
38  *
39  *	@(#)machid.h	8.1 (Berkeley) 6/11/93
40  */
41 
42 #ifndef __MACHID__
43 #define __MACHID__ 1
44 
45 /*
46  * machine id number definition.
47  */
48 #define	ICK001	1
49 #define	ICK00X	2
50 #define	NWS799	3
51 #define	NWS800	4
52 #define	NWS801	5
53 #define	NWS802	6
54 #define	NWS711	7
55 #define	NWS721	8
56 #define	NWS1850	9
57 #define	NWS810	10
58 #define	NWS811	11
59 #define	NWS1830	12
60 #define	NWS1750	13
61 #define	NWS1720	14
62 #define	NWS1930	15
63 #define	NWS1960	16
64 #define	NWS712	17
65 #define	NWS1860	18
66 #define	PWS1630	19
67 #define	NWS820	20
68 #define	NWS821	21
69 #define	NWS1760	22
70 #define	NWS1710	23
71 #define	NWS830	30
72 #define	NWS831	31
73 #define	NWS841	41
74 #define	PWS1570	52
75 #define	PWS1590	54
76 #define	NWS1520	56
77 #define	PWS1550	73
78 #define	PWS1520	74
79 #define	PWS1560	75
80 #define	NWS1530	76
81 #define	NWS1580	77
82 #define	NWS1510	78
83 #define	NWS1410	81
84 #define	NWS1450	85
85 #define	NWS1460	86
86 #define	NWS891	91
87 #define	NWS911	111
88 #define	NWS921	121
89 #define	NWB235	235
90 #define	NWB235A	236
91 #define	NWXRES	255
92 
93 #if defined(news700) || defined(news800) || defined(news1700) || defined(news1800)
94 struct oidrom {
95 /*00*/	unsigned char	id_model;
96 /*01*/	unsigned char	id_serial[2];
97 /*03*/	unsigned char	id_lot;
98 /*04*/	unsigned char	id_reserved[2];
99 /*06*/	unsigned char	id_chksum0[2];
100 /*08*/	unsigned char	id_ether[6];
101 /*0e*/	unsigned char	id_chksum1[2];
102 /*10*/
103 };
104 #endif /* news700 || news800 || news1700 || news1800 */
105 
106 #if defined(news1200) || defined(news3400) || defined(news3800)
107 struct idrom {
108 /*00*/	unsigned char	id_id;          	/* always 0xff */
109 /*01*/	unsigned char	id_netid[5];    	/* network ID */
110 /*06*/	unsigned short	id_csum1;       	/* checksum 1 */
111 /*08*/	unsigned char	id_macadrs[6];  	/* MAC (ethernet) address */
112 /*0e*/	unsigned short	id_csum2;       	/* checksum 2 */
113 /*10*/	unsigned short	id_boardid;     	/* CPU board ID */
114 /*12*/	unsigned short	id_modelid;     	/* model ID */
115 /*14*/	unsigned int	id_serial;      	/* serial number */
116 /*18*/	unsigned short	id_year;
117 /*1a*/	unsigned short	id_month;
118 /*1c*/	unsigned char	id_zone[4];
119 /*20*/	char		id_board[16];
120 /*30*/	char		id_model[16];
121 /*40*/	char		id_machine[16];
122 /*50*/	char		id_cpu[16];
123 /*60*/	char		id_iop[16];
124 /*70*/	unsigned char	id_reserved[12];
125 /*7c*/	unsigned int	id_csum3;
126 /*80*/
127 };
128 #endif /* news1200 || news3400 || news3800 */
129 
130 #endif /* __MACHID__ */
131