On Tue, Mar 26, 2002 at 10:36:41PM -0700, Jens Owen wrote: > I've made some headway on this today, and could use some feedback based > on your BSD experience. I've attempted to move the packing of > drmRadeonInitCP into the 2D ddx driver, and the main concern I'm seeing > is the actual IOCTL request number. I can easily use the Linux number, > but I thought it might be better to have some OS independent offset. > However, generating all the combinations of _IO, _IOR, _IOW and _IOWR > semantics in an OS independent way is going to be challenging. See > xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm.h:line > 373 > > Here is an incomplete patch in case you are interested in the general > direction I was currently prototyping... > > Should I just use the Linux _IO* semantics and let other OS ports > twizzle this to get this working, or do you have any ideas on how we can > generate the proper semantics in a more general way. I think we will > need to generate these semantics at run time, not compile time. > Jens,
The idea of offset's with an os dependent MAGIC_NUMBER sounds like the right idea. I also think that we go ahead and use the Linux _IO* semantics, as the *BSD just twizzles around these anyway at the moment. And until more OS's support the drm (or at least show some signs) then that's probably the best we can hope for. Alan. _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel
