OK, I guess at least my previous work can be used for reference group. Thanks for both of you.<br><br><div class="gmail_quote">On Fri, Jan 14, 2011 at 1:40 AM, Greg KH <span dir="ltr"><<a href="mailto:greg@kroah.com">greg@kroah.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Fri, Jan 14, 2011 at 12:42:52AM +0800, cheng chen wrote:<br>
> Hi all,<br>
> I am working on vehicle body control system with can-bus as my BE final<br>
> project.<br>
> It contains three parts.<br>
><br>
> 1.CAN chip driver<br>
> 2.CAN-bus protocol stack<br>
> 3.UI<br>
><br>
> The problem is that I already have written the CAN chip driver as a<br>
> character device driver using IO-simulated SPI.<br>
<br>
</div>Oops, don't do that.<br>
<div class="im"><br>
> So with this character driver API open() read() write() ioctl(), I start to<br>
> wonder where can I put my protocol stack?<br>
<br>
</div>Use the in-kernel CAN protocol stack, that is much easier.<br>
<div class="im"><br>
> Or should rewrite the driver in network device frameworks?<br>
<br>
</div>Yes.<br>
<br>
thanks,<br>
<br>
greg k-h<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Cheng(誠)<br><br>Fedora Project Contributor -- Ambassador<br><div><a href="https://fedoraproject.org/wiki/User:Freakrobot" target="_blank">https://fedoraproject.org/wiki/User:Freakrobot</a></div>
<div>_______________________________________________</div><div><br></div><div>My Page: <a href="http://freakrobot.blogbus.com/" target="_blank">http://freakrobot.blogbus.com/</a></div><br>