idprom.h 617 B

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