From 7a6b533ba63e0f3943fc7dd4f34bbd0c2c073301 Mon Sep 17 00:00:00 2001 From: yamt Date: Sat, 3 Nov 2001 12:02:28 +0000 Subject: [PATCH] add btinfo stuff. --- sys/arch/i386/stand/lib/netif/ne.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sys/arch/i386/stand/lib/netif/ne.c b/sys/arch/i386/stand/lib/netif/ne.c index ba6e89e0ea25..ed956739c8ee 100644 --- a/sys/arch/i386/stand/lib/netif/ne.c +++ b/sys/arch/i386/stand/lib/netif/ne.c @@ -1,4 +1,4 @@ -/* $NetBSD: ne.c,v 1.2 2001/11/03 09:36:47 yamt Exp $ */ +/* $NetBSD: ne.c,v 1.3 2001/11/03 12:02:28 yamt Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -99,6 +99,10 @@ void DELAY(x) u_char eth_myaddr[6]; +#ifdef _STANDALONE +static struct btinfo_netif bi_netif; +#endif + int EtherInit(unsigned char *myadr) { @@ -178,6 +182,13 @@ EtherInit(unsigned char *myadr) if (dp8390_config()) goto out; +#ifdef _STANDALONE + strncpy(bi_netif.ifname, "ne", sizeof(bi_netif.ifname)); + bi_netif.bus = BI_BUS_ISA; + bi_netif.addr.iobase = NE_BASEREG; + + BI_ADD(&bi_netif, BTINFO_NETIF, sizeof(bi_netif)); +#endif return 1; out: return 0;