Subject: Re: Adaptec SATA RAID 2410SA driver (PR kern/30456)
To: Jason Thorpe <thorpej@shagadelic.org>
From: Scott Long <scottl@samsco.org>
List: tech-kern
Date: 06/29/2005 21:35:43
Jason Thorpe wrote:

> 
> On Jun 20, 2005, at 7:08 AM, Ignatios Souvatzis wrote:
> 
>> ac->ac_fib is a pointer? Sounds like some variant of intptr_t  should 
>> work.
> 
> 
> Sure, but then you are truncating it to 32-bits.  That is probably  not 
> what is intended by the code (note I haven't read this code yet).
> 
> -- thorpej
> 

I moderized this a couple of years ago in the FreeBSD driver.  You are
correct that the logic needs to be changed to use an index instead of a
pointer.  Unfortunately, the firmware thinks that it has magic knowledge
of this being a pointer, so a little bit of extra work is involved.  You
might also want to consider implementing the fast reponse bit, which
abuses this field some more.  I'm happy to answer questions.

Scott