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