<div dir="ltr"><div><div><div>CAN drivers can be found here; <a href="http://lxr.free-electrons.com/source/drivers/net/can/">http://lxr.free-electrons.com/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">http://lxr.free-electrons.com/source/include/uapi/linux/if_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">https://www.kernel.org/doc/Documentation/networking/can.txt</a><br></div>Regards,<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-17 9:05 GMT-02:00 Augusto Fraga Giachero <span dir="ltr">&lt;<a href="mailto:augustofg96@gmail.com" target="_blank">augustofg96@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;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&#39;ve attached in the last email.<br>
<br>
Thanks!<br>
<div><div class="h5"><br>
On 17-10-2016 08:43, Augusto Fraga Giachero wrote:<br>
&gt; Hello!<br>
&gt;<br>
&gt;<br>
&gt; I recently started a project that uses the CAN serial protocol using<br>
&gt; microcontrollers. I&#39;ve got an IXXAT CAN-to-USB Compact (V1.0) adapter to<br>
&gt; help debugging the CAN bus. The manufacturer of this adapter provides<br>
&gt; the kernel driver and and userspace  libraries for Linux, but it uses a<br>
&gt; custom API (ECI) instead of SocketCAN (and I really need to use<br>
&gt; SocketCAN). The manufacturer also provides a SocketCAN driver but only<br>
&gt; for the CAN-to-USB Compact (V2.0), so it doesn&#39;t with what I have.<br>
&gt;<br>
&gt;<br>
&gt; I&#39;m thinking in modifying the the SocketCAN driver to support the V1.0<br>
&gt; adapter, but I don&#39;t have any experience in kernel driver development.<br>
&gt; I&#39;ve a solid C knowledge and a lot of experience in firmware development<br>
&gt; for microcontrollers. Can someone show me where to find relevant<br>
&gt; information regarding SocketCAN, USB drivers development? I don&#39;t know<br>
&gt; if this challenge is above my skills.<br>
&gt;<br>
&gt;<br>
&gt; I&#39;ve attached both drivers and a patch for the usb-to-can_v2_socketcan<br>
&gt; that substitutes the &quot;netdev-&gt;trans_start =&quot; deference to<br>
&gt; &quot;netif_trans_update(netdev);&quot;, so you can compile for kernels newer than<br>
&gt; 4.4.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt;<br>
<br>
<br>
</div></div>______________________________<wbr>_________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.<wbr>org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.<wbr>org/mailman/listinfo/<wbr>kernelnewbies</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div style="text-align:right"><i>&quot;Do or do not. There is no try&quot;</i><br><i>  </i><i><b>Yoda Master</b></i><br></div></div>
</div>