| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
The configuration has not failed. Your driver is responsible for creating the mappings.
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?
I would look at an example PCI driver. The "AppleIntel8255x" driver (which you can check out from the Darwin CVS repository) is a good example, since it also shows how to set up DMA and interrupts. Basically, in your start routine you will want to make one or more calls of the form:
IOMemoryMap *map0;
map0 = nub->mapDeviceMemoryWithRegister(kIOPCIConfigBaseAddress0);
| References: | |
| >Re: PCI-card memory not mapped (From: Amanda Walker <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.