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