Subject: Re: Nubus card debugging
To: Allen Briggs <briggs@wasabisystems.com>
From: David A. Gatwood <dgatwood@gatwood.net>
List: port-mac68k
Date: 08/05/2002 10:57:54
On Mon, 5 Aug 2002, Allen Briggs wrote:

> On Sat, Aug 03, 2002 at 08:51:30PM -0700, David A. Gatwood wrote:
> > I'm working on a port of NeBSD-mac68k's nubus slot support to MkLinux. 
> > It's working fine up until it actually sees a card, then it wedges in the
> > call to inb (the Mach equivalent of bus_space_read_1) right after a
> > successful mac68k_bus_space_probe at the same address.  Has anyone ever
> > seen any behavior similar to that with a nubus card?
> 
> Not with a nubus card, but I have seen weird behavior if the hardware
> doesn't want to do byte addressing and you're forcing it to.  I doubt
> that's the case here, though.
> 
> > And why does this code appear to read from the same hardware address
> > several times in a row?  Is that by design, or did I break something while
> > porting it?  (or both... :-)
> 
> Are you talking about the code in nubus_probe_slot() around line 360
> of mac68k/nubus/nubus.c ?

That's the one, yeah.


David

---------------------------------------------------------------------
David A. Gatwood                                dgatwood@gatwood.net
Developer Docs Writer                             dgatwood@apple.com
Apple Computer                                  dgatwood@mklinux.org

                    Check out my weekly web comic:
                     http://www.techmagazine.org