root/include/asm-sparc/idprom.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /* idprom.h: Macros and defines for idprom routines
   2  *
   3  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
   4  */
   5 
   6 #ifndef _SPARC_IDPROM_H
   7 #define _SPARC_IDPROM_H
   8 
   9 extern struct linux_romvec *romvec;
  10 
  11 /* Offset into the EEPROM where the id PROM is located on the 4c */
  12 #define IDPROM_OFFSET  0x7d8
  13 
  14 /* On sun4m; physical. */
  15 /* MicroSPARC(-II) does not decode 31rd bit, but it works. */
  16 #define IDPROM_OFFSET_M  0xfd8
  17 
  18 struct idp_struct
  19 {
  20   unsigned char id_f_id;      /* format identifier */
  21   unsigned char id_machtype;  /* Machine type */
  22   unsigned char id_eaddr[6];  /* hardware ethernet address */
  23   long id_domf;               /* Date when this machine was manufactured */
  24   unsigned int id_sernum:24;  /* Unique serial number */
  25   unsigned char id_cksum;     /* XXX */
  26   unsigned char dummy[16];    /* XXX */
  27 };
  28 
  29 extern struct idp_struct *idprom;
  30 
  31 #define IDPROM_SIZE  (sizeof(struct idp_struct))
  32 
  33 #endif /* !(_SPARC_IDPROM_H) */

/* [previous][next][first][last][top][bottom][index][help] */