cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

idprom.h (656B)


      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
     13struct 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
     23extern struct idprom *idprom;
     24void idprom_init(void);
     25
     26#endif /* !(_SPARC_IDPROM_H) */