James Carlson wrote:
> [email protected] writes:
>   
>> Yes.  I have now read the GPL license  and think it
>> will in the long term be simpler to re-write my code to use no GPL bits.
>> I don't expect this to take more than  a week or so...
>>     
>
> Sounds like a nifty and worthwhile contribution to me.  Good luck!
>
>   
I've given some thought to how to do this, and I just want to bounce some
ideas off of people, partly to see if I am making sense, and partly to see
if someone else is already doing something similar that I can use.

In the current (linux and my Solaris code), much of the work is done in
the kernel, including:
    - Determining which pen is in use, and which end of the pen (stylus 
or eraser)
    - Determining position of pen on the tablet
    - Determining when tablet/pen buttons/keys are pressed/released

The kernel side takes this information and forms events (in a defined 
structure)
that it passes up to the X library module.  The X library module then 
does some
more work and finally sends the events to interested parties.

What I would like to do is make the kernel side of this much simpler.  
Instead
of doing calculations, all the driver will do is pass up the raw data 
(and handle some
ioctl calls for getting things like vendor and product ID, etc.).  The 
library module side
would then do all processing of the raw data, including the stuff 
currently done
in the kernel driver.

If this is done correctly, the amount of change to the kernel side will 
be extremely minimal,
if/when Wacom comes out with a new tablet model.  And the X library 
module could be made generic to handle "tablet" devices.  The specific 
tablet vendor/product stuff could be added to the "generic" tablet xdrv.

Any thoughts on this?

thanks,
max

_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to