Home | History | Annotate | Line # | Download | only in news68k
      1 /*	$NetBSD: machid.h,v 1.5 2024/01/18 04:07:38 thorpej 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. Neither the name of the University nor the names of its contributors
     18  *    may be used to endorse or promote products derived from this software
     19  *    without specific prior written permission.
     20  *
     21  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     22  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     24  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     25  * FOR ANY 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  * from: $Hdr: machid.h,v 4.300 91/06/09 06:35:19 root Rel41 $ SONY
     34  *
     35  *	@(#)machid.h	8.1 (Berkeley) 6/11/93
     36  */
     37 
     38 #ifndef __MACHID__
     39 #define __MACHID__ 1
     40 
     41 /*
     42  * machine id number definition.
     43  */
     44 #define	ICK001	1
     45 #define	ICK00X	2
     46 #define	NWS799	3
     47 #define	NWS800	4
     48 #define	NWS801	5
     49 #define	NWS802	6
     50 #define	NWS711	7
     51 #define	NWS721	8
     52 #define	NWS1850	9
     53 #define	NWS810	10
     54 #define	NWS811	11
     55 #define	NWS1830	12
     56 #define	NWS1750	13
     57 #define	NWS1720	14
     58 #define	NWS1930	15
     59 #define	NWS1960	16
     60 #define	NWS712	17
     61 #define	NWS1860	18
     62 #define	PWS1630	19
     63 #define	NWS820	20
     64 #define	NWS821	21
     65 #define	NWS1760	22
     66 #define	NWS1710	23
     67 #define	NWS830	30
     68 #define	NWS831	31
     69 #define	NWS841	41
     70 #define	PWS1570	52
     71 #define	PWS1590	54
     72 #define	NWS1520	56
     73 #define	PWS1550	73
     74 #define	PWS1520	74
     75 #define	PWS1560	75
     76 #define	NWS1530	76
     77 #define	NWS1580	77
     78 #define	NWS1510	78
     79 #define	NWS1410	81
     80 #define	NWS1450	85
     81 #define	NWS1460	86
     82 #define	NWS891	91
     83 #define	NWS911	111
     84 #define	NWS921	121
     85 #define	NWB235	235
     86 #define	NWB235A	236
     87 #define	NWXRES	255
     88 
     89 #include "opt_newsconf.h"
     90 
     91 #if defined(news700) || defined(news800) || defined(news1700) || defined(news1800)
     92 struct oidrom {
     93 /*00*/	unsigned char	id_model;
     94 /*01*/	unsigned char	id_serial[2];
     95 /*03*/	unsigned char	id_lot;
     96 /*04*/	unsigned char	id_reserved[2];
     97 /*06*/	unsigned char	id_chksum0[2];
     98 /*08*/	unsigned char	id_ether[6];
     99 /*0e*/	unsigned char	id_chksum1[2];
    100 /*10*/
    101 };
    102 #endif /* news700 || news800 || news1700 || news1800 */
    103 
    104 #if defined(news1200) || defined(news3400) || defined(news3800)
    105 struct idrom {
    106 /*00*/	unsigned char	id_id;          	/* always 0xff */
    107 /*01*/	unsigned char	id_netid[5];    	/* network ID */
    108 /*06*/	unsigned short	id_csum1;       	/* checksum 1 */
    109 /*08*/	unsigned char	id_macadrs[6];  	/* MAC (ethernet) address */
    110 /*0e*/	unsigned short	id_csum2;       	/* checksum 2 */
    111 /*10*/	unsigned short	id_boardid;     	/* CPU board ID */
    112 /*12*/	unsigned short	id_modelid;     	/* model ID */
    113 /*14*/	unsigned int	id_serial;      	/* serial number */
    114 /*18*/	unsigned short	id_year;
    115 /*1a*/	unsigned short	id_month;
    116 /*1c*/	unsigned char	id_zone[4];
    117 /*20*/	char		id_board[16];
    118 /*30*/	char		id_model[16];
    119 /*40*/	char		id_machine[16];
    120 /*50*/	char		id_cpu[16];
    121 /*60*/	char		id_iop[16];
    122 /*70*/	unsigned char	id_reserved[12];
    123 /*7c*/	unsigned int	id_csum3;
    124 /*80*/
    125 };
    126 #endif /* news1200 || news3400 || news3800 */
    127 
    128 #endif /* __MACHID__ */
    129