I need a major number for the VGA device. I used
register_chrdev_region() to free up some space from DRM.  First 512
minors are assigned to DRM then I need a few starting at 226,512 for
vga devices. I could use dynamic majors for the VGA device but that
would mean that everyone needs udev and you can't count on that yet.
The two constants I need are DRM_MAJOR and DRM_MAX_MINOR. I don't
really need DRM_MAX_MINOR, I just use it in a compile time check to
make sure things don't over lap.

Why is this protected with the xfree version check?

drm.h...
#if CONFIG_XFREE86_VERSION >= XFREE86_VERSION(4,1,0,0)
#ifdef __OpenBSD__
#define DRM_MAJOR       81
#endif
#if defined(__linux__) || defined(__NetBSD__)
#define DRM_MAJOR       226
#endif
#define DRM_MAX_MINOR   15
#endif


On Fri, 10 Sep 2004 23:10:46 +0100, Alan Cox <[EMAIL PROTECTED]> wrote:
> On Gwe, 2004-09-10 at 22:56, Jon Smirl wrote:
> > drm.h should be located in /include/linux/ or /include/video instead
> > of /drivers/char/drm. The code for sharing the DRM major number with
> > the VGA device needs to pick some constants up out of drm.h. Can we
> > move it in the next kernel drop?
> 
> Ughhh. Please just move the bits you actually need and to the places
> they belong. The DRM major for example could sensibly be moved to
> linux/major.h.
> 
> 



-- 
Jon Smirl
[EMAIL PROTECTED]


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to