Read the IOKit reference as a start, make sure you're familiar with C/C++
Then read the old Cyapa code, make sure you understand it
Then read the VoodooI2CELAN code and understand how a satellite works (Might want to read device nub code either?)
You might want to look at the old ELAN code for reference...
Finally, port the code. Looking at the ELAN diff should give you a better idea on how it should work.
msgbuf=1548576as well to increase the max size of the dmesg buffer. That's the best way I've found, though I would like iolog to work again ;-;
1048576, not the number I gave before
gotos, but this seems like a weird usage of them. Don't know if you guys want them or not