Subject: Re: puc based 16550 on macppc?
To: Michael Lorenz <macallan@netbsd.org>
From: Joachim Thiemann <joachim.thiemann@gmail.com>
List: port-macppc
Date: 04/18/2007 10:05:18
On 18/04/07, Michael Lorenz <macallan@netbsd.org> wrote:
> Hmm, so OF did try to set up something. The reg property looks weird
> though.

> Looks like I'll need to look at the puc code - I have no idea what this
> code does ;)
> One final thing to test though - could you please build a kernel
> without the puc driver and check if the card's config space looks any
> different?

Sure:
dmesg:
Lava Semiconductor Manufacturing product 0x0200 (serial
communications, interface 0x03) at pci1 dev 2 function 0 not
configured

ofctl -l:
ff87ab28: /pci@80000000/pci-bridge@d/pci1407,200@2

vendor-id               00001407 ........ ........ ........   ....
device-id               00000200 ........ ........ ........   ....
revision-id             00000000 ........ ........ ........   ....
class-code              00070003 ........ ........ ........   ....
interrupts              00000001 ........ ........ ........   ....
min-grant               00000000 ........ ........ ........   ....
max-latency             00000000 ........ ........ ........   ....
subsystem-vendor-id     00001407 ........ ........ ........   ....
subsystem-id            00000200 ........ ........ ........   ....
devsel-speed            00000002 ........ ........ ........   ....
fast-back-to-back
name                    70636931 3430372c 32303000 ........   "pci1407,200"
compatible              70636931 3430372c 32303000 ........   "pci1407,200"
            000c:       70636931 3430372c 32303000 ........   "pci1407,200"
            0018:       70636963 6c617373 2c303730 30303300   "pciclass,070003"
reg                     00011000 00000000 00000000 00000000   ................
            0010:       00000000 21011010 00000000 00000000   ....!...........
            0020:       00000000 00000010 21011014 00000000   ........!.......
            0030:       00000000 00000000 00000010 ........   ............
assigned-addresses

I can't see a difference (I guess that means that any weirdness is due
to OF?).  Do you want pcictl output as well?

BTW, I have one other PCI card in there that OF does not handle.
Unlike the serial card however, the 3c905b is handled by NetBSD
without problem and is in fact the primary ethernet card (since bm0
sucks rocks).

Joe.