Subject: Re: Adaptec SATA RAID 2410SA driver (PR kern/30456)
To: None <darcy@NetBSD.org>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: tech-kern
Date: 06/20/2005 09:35:24
On Wed, 8 Jun 2005 12:27:05 -0400
"D'Arcy J.M. Cain" <darcy@NetBSD.org> wrote:
> On Sat, 12 Mar 2005 18:21:53 -0500
> "D'Arcy J.M. Cain" <darcy@NetBSD.org> wrote:
> > I didn't get any response so I attacked the aac driver anyway.  I
> > made enough changes to get it to compile but it still doesn't work. 
> > Here are the diffs.  The card is still nor recognized though.  Any
> > thoughts?
> 
> Another developer was supposed to send patches to try but I never saw
> them so I created PR kern/30456 for this.  I hope we can fix this
> shortly since this RAID adapter is reasonably priced and it would be a
> shame if NetBSD didn't support it.  I can do testing here if anyone
> sends me patches.

I have made a few fixes for this.  Next issue is the following line in
aac.c:

ac->ac_fib->Header.SenderFibAddress = htole32((u_int32_t)ac->ac_fib);

This gives the following error:

warning: assignment makes integer from pointer without a cast.

I can fix this for the amd64 port like this:

ac->ac_fib->Header.SenderFibAddress = htole32((u_int64_t)ac->ac_fib);

Can someone tell me how to do this so that it is portable across 32 bit
architectures as well please.

-- 
D'Arcy J.M. Cain <darcy@NetBSD.org>
http://www.NetBSD.org/