Subject: Re: puc based 16550 on macppc?
To: None <port-macppc@netbsd.org>
From: Valeriy E. Ushakov <uwe@stderr.spb.ru>
List: port-macppc
Date: 04/17/2007 21:24:33
Joachim Thiemann <joachim.thiemann@gmail.com> wrote:

> Hello, I'm trying to get a Lava DSerial PCI card to work on my B&W G3.
>  I did get the card to work on a i386 box (4.0_BETA) by adding some
> lines to pucdata.c.
> 
> However, on 3.1 macppc, I get:
> 
> puc0 at pci1 dev 2 function 0: Lava Computers new serial (com, com)
> puc0: couldn't map BAR at offset 0x10
> puc0: couldn't map BAR at offset 0x14
> pci_intr_map: no mapping for pin C
> puc0: couldn't map interrupt
> 
> ("Lava Computers new serial" Is what I entered into pucdata.c...)
> 
> Following is the pcictl dump; unfortunately, I do not understand the
> pci magics all that well... anyone here has experience with
> puc-attached serial ports?

In my B&W G3 running 4.99.9 I have:

puc0 at pci1 dev 3 function 0: NetMos NM9835 Dual UART (com, com)
com0 at puc0 port 0: interrupting at irq 24
com0: ns16550a, working fifo
com1 at puc0 port 1: interrupting at irq 24
com1: ns16550a, working fifo

it "just worked".

SY, Uwe
-- 
uwe@stderr.spb.ru                       |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen