> I've tried to document the "common" ones in a linux journal article a > few months ago. But for the others, you'll just have to dig through the > code, both kernel, and userspace programs.
I found Documentation/ioctl-numbers.txt for new-style ioctls. Currently I'm using 'N' with a range of 20 to 3F. Before a final release, I'll check if they're still unused. [FTDI Bit Bang mode] > It looks like this mode does not even look like a serial device anymore. > I'd recommend just using libusb to talk to the device to use this new > functionality (and to send new firmware to the device), that way you > don't have to mess with kernel programming at all. Hehe, it's still serial, because you have to write out bytes to change the status of the pins. It's more like synchronous serial. If you switch one line from zero to one and back constantly, you even have a clock line to talk to other chips. I've finished the bit bang mode part yesterday and sent my patch to Bill Ryder. Though his @sgi.com email address seems to be down. I tried again at bryder at paradise dot net dot nz. Let's see what happens. Today I'll go for the eeprom stuff. I guess there will be 7 ioctls at all. Though newer devices (BM type chips) support setting the latency, how long a byte is hold in the buffer if the buffer doesn't become full. This might be also interesting to tune serial communications. IMHO the eeprom stuff belongs in the ftdi_sio driver, because I don't want people to mess around with the eeprom checksum generation in some user-space application. If the checksum is wrong, the chip silently ignores the eeprom. The eeprom is used to store VID/PID/max. power consumption etc. The "graphical" eeprom editor will be in user-space, but the raw handling (retrieve/write/erase eeprom) should be done in kernel-space. Cheers, Thomas ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
