--- Eric Anholt <[EMAIL PROTECTED]> wrote:
> 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/
> 

I'v looked into this, it seams that the tdfx driver dose something simular to FreeBSD. 
 The code
in drm_drv.h could be adapted to create the device nodes, via devfs.  The current 
linux setup just
allocates 1 minor number, more is supported by drm_drv.h but only the tdfx makes use 
of this.  I
can easily add the call to devfs, but I wonder if I shouldn't fix it up right.  I'm 
planing on
making the linux&bsd structures the same, this adds bloat to linux but it's not too 
bad.  Then I
could place all the PCI ids in the shared dir, where should thay go (*_drv.h)?  I'm 
planing on
having DRISUP_BOTH, DRISUP_BSD, DRISUP_LINUX, DRISUP_NONE defined for the 3rd element. 
 Later
something like DRISUPPORTED(bsd,linux,ect...) can be implemented for more OSes.  Is 
there any
thing special I should do, if I put data/code in a .h file?  Is there any thing else I 
should be
aware of?

Mike

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


-------------------------------------------------------
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

Reply via email to