···77#ifndef _SPARC_IDPROM_H88#define _SPARC_IDPROM_H991010-/* Offset into the EEPROM where the id PROM is located on the 4c */1111-#define IDPROM_OFFSET 0x7d81010+#include <linux/types.h>12111313-/* On sun4m; physical. */1414-/* MicroSPARC(-II) does not decode 31rd bit, but it works. */1515-#define IDPROM_OFFSET_M 0xfd81616-1717-struct idprom1818-{1919- unsigned char id_format; /* Format identifier (always 0x01) */2020- unsigned char id_machtype; /* Machine type */2121- unsigned char id_ethaddr[6]; /* Hardware ethernet address */2222- long id_date; /* Date of manufacture */2323- unsigned int id_sernum:24; /* Unique serial number */2424- unsigned char id_cksum; /* Checksum - xor of the data bytes */2525- unsigned char reserved[16];1212+struct idprom {1313+ u8 id_format; /* Format identifier (always 0x01) */1414+ u8 id_machtype; /* Machine type */1515+ u8 id_ethaddr[6]; /* Hardware ethernet address */1616+ s32 id_date; /* Date of manufacture */1717+ u32 id_sernum:24; /* Unique serial number */1818+ u8 id_cksum; /* Checksum - xor of the data bytes */1919+ u8 reserved[16];2620};27212822extern struct idprom *idprom;2923extern void idprom_init(void);3030-3131-#define IDPROM_SIZE (sizeof(struct idprom))32243325#endif /* !(_SPARC_IDPROM_H) */
+1-11
include/asm-sparc64/idprom.h
···991010#include <linux/types.h>11111212-/* Offset into the EEPROM where the id PROM is located on the 4c */1313-#define IDPROM_OFFSET 0x7d81414-1515-/* On sun4m; physical. */1616-/* MicroSPARC(-II) does not decode 31rd bit, but it works. */1717-#define IDPROM_OFFSET_M 0xfd81818-1919-struct idprom2020-{1212+struct idprom {2113 u8 id_format; /* Format identifier (always 0x01) */2214 u8 id_machtype; /* Machine type */2315 u8 id_ethaddr[6]; /* Hardware ethernet address */···21292230extern struct idprom *idprom;2331extern void idprom_init(void);2424-2525-#define IDPROM_SIZE (sizeof(struct idprom))26322733#endif /* !(_SPARC_IDPROM_H) */