From 8bc5e837f9f723112bee6c855bf1d2f46b8cf0de Mon Sep 17 00:00:00 2001 From: Steve Murphree Date: Sat, 22 Aug 1998 08:38:06 +0000 Subject: working netboot. --- sys/arch/mvme88k/stand/netboot/dev_net.c | 41 ++++++++++++-------------------- 1 file changed, 15 insertions(+), 26 deletions(-) (limited to 'sys/arch/mvme88k/stand/netboot/dev_net.c') 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 #include +#include + #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]; } -- cgit v1.2.3