Subject: Re: port-macppc/23287 ahc support
To: None <port-macppc@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: port-macppc
Date: 10/16/2004 22:54:38
In article <B0A504B2-1FC4-11D9-9ABE-000A27E1036E@nosflow.com>,
Michael Wolfson <michael@nosflow.com> wrote:
>Y'all,
>
>Tim Kelly sent me a quick hack that enabled my Adaptec 2940UW card 
>(finally) after its breakage sometime in mid 2003.  The hack is 
>included below.
>
>I've applied this to both -current and 2.0RC4 as of yesterday.  In both 
>cases, it allows my 2940UW card to work (though compilation produces a 
>warning).  Without the above patch, GENERIC kernels (-current and 
>2.0RC4) fail to map the registers on my card:
>Adaptec AHA-2940 Ultra (SCSI mass storage) at ? dev 15 function 0 
>(intrswiz 0, i
>ntrpin 0x1, i/o off, mem on, no quirks): Adaptec 2940 Ultra SCSI adapter
>: unable to map registers
>
>If anyone's interested I can also send them the output of an unpatched 
>-current kernel with PCI_CONFIG_DUMP enabled.
>
>What's unusual is that the 2940UW works fine with a stock GENERIC 
>kernel on my sparc64 machine, so the problem is specific to macppc.  
>Additionally, a stock 1.6.2 GENERIC kernel works fine with the 2940UW 
>on my macppc.
>
>I haven't yet tried any kernels with Tim's posted pci_map_intr patch.
>
>So, I guess the question is, how to proceed from here.
>

ALLOW_MEMIO is not defined in -current; the print statement change should
have no effect.

christos