On Tue, 2002-07-09 at 15:04, Mike Mestnik wrote: > I'm using the new linux devfs and It seams to me that the DRI can't at this time use >devfs the way > it should. If i'm not mistaken the kernel module dosen't realy know how to find >supported cards, > it leaves that to the Xserver. If some one was planing on enabling this support how >would that > break FreeBSD, what should that coder do to keep FreeBSD happy?
As long as you only touch linux's drm_* files in the DRM, you're fine as far as not messing up BSD. The BSD DRM already supports FreeBSD's devfs. On BSD, there is a list of PCI ids in each *_drv.c, which are used in the probe function to see if each device supplied by the kernel is supported by the DRM. A new instance of the driver is created for each one (instance of the driver ~= a drm_device_t). The FreeBSD X Server creates a device node in /dev/dri/ if there isn't one already. If it's using devfs, make_dev() in drm_drv.h makes the device node. -- Eric Anholt <[EMAIL PROTECTED]> http://people.freebsd.org/~anholt/dri/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Stuff, things, and much much more. http://thinkgeek.com/sf _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel