Christian Kaiser wrote:
> 
> Thanks Paul! That helped a lot!
> But there is still one minor thing confusing me. Why is ddi_dev_nregs() 
> returning nregs=6 and not nregs=5?
> 

The brutally simple answer is that the implementation of that function 
simply takes the length of the 'reg' property and divides by 5; i.e. it 
returns the number of 5-tuples in the 'reg' property.
If you want a specific BAR determined by offset then I suggest grabbing 
a copy of the 'reg' property yourself and use the register number 
(rrrrrrrr in my previous mail) - since I realised that actually means 
'offset' - to determine the index of that BAR in the 'reg' property.

   Paul
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to