^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _M68K_IDPROM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _M68K_IDPROM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * idprom.h: Macros and defines for idprom routines
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Copyright (C) 1995,1996 David S. Miller (davem@caip.rutgers.edu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) struct idprom {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) u8 id_format; /* Format identifier (always 0x01) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) u8 id_machtype; /* Machine type */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) u8 id_ethaddr[6]; /* Hardware ethernet address */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) s32 id_date; /* Date of manufacture */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) u32 id_sernum:24; /* Unique serial number */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) u8 id_cksum; /* Checksum - xor of the data bytes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) u8 reserved[16];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) extern struct idprom *idprom;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) extern void idprom_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) /* Sun3: in control space */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define SUN3_IDPROM_BASE 0x00000000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #endif /* !(_M68K_IDPROM_H) */