Jaakko Ala-Paavola wrote: > Hi, > I'm planning to implement a bus driver for a simple homebrew > serial port I2C-adapter: > > http://vodka.tky.hut.fi/~jap/Electronics/I2C/SerialAdapter/index.html > > The original design is mine, but I just got confirmation from a hacker in > Italy that the device actually does work. Unfortunately the guy wrote > the driver for Windows only. Thus I decided to implement one for linux. > > I checked the list of supported bus drivers and didn't found anything > related to serial port. Do you feel that kind of project usefull? I think it could be useful, at least I think I will build my own one. I already have the same kind of hardware, but for parallel port. And it is supported by lm-sensors! On the sofware point of view, have a look to the files - drivers/i2c/busses/i2c-parport.c - drivers/i2c/busses/i2c-parport-light.c on a 2.6 kernel tree. These are two different implementations for the same adapter. The first one accesses the parallel port via parport and the second one directly with inb and outb. The first one has the advantage to be portable (ie it works on non-i386 arches), whereas the second one is speed efficient. Anyway, you will see that in both cases, most of the job is already done by i2c-algo-bit, you just have to drive the SCL and SDA lines. For your case you also have the possibility to access the serial port directly or via serio. I don't know a lot about serio, but it seems there is some examples in the kernel (serial mouses, some joysticks). Bye, Aurelien -- .''`. Aurelien Jarno GPG: 1024D/F1BCDB73 : :' : Debian GNU/Linux developer | Electrical Engineer `. `' aurel32 at debian.org | aurelien at aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net