idprom.h 686 B

12345678910111213141516171819202122232425262728
  1. #ifndef _M68K_IDPROM_H
  2. #define _M68K_IDPROM_H
  3. /*
  4. * idprom.h: Macros and defines for idprom routines
  5. *
  6. * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
  7. */
  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. extern void idprom_init(void);
  20. /* Sun3: in control space */
  21. #define SUN3_IDPROM_BASE 0x00000000
  22. #endif /* !(_M68K_IDPROM_H) */