Subject: Changes to obio_probe_byte
To: None <glass@sun-lamp.cs.berkeley.edu>
From: Gordon W. Ross <gwr@jericho.mc.com>
List: port-sun3
Date: 03/14/1994 12:35:39
I thought I would add a stub for obio_probe_byte so we don't have to
change so many places when we get a real one.  I use it in zs.c too.

*** arch/sun3/dev/obio.c.orig	Tue Mar  1 06:21:45 1994
--- arch/sun3/dev/obio.c	Wed Mar  2 00:29:48 1994
***************
*** 29,34 ****
--- 29,35 ----
   * SUCH DAMAGE.
   *
   * $Header: /b/source/CVS/src/sys/arch/sun3/dev/obio.c,v 1.6 1994/03/01 08:07:15 glass Exp $
+  * Added stub for obio_probe_byte() -gwr
   */
  #include <sys/systm.h>
  #include <sys/device.h>
***************
*** 153,155 ****
--- 154,163 ----
      return (caddr_t) va;
  }
  
+ int
+ obio_probe_byte(oba)
+ 	caddr_t oba;	/* OBIO address to probe */
+ {
+ 	/* XXX - Not yet... */
+ 	return 0;
+ }

*** arch/sun3/dev/if_le_subr.c.orig	Wed Feb 23 06:03:01 1994
--- arch/sun3/dev/if_le_subr.c	Mon Mar 14 01:46:45 1994
***************
*** 29,34 ****
--- 29,35 ----
   * SUCH DAMAGE.
   *
   * $Header: /b/source/CVS/src/sys/arch/sun3/dev/if_le_subr.c,v 1.3 1994/02/23 08:28:42 glass Exp $
+  * gwr: uncomment obio_probe_byte
   */
  
  #include <sys/param.h>
***************
*** 111,115 ****
      struct obio_cf_loc *obio_loc = (struct obio_cf_loc *) CFDATA_LOC(cf);
  
      le_addr = OBIO_DEFAULT_PARAM(caddr_t, obio_loc->obio_addr, OBIO_AMD_ETHER);
!     return /* !obio_probe_byte(le_addr)*/ 1;
  }
--- 112,116 ----
      struct obio_cf_loc *obio_loc = (struct obio_cf_loc *) CFDATA_LOC(cf);
  
      le_addr = OBIO_DEFAULT_PARAM(caddr_t, obio_loc->obio_addr, OBIO_AMD_ETHER);
!     return !obio_probe_byte(le_addr);
  }

------------------------------------------------------------------------------