Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * idprom.h: Macros and defines for idprom routines
0004  *
0005  * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
0006  */
0007 
0008 #ifndef _SPARC_IDPROM_H
0009 #define _SPARC_IDPROM_H
0010 
0011 #include <linux/types.h>
0012 
0013 struct idprom {
0014     u8      id_format;  /* Format identifier (always 0x01) */
0015     u8      id_machtype;    /* Machine type */
0016     u8      id_ethaddr[6];  /* Hardware ethernet address */
0017     s32     id_date;    /* Date of manufacture */
0018     u32     id_sernum:24;   /* Unique serial number */
0019     u8      id_cksum;   /* Checksum - xor of the data bytes */
0020     u8      reserved[16];
0021 };
0022 
0023 extern struct idprom *idprom;
0024 void idprom_init(void);
0025 
0026 #endif /* !(_SPARC_IDPROM_H) */