Am Do, den 14.10.2004 schrieb Jon Smirl um 18:38: > I did it like this at startup time: > > /* registers */ > if ((ret = drm_initmap(dev, pci_resource_start(dev->pdev, 2), > pci_resource_len(dev->pdev, 2), _DRM_REGISTERS, > 0))) > return ret; > > if (!(dev_priv->mmio = drm_core_findmap(dev, pci_resource_start(dev->pdev, 2)))) > return DRM_ERR(ENOMEM);
Ok, I guess that would work for me too. > > > I haven't checked out the code enough to be sure that getting a map by > index number will always return the right map. What about the getmap ioctl? You may be right though, that one might get unexpected results. AFAICT maps are added at the head of the list. So the order is reversed and maps added by the Xserver mess up the indices. -- | Felix K�hling <[EMAIL PROTECTED]> http://fxk.de.vu | | PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3 B152 151C 5CC1 D888 E595 | ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel
