On Fre, 2003-03-14 at 17:42, Bhavana Nagendra wrote: 
> I have a DRI based DRM driver and wanted to know if it needs a 
> major device number assigned by the linux community, like any 
> standalone driver.  

>From linux/Documentation/devices.txt:

226 char        Direct Rendering Infrastructure (DRI)
                  0 = /dev/dri/card0            First graphics card
                  1 = /dev/dri/card1            Second graphics card
                    ...

So it looks to me like char major 226 is reserved for the DRM.

> Since the driver opens /dev/dri/card0 as it boots up, 
> I'd like to know how exactly does it use the DRIVER_MAJOR, 
> DRIVER_MINOR macros?   Are these macros required?

They denote the API version of the specific DRM, not the major and minor
of the device. You probably don't need them if you don't use our DRM
templates.


Hope this helps,


-- 
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to