xref: /kernel/linux/linux-5.10/arch/sparc/include/asm/idprom.h (revision 8c2ecf20)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/sparc/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * idprom.h: Macros and defines for idprom routines
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef _SPARC_IDPROM_H
98c2ecf20Sopenharmony_ci#define _SPARC_IDPROM_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <linux/types.h>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_cistruct idprom {
148c2ecf20Sopenharmony_ci	u8		id_format;	/* Format identifier (always 0x01) */
158c2ecf20Sopenharmony_ci	u8		id_machtype;	/* Machine type */
168c2ecf20Sopenharmony_ci	u8		id_ethaddr[6];	/* Hardware ethernet address */
178c2ecf20Sopenharmony_ci	s32		id_date;	/* Date of manufacture */
188c2ecf20Sopenharmony_ci	u32		id_sernum:24;	/* Unique serial number */
198c2ecf20Sopenharmony_ci	u8		id_cksum;	/* Checksum - xor of the data bytes */
208c2ecf20Sopenharmony_ci	u8		reserved[16];
218c2ecf20Sopenharmony_ci};
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciextern struct idprom *idprom;
248c2ecf20Sopenharmony_civoid idprom_init(void);
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#endif /* !(_SPARC_IDPROM_H) */
27

Indexes created Thu Nov 07 10:32:03 CST 2024