xref: /openbmc/linux/arch/sparc/include/asm/idprom.h (revision f16fe2d3)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * idprom.h: Macros and defines for idprom routines
4  *
5  * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
6  */
7 
8 #ifndef _SPARC_IDPROM_H
9 #define _SPARC_IDPROM_H
10 
11 #include <linux/types.h>
12 
13 struct idprom {
14 	u8		id_format;	/* Format identifier (always 0x01) */
15 	u8		id_machtype;	/* Machine type */
16 	u8		id_ethaddr[6];	/* Hardware ethernet address */
17 	s32		id_date;	/* Date of manufacture */
18 	u32		id_sernum:24;	/* Unique serial number */
19 	u8		id_cksum;	/* Checksum - xor of the data bytes */
20 	u8		reserved[16];
21 };
22 
23 extern struct idprom *idprom;
24 void idprom_init(void);
25 
26 #endif /* !(_SPARC_IDPROM_H) */
27