Hi,
I am developing a driver for the touchpad designed by our team of
engineer. The hardware is originally a com port device and it works
perfectly. Now the hardware is changed to USB and the driver I
devloped is changed to a character device.
With the com port, somewhere in the driver, I have:
local->fd = xf86OpenSerial(local->option);
and when there is a data from serial port, the function
xf86ReadInput(...) will be called.
However, since now I the driver I developed is a character
device, instead of xf86OpenSerial, I use:
local->fd = xf86open(priv->devfilename, ORDWR|O_NDELAY, 0)
and I am expecting the function xf86ReadInput will be called
when there is data avaible. But this does not work.
Questions:
1) Why I get no message from when use xf86open
2) Has anyone written a driver the reads input from pipe
in Linux so that I can test the protocol with my own
input?
Yick
Hong Kong, China
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert