9 #include <linux/module.h>
10 #include <linux/kernel.h>
11 #include <linux/types.h>
13 #include <linux/string.h>
15 #include <asm/oplib.h>
16 #include <asm/idprom.h>
17 #include <asm/machines.h>
22 static struct idprom idprom_buffer;
60 static void __init display_system_type(
unsigned char machtype)
71 sysname,
sizeof(sysname));
72 printk(
"TYPE: %s\n", sysname);
79 prom_printf(
"IDPROM: Bogus id_machtype value, 0x%x\n", machtype);
98 static unsigned char __init calc_idprom_cksum(
struct idprom *idprom)
100 unsigned char cksum,
i, *
ptr = (
unsigned char *)idprom;
102 for (i = cksum = 0; i <= 0x0E; i++)
113 idprom = &idprom_buffer;
120 if (idprom->
id_cksum != calc_idprom_cksum(idprom)) {
121 prom_printf(
"IDPROM: Checksum failure (nvram=%x, calc=%x)!\n",
122 idprom->
id_cksum, calc_idprom_cksum(idprom));
128 printk(
"Ethernet address: %x:%x:%x:%x:%x:%x\n",