1139825Simp/*- 286558Stmm * Copyright (c) 1993 Adam Glass 386558Stmm * All rights reserved. 486558Stmm * 586558Stmm * Redistribution and use in source and binary forms, with or without 686558Stmm * modification, are permitted provided that the following conditions 786558Stmm * are met: 886558Stmm * 1. Redistributions of source code must retain the above copyright 986558Stmm * notice, this list of conditions and the following disclaimer. 1086558Stmm * 2. Redistributions in binary form must reproduce the above copyright 1186558Stmm * notice, this list of conditions and the following disclaimer in the 1286558Stmm * documentation and/or other materials provided with the distribution. 1386558Stmm * 3. All advertising materials mentioning features or use of this software 1486558Stmm * must display the following acknowledgement: 1586558Stmm * This product includes software developed by Adam Glass. 1686558Stmm * 4. The name of the Author may not be used to endorse or promote products 1786558Stmm * derived from this software without specific prior written permission. 1886558Stmm * 1986558Stmm * THIS SOFTWARE IS PROVIDED BY Adam Glass ``AS IS'' AND 2086558Stmm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2186558Stmm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2286558Stmm * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2386558Stmm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2486558Stmm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2586558Stmm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2686558Stmm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2786558Stmm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2886558Stmm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2986558Stmm * SUCH DAMAGE. 3086558Stmm * 3186558Stmm * from: NetBSD: idprom.h,v 1.2 1998/09/05 23:57:26 eeh Exp 3286558Stmm * 3386558Stmm * $FreeBSD$ 3486558Stmm */ 3586558Stmm 3686558Stmm#ifndef _MACHINE_IDPROM_H_ 3786558Stmm#define _MACHINE_IDPROM_H_ 3886558Stmm 3986558Stmm/* 4086558Stmm * ID prom format. The ``host id'' is set up by taking the machine 4186558Stmm * ID as the top byte and the hostid field as the remaining three. 4286558Stmm * The id_xxx0 field appears to contain some other number. The id_xxx1 4386558Stmm * contains a bunch of 00's and a5's on my machines, suggesting it is 4486558Stmm * not actually used. The checksum seems to include them, however. 4586558Stmm */ 4686558Stmmstruct idprom { 4786558Stmm u_char id_format; /* format identifier (= 1) */ 4886558Stmm u_char id_machine; /* machine type (see param.h) */ 4986558Stmm u_char id_ether[6]; /* ethernet address */ 5086558Stmm int id_date; /* date of manufacture */ 5186558Stmm u_char id_hostid[3]; /* ``host id'' bytes */ 5286558Stmm u_char id_checksum; /* xor of everything else */ 5386558Stmm char id_undef[16]; /* undefined */ 5486558Stmm}; 5586558Stmm 5686558Stmm#define ID_SUN4_100 0x22 5786558Stmm#define ID_SUN4_200 0x21 5886558Stmm#define ID_SUN4_300 0x23 5986558Stmm#define ID_SUN4_400 0x24 6086558Stmm 6186558Stmm#define IDPROM_VERSION 1 6286558Stmm 6386558Stmm#endif /* !_MACHINE_IDPROM_H_ */ 64