Just missed most of this, but we do have drm_device_is_agp(dev) in the
drm, only the CVS radeon uses this at present as the DDX can tell it
also...

But on Linux it just does..
pci_find_capability(dev->pdev, PCI_CAP_ID_AGP);

which sounds like your chip says it is AGP but is connected over a PCI
bus..

also you could use postinit to do stuff from the driver and fail there...
I don't mind adding a preinit if needed.. but I think postinit should be
fine for your purposes... also at the moment the kernel is different than
CVS, it doesn't take over the PCI device.. so drm_get_dev is called over
the pciids... this shouldn't affect anything but if you were to modify the
mga_drv.c:probe function it would cause issues...

Dave.

-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
Linux kernel - DRI, VAX / pam_smb / ILUG



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to