Subject: Re: Nubus card debugging
To: David A. Gatwood <dgatwood@gatwood.net>
From: Allen Briggs <briggs@wasabisystems.com>
List: port-mac68k
Date: 08/05/2002 10:00:14
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 ?
-allen
--
Allen Briggs briggs@wasabisystems.com
http://www.wasabisystems.com/ Quality NetBSD CDs, Sales, Support, Service
NetBSD development for Alpha, ARM, M68K, MIPS, PowerPC, SuperH, XScale, etc...