Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCI-card memory not mapped



Thanks to Godfrey and Shawn Erickson
to giving a thought to my problem but I'm afraid the the error is not with me... :) ... well this is a bit pretentious ...
BEFORE I my driver appears on scene IORegistry ALREADY indicates no memory for this card. If I am not misstaken all these problems appears BECAUSE Open Firmware did not correctly identified the card's needs? Unfortunately neither

fPCIDevice->getDeviceMemoryCount()
nor
fPCIDevice->getDeviceMemoryWithRegister( kIOPCIConfigBaseAddress0 )

gives any reason why there is no mapping done. There is really a need for an insider who knows at what stage the config (the card?) might fail ( might be not proper PCI conformance?)

I more or less worked around by creating two IOMemoryDescriptors with physical address as read from bar0 and bar1 and sizes of 0x800 and 0x4000 as read out from IORegistry, and call IOMemoryDescriptor's map method which returns an IOMemoryMap. As far as I am today it seems I can talk to the card but I do not know whether am I living dangerously or not... Will my code break when interrupts come into play or DMA?
Especially what are the proper options for cache when calling map(). Form the developer doc kIOMapDefaultCache seems to be the appropriate, but I do not really see the meaning of the others.

hoping for someone with "inner" knowledge...

Bela
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.