On Mon, 18 Nov 2002, Greg KH wrote: > On Mon, Nov 18, 2002 at 02:29:56PM +0000, Rob Miller wrote: > > (1) I just 'grabbed' ioctls 'U' 0x71-0x79 (77-79 in the 0.3 ver at > > home). I tried e-mailing the person in the kernel docs about ioctl > > numbering and assignments, he replied that he's given up tracking them. > > Why do you need ioctls for this driver?
partly because of comments on this list about it being better than just leaving users to do everything through file i/o :-) the device's bulk out endpoint dispatches commands according to the 1st byte of each 32. if the byte is 01, the remainder of the messages is one of: write/read eeprom params, write/read backlight state, write/read LCD power state. I've used ioctls for the backlight and LCD access. Discovering the eeprom parameter write function as I did was an experience most would probably prefer to avoid :-) thus the ioctls are the only way to get to the '01' commands. > > (2) I just 'grabbed' minor device number 200 (major=180) [... oh blow, > If this is a input device, why do you need a USB minor number? And you if the byte (above) is 02, the remaining up to 31 bytes go directly to the Seiko/Epson 1335 LCD controller. this part I have left as access via file i/o through /dev/usb/cpad0. writing an image to the lcd panel is done by writing (essentially) line after line of bitmap data to this interface. there's a lot more opportunity around the lcd controller set-up which I haven't been able to work out, so this seemed appropriate to leave available for interested users to explore with the help of the 1335 datasheet. and it's still a 3-button mouse... this may make more sense if I get some photos up of the applications so far. thanks, rob. ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel