Subject: port-amiga/1163: updated ethernet drivers for the amiga port
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 06/27/1995 15:35:04
>Number:         1163
>Category:       port-amiga
>Synopsis:       updated ethernet drivers for the amiga port
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 27 15:35:03 1995
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current 26-Jun-95
>Environment:
	
System: NetBSD arresum 1.0A NetBSD 1.0A (VEEGO) #143: Sun Jun 18 16:54:50 MET DST 1995 root@arresum:/src/sys/arch/amiga/compile/VEEGO amiga


>Description:
	the amiga ethernet drivers needs an update after the recent sys/net
	changes
>How-To-Repeat:
	make an amiga kernel
>Fix:

Apply this patch:

*** sys/arch/amiga/dev/if_bah.c-orig	Thu Jun  8 12:01:04 1995
--- sys/arch/amiga/dev/if_bah.c	Mon Jun 26 18:53:49 1995
***************
*** 302,311 ****
  
  	ifp = &sc->sc_arccom.ac_if;
  
- 	/* Address not known. */
- 	if (ifp->if_addrlist == 0)
- 		return;
- 
  	if ((ifp->if_flags & IFF_RUNNING) == 0) {
  		s = splimp();
  		ifp->if_flags |= IFF_RUNNING;
--- 302,307 ----
*** sys/arch/amiga/dev/if_ed.c-orig	Fri May 12 13:03:14 1995
--- sys/arch/amiga/dev/if_ed.c	Mon Jun 26 18:52:50 1995
***************
*** 321,330 ****
  	u_char command;
  	u_long mcaf[2];
  
- 	/* Address not known. */
- 	if (ifp->if_addrlist == 0)
- 		return;
- 
  	/*
  	 * Initialize the NIC in the exact order outlined in the NS manual.
  	 * This init procedure is "mandatory"...don't change what or when
--- 321,326 ----
*** sys/arch/amiga/dev/if_es.c-orig	Sat Apr 15 12:07:14 1995
--- sys/arch/amiga/dev/if_es.c	Mon Jun 26 18:53:15 1995
***************
*** 207,215 ****
  	union smcregs *smc = sc->sc_base;
  	int s;
  
- 	if (ifp->if_addrlist == 0)
- 		return;
- 
  	s = splimp();
  
  	smc->b0.bsr = BSR_BANK0;	/* Select bank 0 */
--- 207,212 ----
*** sys/arch/amiga/dev/if_le.c-orig	Fri Apr 14 12:50:28 1995
--- sys/arch/amiga/dev/if_le.c	Mon Jun 26 18:51:35 1995
***************
*** 363,372 ****
  	register struct ifnet *ifp = &le->sc_if;
  	int s;
  
- 	/* not yet, if address still unknown */
- 	if (ifp->if_addrlist == (struct ifaddr *)0)
- 		return;
- 
  	if ((ifp->if_flags & IFF_RUNNING) == 0) {
  		s = splimp();
  		ifp->if_flags |= IFF_RUNNING;
--- 363,368 ----

>Audit-Trail:
>Unformatted: