<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"><<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="h5"><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">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>"Do or do not. There is no try"</i><br><i> </i><i><b>Yoda Master</b></i><br></div></div>
</div>