1 /* SPDX-License-Identifier: GPL-2.0 */
3 * idprom.h: Macros and defines for idprom routines
8 #ifndef _SPARC_IDPROM_H
9 #define _SPARC_IDPROM_H
11 #include <linux/types.h>
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 */
23 extern struct idprom *idprom;
24 void idprom_init(void);
26 #endif /* !(_SPARC_IDPROM_H) */