summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/netboot/dev_net.c
diff options
context:
space:
mode:
authorSteve Murphree <smurph@cvs.openbsd.org>1998-08-22 08:38:06 +0000
committerSteve Murphree <smurph@cvs.openbsd.org>1998-08-22 08:38:06 +0000
commit8bc5e837f9f723112bee6c855bf1d2f46b8cf0de (patch)
tree05d0bd6b7ef89545f4fda128a7842caf68d705d1 /sys/arch/mvme88k/stand/netboot/dev_net.c
parent40e92a9b193ae6946e51d01ebccc6d71a84c80e0 (diff)
working netboot.
Diffstat (limited to 'sys/arch/mvme88k/stand/netboot/dev_net.c')
-rw-r--r--sys/arch/mvme88k/stand/netboot/dev_net.c41
1 files changed, 15 insertions, 26 deletions
diff --git a/sys/arch/mvme88k/stand/netboot/dev_net.c b/sys/arch/mvme88k/stand/netboot/dev_net.c
index ffba93b71aa..16a494e7692 100644
--- a/sys/arch/mvme88k/stand/netboot/dev_net.c
+++ b/sys/arch/mvme88k/stand/netboot/dev_net.c
@@ -1,4 +1,4 @@
-/* $Id: dev_net.c,v 1.1 1997/03/03 19:30:38 rahnds Exp $ */
+/* $OpenBSD: dev_net.c,v 1.2 1998/08/22 08:37:56 smurph Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross
@@ -55,7 +55,10 @@
#include <netinet/if_ether.h>
#include <netinet/in_systm.h>
+#include <machine/prom.h>
+
#include "stand.h"
+#include "libsa.h"
#include "net.h"
#include "netif.h"
#include "config.h"
@@ -183,29 +186,15 @@ machdep_common_ether(ether)
u_char *ether;
{
u_char *ea;
- extern int cputyp;
-
- if (cputyp == CPU_147) {
- ea = (u_char *) ETHER_ADDR_147;
-
- if ((*(int *) ea & 0x2fffff00) == 0x2fffff00)
- panic("ERROR: ethernet address not set!\r\n");
- ether[0] = 0x08;
- ether[1] = 0x00;
- ether[2] = 0x3e;
- ether[3] = ea[0];
- ether[4] = ea[1];
- ether[5] = ea[2];
- } else {
- ea = (u_char *) ETHER_ADDR_16X;
-
- if (ea[0] + ea[1] + ea[2] + ea[3] + ea[4] + ea[5] == 0)
- panic("ERROR: ethernet address not set!\r\n");
- ether[0] = ea[0];
- ether[1] = ea[1];
- ether[2] = ea[2];
- ether[3] = ea[3];
- ether[4] = ea[4];
- ether[5] = ea[5];
- }
+
+ ea = (u_char *) ETHER_ADDR_16X;
+
+ if (ea[0] + ea[1] + ea[2] + ea[3] + ea[4] + ea[5] == 0)
+ panic("ERROR: ethernet address not set!\r\n");
+ ether[0] = ea[0];
+ ether[1] = ea[1];
+ ether[2] = ea[2];
+ ether[3] = ea[3];
+ ether[4] = ea[4];
+ ether[5] = ea[5];
}