Home | History | Annotate | Line # | Download | only in include
idprom.h revision 1.11
      1  1.11    jtc /*	$NetBSD: idprom.h,v 1.11 1995/05/11 16:53:11 jtc Exp $	*/
      2   1.8    cgd 
      3   1.1  glass /*
      4   1.6  glass  * Copyright (c) 1993 Adam Glass
      5   1.6  glass  * All rights reserved.
      6   1.6  glass  *
      7   1.6  glass  * Redistribution and use in source and binary forms, with or without
      8   1.6  glass  * modification, are permitted provided that the following conditions
      9   1.6  glass  * are met:
     10   1.6  glass  * 1. Redistributions of source code must retain the above copyright
     11   1.6  glass  *    notice, this list of conditions and the following disclaimer.
     12   1.6  glass  * 2. Redistributions in binary form must reproduce the above copyright
     13   1.6  glass  *    notice, this list of conditions and the following disclaimer in the
     14   1.6  glass  *    documentation and/or other materials provided with the distribution.
     15   1.6  glass  * 3. All advertising materials mentioning features or use of this software
     16   1.6  glass  *    must display the following acknowledgement:
     17   1.6  glass  *	This product includes software developed by Adam Glass.
     18   1.6  glass  * 4. The name of the Author may not be used to endorse or promote products
     19   1.6  glass  *    derived from this software without specific prior written permission.
     20   1.6  glass  *
     21   1.6  glass  * THIS SOFTWARE IS PROVIDED BY Adam Glass ``AS IS'' AND
     22   1.6  glass  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     23   1.6  glass  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     24   1.6  glass  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     25   1.6  glass  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     26   1.6  glass  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     27   1.6  glass  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     28   1.6  glass  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     29   1.6  glass  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     30   1.6  glass  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     31   1.6  glass  * SUCH DAMAGE.
     32   1.6  glass  */
     33   1.6  glass 
     34   1.6  glass /*
     35   1.1  glass  * structure/definitions for the 32 byte id prom found in sun3s
     36   1.1  glass  */
     37   1.1  glass 
     38   1.1  glass struct idprom {
     39   1.1  glass     unsigned char idp_format;
     40   1.1  glass     unsigned char idp_machtype;
     41   1.5  glass     unsigned char idp_etheraddr[6];
     42   1.1  glass     long          idp_date;
     43   1.1  glass     unsigned char idp_serialnum[3];
     44   1.1  glass     unsigned char idp_checksum;
     45   1.5  glass     unsigned char idp_reserved[16];
     46   1.1  glass };
     47   1.1  glass 
     48   1.1  glass #define IDPROM_VERSION 1
     49   1.1  glass #define IDPROM_SIZE (sizeof(struct idprom))
     50   1.1  glass 
     51  1.11    jtc #ifdef	_KERNEL
     52  1.10    gwr extern struct idprom identity_prom;
     53  1.10    gwr int idprom_init();
     54   1.5  glass void idprom_etheraddr __P((u_char *));
     55  1.10    gwr #endif
     56