Thanks for the response Gerry,
According to the ddi_regs_map_setup man page (where len is the 5th
parameter): "If len is non-zero, it overrides the length given in the
register set description. If both len and offset are 0, the entire space
is mapped."
So setting offset and len to zero should map the entire register set
into memory.
Still, I changed my len to be 64k to see if I could get my behavior to
change. And the results were the same -- the ddi_get32 function returns
0xffffffff, and my PCI bus analyzer shows that correct data is being
transfered from the device. I am just not seeing it at my driver.
Does anyone know if I have to muck with the PCI configuration space any?
I don't have to turn something on anywhere do I? Like the PCI bridge...
I am just grasping at straws.
-Adam
Liu, Jiang wrote:
Hi Adam,
Seems you have passed wrong parameter to ddi_regs_map_setup(),
the fifth parameter (len) should be 0x10000 here. Please refert to manual of
ddi_regs_map_setup.
Regards
-Gerry
_______________________________________________
driver-discuss mailing list
driver-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/driver-discuss