<div dir="ltr"><div><div>If you're dealing with network drivers you will want to know about socket buffs: <a href="http://www.linuxjournal.com/article/1312">http://www.linuxjournal.com/article/1312</a><br></div>LDD3 has a chapter for network drivers too: <a href="http://www.makelinux.net/ldd3/chp-17">http://www.makelinux.net/ldd3/chp-17</a><br><br><br></div><div>Regards :)<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-17 10:22 GMT-02:00 Daniel. <span dir="ltr"><<a href="mailto:danielhilst@gmail.com" target="_blank">danielhilst@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>CAN drivers can be found here; <a href="http://lxr.free-electrons.com/source/drivers/net/can/" target="_blank">http://lxr.free-electrons.com/<wbr>source/drivers/net/can/</a><br><br></div>The device driver interface is at dev.c<br><br></div>AFAIK the only other files referencing to can outside of drivers/ folder is <a href="http://lxr.free-electrons.com/source/include/uapi/linux/if_ether.h#L120" target="_blank">http://lxr.free-electrons.com/<wbr>source/include/uapi/linux/if_<wbr>ether.h#L120</a><br></div><div>You may want to look at docs too: <a href="https://www.kernel.org/doc/Documentation/networking/can.txt" target="_blank">https://www.kernel.org/doc/<wbr>Documentation/networking/can.<wbr>txt</a><br></div>Regards,<br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2016-10-17 9:05 GMT-02:00 Augusto Fraga Giachero <span dir="ltr"><<a href="mailto:augustofg96@gmail.com" target="_blank">augustofg96@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've been reading the source code for the ECI driver and discovered that<br>
it only applies to PCI devices, the IXXAT CAN-to-USB Compact (V1.0) is<br>
accessed through libusb, so please, ignore the ECI Kernel module that<br>
I've attached in the last email.<br>
<br>
Thanks!<br>
<div><div class="m_1248756694998520989h5"><br>
On 17-10-2016 08:43, Augusto Fraga Giachero wrote:<br>
> Hello!<br>
><br>
><br>
> I recently started a project that uses the CAN serial protocol using<br>
> microcontrollers. I've got an IXXAT CAN-to-USB Compact (V1.0) adapter to<br>
> help debugging the CAN bus. The manufacturer of this adapter provides<br>
> the kernel driver and and userspace libraries for Linux, but it uses a<br>
> custom API (ECI) instead of SocketCAN (and I really need to use<br>
> SocketCAN). The manufacturer also provides a SocketCAN driver but only<br>
> for the CAN-to-USB Compact (V2.0), so it doesn't with what I have.<br>
><br>
><br>
> I'm thinking in modifying the the SocketCAN driver to support the V1.0<br>
> adapter, but I don't have any experience in kernel driver development.<br>
> I've a solid C knowledge and a lot of experience in firmware development<br>
> for microcontrollers. Can someone show me where to find relevant<br>
> information regarding SocketCAN, USB drivers development? I don't know<br>
> if this challenge is above my skills.<br>
><br>
><br>
> I've attached both drivers and a patch for the usb-to-can_v2_socketcan<br>
> that substitutes the "netdev->trans_start =" deference to<br>
> "netif_trans_update(netdev);", so you can compile for kernels newer than<br>
> 4.4.<br>
><br>
><br>
><br>
> Thanks!<br>
><br>
><br>
<br>
<br>
</div></div>______________________________<wbr>_________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.or<wbr>g</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.or<wbr>g/mailman/listinfo/kernelnewbi<wbr>es</a><br>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_1248756694998520989gmail_signature" data-smartmail="gmail_signature"><div style="text-align:right"><i>"Do or do not. There is no try"</i><br><i> </i><i><b>Yoda Master</b></i><br></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div style="text-align:right"><i>"Do or do not. There is no try"</i><br><i> </i><i><b>Yoda Master</b></i><br></div></div>
</div>