]> rtime.felk.cvut.cz Git - socketcan-devel.git/log
socketcan-devel.git
17 years agoUpdated patch to vanilla 2.6.21.
hartkopp [Thu, 3 May 2007 16:42:43 +0000 (16:42 +0000)]
Updated patch to vanilla 2.6.21.
Removed the ipv6 patch. This is another thread on the LKML ...

git-svn-id: svn://svn.berlios.de//socketcan/trunk@275 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoremoved spinlocks for now as i got a dead lock on heavy CAN traffic with
hartkopp [Thu, 3 May 2007 15:37:10 +0000 (15:37 +0000)]
removed spinlocks for now as i got a dead lock on heavy CAN traffic with
heavy proc_fs reading. I assume a spinlock is really not needed here.
Checking again tomorrow.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@274 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded comment about cutting off the proc_fs output at PAGE_SIZE.
hartkopp [Thu, 3 May 2007 13:24:10 +0000 (13:24 +0000)]
Added comment about cutting off the proc_fs output at PAGE_SIZE.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@273 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoChanged module param name from drv_loopback to loopback.
hartkopp [Thu, 3 May 2007 10:28:41 +0000 (10:28 +0000)]
Changed module param name from drv_loopback to loopback.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@272 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded locking to CAN core proc_fs output.
hartkopp [Thu, 3 May 2007 10:26:19 +0000 (10:26 +0000)]
Added locking to CAN core proc_fs output.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@271 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded some blank lines.
hartkopp [Wed, 2 May 2007 15:58:17 +0000 (15:58 +0000)]
Added some blank lines.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@270 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded comment regarding the currently local DBG macro.
hartkopp [Wed, 2 May 2007 15:55:02 +0000 (15:55 +0000)]
Added comment regarding the currently local DBG macro.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@269 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoIntroduced the module param 'drv_loopback' to switch the vcan driver into
hartkopp [Wed, 2 May 2007 15:41:14 +0000 (15:41 +0000)]
Introduced the module param 'drv_loopback' to switch the vcan driver into
the appropriate loopback mode at loading time.
This makes tests of the CAN core more easy and can additionally be used as
a reference implementation hint.
Also added some comments.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@268 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAllow sending and receiving of packets only on CAN interfaces.
thuermann [Wed, 2 May 2007 14:50:53 +0000 (14:50 +0000)]
Allow sending and receiving of packets only on CAN interfaces.
Add notice to help text in Kconfig.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@267 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoUsing enum instead if multiple defines. Cosmetics.
hartkopp [Wed, 2 May 2007 14:05:23 +0000 (14:05 +0000)]
Using enum instead if multiple defines. Cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@266 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoReduce use of a somewhat ugly type-cast.
thuermann [Wed, 2 May 2007 13:51:38 +0000 (13:51 +0000)]
Reduce use of a somewhat ugly type-cast.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@265 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoUpdated configuration help for non-root CAN access.
hartkopp [Wed, 2 May 2007 13:09:41 +0000 (13:09 +0000)]
Updated configuration help for non-root CAN access.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@264 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoMoved timeval2jiffies function from af_can.c to bcm.c and added a comment why
hartkopp [Wed, 2 May 2007 09:48:11 +0000 (09:48 +0000)]
Moved timeval2jiffies function from af_can.c to bcm.c and added a comment why
using the kernel function timeval_to_jiffies() is problematic here.
TODO: Check if this could be a hrtimer use-case here.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@263 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoRevert change r250: use EXPORT_SYMBOL because here at VW we have non-GPL
thuermann [Wed, 2 May 2007 08:48:33 +0000 (08:48 +0000)]
Revert change r250: use EXPORT_SYMBOL because here at VW we have non-GPL
modules using the CAN core.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@262 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agocosmetics.
hartkopp [Tue, 1 May 2007 16:00:48 +0000 (16:00 +0000)]
cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@261 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agocomment and indention beautifications.
hartkopp [Tue, 1 May 2007 15:48:49 +0000 (15:48 +0000)]
comment and indention beautifications.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@260 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoremoved debugging stuff (caller id).
hartkopp [Tue, 1 May 2007 15:28:50 +0000 (15:28 +0000)]
removed debugging stuff (caller id).

git-svn-id: svn://svn.berlios.de//socketcan/trunk@259 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoreordered functions to remove forward declarations.
hartkopp [Tue, 1 May 2007 15:19:04 +0000 (15:19 +0000)]
reordered functions to remove forward declarations.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@258 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoCleaned up extern declarations for variables between af_can.c and proc.c
hartkopp [Tue, 1 May 2007 15:11:06 +0000 (15:11 +0000)]
Cleaned up extern declarations for variables between af_can.c and proc.c

git-svn-id: svn://svn.berlios.de//socketcan/trunk@257 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoIntroduced can.txt for Documentation/networking.
hartkopp [Tue, 1 May 2007 14:23:43 +0000 (14:23 +0000)]
Introduced can.txt for Documentation/networking.
To be continued ...

git-svn-id: svn://svn.berlios.de//socketcan/trunk@256 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoChanges after test integration into kernel 2.6.21 :
hartkopp [Tue, 1 May 2007 14:21:39 +0000 (14:21 +0000)]
Changes after test integration into kernel 2.6.21 :

Exported functions in core.h need to be declared 'extern' to avoid the
kernel error "can: exports duplicate symbol can_send (owned by kernel)"
This occures e.g. when can.ko is built-in and the protocol modules are
built as modules.

Made our kernel log messages lower case as other subsystems like USB do.
Changed some kernel messages. Cosmetics.
RFC: Use 20070501 as CAN_VERSION inside the Kernel instead of 2.0.0-pre7?

git-svn-id: svn://svn.berlios.de//socketcan/trunk@255 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoReplace a couple macros by inline functions.
thuermann [Mon, 30 Apr 2007 12:59:32 +0000 (12:59 +0000)]
Replace a couple macros by inline functions.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@254 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoUse macros provided by the kernel to define initialized locks.
thuermann [Mon, 30 Apr 2007 12:41:30 +0000 (12:41 +0000)]
Use macros provided by the kernel to define initialized locks.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@253 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoUse dynamically allocated buffers instead of stack space for debug messages.
thuermann [Mon, 30 Apr 2007 12:17:32 +0000 (12:17 +0000)]
Use dynamically allocated buffers instead of stack space for debug messages.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@252 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoMoved/deleted comments which were on the same line as code.
thuermann [Mon, 30 Apr 2007 11:36:19 +0000 (11:36 +0000)]
Moved/deleted comments which were on the same line as code.
Replaced a goto by return.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@251 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoexport functions using EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL.
thuermann [Mon, 30 Apr 2007 11:14:50 +0000 (11:14 +0000)]
export functions using EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@250 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agolinux/can/error.h is no file for LKML posting and is not needed in raw.c
hartkopp [Sat, 28 Apr 2007 13:56:52 +0000 (13:56 +0000)]
linux/can/error.h is no file for LKML posting and is not needed in raw.c

git-svn-id: svn://svn.berlios.de//socketcan/trunk@249 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agofixed missing condition from r247.
hartkopp [Sat, 28 Apr 2007 11:59:55 +0000 (11:59 +0000)]
fixed missing condition from r247.
Added r247 functionality to bcm rx setup path.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@248 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoIntroduced single can_frames inside the bcm_op as 99% of the known
hartkopp [Sat, 28 Apr 2007 06:50:57 +0000 (06:50 +0000)]
Introduced single can_frames inside the bcm_op as 99% of the known
use-cases do not use more than one CAN frame (=> nframes = 1).
These single can_frames inside the bcm_op therefore omit the
expensive kmalloc's for single can_frames with 16 bytes ...

git-svn-id: svn://svn.berlios.de//socketcan/trunk@247 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agosome more comment beautifying.
hartkopp [Thu, 26 Apr 2007 05:49:23 +0000 (05:49 +0000)]
some more comment beautifying.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@246 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agofixed missing \n since r217
hartkopp [Wed, 25 Apr 2007 12:56:22 +0000 (12:56 +0000)]
fixed missing \n since r217

git-svn-id: svn://svn.berlios.de//socketcan/trunk@245 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoBump version number to 2.0.0-pre6
thuermann [Wed, 25 Apr 2007 08:40:59 +0000 (08:40 +0000)]
Bump version number to 2.0.0-pre6

git-svn-id: svn://svn.berlios.de//socketcan/trunk@243 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoUpdate patch files to current kernel versions.
thuermann [Wed, 25 Apr 2007 08:38:52 +0000 (08:38 +0000)]
Update patch files to current kernel versions.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@242 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFix comment about usage.
thuermann [Tue, 24 Apr 2007 08:56:27 +0000 (08:56 +0000)]
Fix comment about usage.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@241 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded missing RX_DELETE in the case of growing nframes in following RX_SETUP.
hartkopp [Tue, 24 Apr 2007 06:36:29 +0000 (06:36 +0000)]
Added missing RX_DELETE in the case of growing nframes in following RX_SETUP.
Cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@240 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded comment for script usage. Added debug parameter '-d' in synopsis.
hartkopp [Tue, 24 Apr 2007 06:09:48 +0000 (06:09 +0000)]
Added comment for script usage. Added debug parameter '-d' in synopsis.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@239 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded MODULE_ALIAS_NETPROTO() macro for protocol family modules.
hartkopp [Tue, 24 Apr 2007 05:56:43 +0000 (05:56 +0000)]
Added MODULE_ALIAS_NETPROTO() macro for protocol family modules.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@238 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agosome blank line cleanups.
hartkopp [Mon, 23 Apr 2007 18:38:30 +0000 (18:38 +0000)]
some blank line cleanups.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@237 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoadded comments. Cosmetics.
hartkopp [Mon, 23 Apr 2007 18:32:34 +0000 (18:32 +0000)]
added comments. Cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@236 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoreordered functions before cleanup cosmetics.
hartkopp [Mon, 23 Apr 2007 18:31:17 +0000 (18:31 +0000)]
reordered functions before cleanup cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@235 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoremoved several blank lines.
hartkopp [Mon, 23 Apr 2007 16:54:21 +0000 (16:54 +0000)]
removed several blank lines.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@234 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoreordered the reordered ;-)
hartkopp [Fri, 20 Apr 2007 20:28:51 +0000 (20:28 +0000)]
reordered the reordered ;-)
Removed obsolete blank lines.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@233 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoReorder functions to elimintate forward function declarations.
thuermann [Fri, 20 Apr 2007 19:23:48 +0000 (19:23 +0000)]
Reorder functions to elimintate forward function declarations.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@232 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoApplied patch from Michal Sojka to fix register access order in
hartkopp [Fri, 20 Apr 2007 19:10:14 +0000 (19:10 +0000)]
Applied patch from Michal Sojka to fix register access order in
interrupt routine.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@231 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoReorder functions to elimintate forward function declarations.
thuermann [Fri, 20 Apr 2007 18:26:40 +0000 (18:26 +0000)]
Reorder functions to elimintate forward function declarations.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@230 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoCosmetics: delete two blank lines.
thuermann [Fri, 20 Apr 2007 10:07:09 +0000 (10:07 +0000)]
Cosmetics: delete two blank lines.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@229 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoDelete blank lines following the #if LINUX_VESION_CODE ... #endif,
thuermann [Fri, 20 Apr 2007 10:06:12 +0000 (10:06 +0000)]
Delete blank lines following the #if LINUX_VESION_CODE ... #endif,
if the #if line was preceded by a blank line and everything between
#if and #endif was deleted, i.e. there would be multiple consecutive
blank lines.
Add -d (debug) option.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@228 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoremoved duplicated code.
hartkopp [Fri, 20 Apr 2007 06:57:28 +0000 (06:57 +0000)]
removed duplicated code.
added MODULE_PARM_DESCs for debug and stats_timer.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@227 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded config depended make path for MSCAN driver.
hartkopp [Thu, 19 Apr 2007 14:16:49 +0000 (14:16 +0000)]
Added config depended make path for MSCAN driver.
Isn't there any 'even nicer' solution for external compilation?

git-svn-id: svn://svn.berlios.de//socketcan/trunk@226 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFixed the KERNEL_VERSION_CODE compare introduced in r191.
hartkopp [Thu, 19 Apr 2007 14:02:43 +0000 (14:02 +0000)]
Fixed the KERNEL_VERSION_CODE compare introduced in r191.
Indeed the API change was from 2.6.18 to 2.6.19 .

git-svn-id: svn://svn.berlios.de//socketcan/trunk@225 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoApplied patch from Domen Puncer:
hartkopp [Thu, 19 Apr 2007 13:51:26 +0000 (13:51 +0000)]
Applied patch from Domen Puncer:
- irqhandler_t api change
- socket class_dev api change
- add suspend/resume support to mpc52xx can driver
- add support for arch/powerpc tree
- release_mem_region's size parameter fixed to mem->end - mem->start + 1
- Makefile fix
- s/GPLv2/GPL v2/ as it should be (see module.h)

git-svn-id: svn://svn.berlios.de//socketcan/trunk@224 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoRemoved obsolete debug functions from the historic LLCF development.
hartkopp [Thu, 19 Apr 2007 12:27:47 +0000 (12:27 +0000)]
Removed obsolete debug functions from the historic LLCF development.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@223 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFix some #if's since the change in sk_alloc() and addition of
thuermann [Thu, 19 Apr 2007 08:34:49 +0000 (08:34 +0000)]
Fix some #if's since the change in sk_alloc() and addition of
proto_{un,}register() was in Linux-2.6.12, not 2.6.13.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@222 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoThe new mkpatch script removes the trailing blank lines after a
hartkopp [Thu, 19 Apr 2007 06:22:49 +0000 (06:22 +0000)]
The new mkpatch script removes the trailing blank lines after a
#if LINUX_VERSION_CODE ...
Added some blank lines to get a better linespacing in the (patched) code.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@221 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agofixed compile problem in slcan.c analogue to r218.
hartkopp [Thu, 19 Apr 2007 06:05:08 +0000 (06:05 +0000)]
fixed compile problem in slcan.c analogue to r218.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@220 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoUnified the RCSID stuff which is usefull when making an external compilation.
hartkopp [Thu, 19 Apr 2007 05:51:18 +0000 (05:51 +0000)]
Unified the RCSID stuff which is usefull when making an external compilation.
The version.h include and the RCSID macro is automatically removed when
creating a (mainline) kernel patch by the script trunk/mkpatch .

git-svn-id: svn://svn.berlios.de//socketcan/trunk@219 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFixed compile error due to moved CAN_VERSION string.
hartkopp [Wed, 18 Apr 2007 17:32:29 +0000 (17:32 +0000)]
Fixed compile error due to moved CAN_VERSION string.
Indeed the version of a netdev driver has nothing to do with the
version of the protocol family CAN core ...

git-svn-id: svn://svn.berlios.de//socketcan/trunk@218 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoRemove everything from version.h except definition of RCSID().
thuermann [Wed, 18 Apr 2007 14:05:21 +0000 (14:05 +0000)]
Remove everything from version.h except definition of RCSID().
Rename macro VERSION to CAN_VERSION, now defined in core.h.
Add macro CAN_ABI_VERSION.
Don't include version.h in kernel patches and delete usage of RCSID()
from all files generated by mkpatch.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@217 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded local skb_set_timestamp() and skb_get_timestamp for Kernel
hartkopp [Wed, 18 Apr 2007 13:49:51 +0000 (13:49 +0000)]
Added local skb_set_timestamp() and skb_get_timestamp for Kernel
Versions < 2.6.14 . Tnx to the hint from Simon Kallweit.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@216 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded local kzalloc() function for Kernel Versions < 2.6.14 .
hartkopp [Wed, 18 Apr 2007 13:22:54 +0000 (13:22 +0000)]
Added local kzalloc() function for Kernel Versions < 2.6.14 .
kzalloc() became part of the Mainline Kernel in 2.6.14 .
Tnx to the hint from Simon Kallweit.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@215 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdd return values to can_proto_register() and can_proto_unregister().
thuermann [Tue, 17 Apr 2007 12:05:41 +0000 (12:05 +0000)]
Add return values to can_proto_register() and can_proto_unregister().
Add kernel-doc documentation.
Minor changes to meet kernel coding style.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@214 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFollowing the discussion with tglx the functions can_dev_(un)register get a
hartkopp [Tue, 17 Apr 2007 06:49:00 +0000 (06:49 +0000)]
Following the discussion with tglx the functions can_dev_(un)register get a
return value.
* Moved EXPORT_SYMBOL macro to end of the appropriate function (Codingstyle).
* Added Kerneldoc compatible comments for exported fundctions.
TODO: Check if can_proto_(un)register should also have a return value.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@213 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoUnfix the non-bug in r210.
thuermann [Mon, 16 Apr 2007 13:46:55 +0000 (13:46 +0000)]
Unfix the non-bug in r210.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@212 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFix bug introduced in r210.
thuermann [Mon, 16 Apr 2007 08:16:10 +0000 (08:16 +0000)]
Fix bug introduced in r210.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@211 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoIncreased readability for LKML code review (see comment in r209 log).
hartkopp [Sun, 15 Apr 2007 10:15:36 +0000 (10:15 +0000)]
Increased readability for LKML code review (see comment in r209 log).

git-svn-id: svn://svn.berlios.de//socketcan/trunk@210 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoCleaned up the code according to the hints from a code review with
hartkopp [Sat, 14 Apr 2007 19:28:34 +0000 (19:28 +0000)]
Cleaned up the code according to the hints from a code review with
Thomas Gleixner. Removed many goto's and variable assignments within
conditions for that reason. Usage of kzalloc, etc ...
TODO:
- Add kernel doc comments for structs & public (global) functions
- Find a solution for the RCS / version.h stuff (together with Urs)
- Sort the functions to reduce forward declarations for static functions.
- Check for pr_debug as a replacement for local DBG macros
- And some more details on my list ...

git-svn-id: svn://svn.berlios.de//socketcan/trunk@209 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoRemoved hardcoded CONFIG_CAN_DEBUG_DEVICES.
hartkopp [Fri, 13 Apr 2007 14:13:59 +0000 (14:13 +0000)]
Removed hardcoded CONFIG_CAN_DEBUG_DEVICES.
Cosmetics in information printk.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@208 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoMoved the work from branches/ha/candrv to trunk.
hartkopp [Fri, 13 Apr 2007 14:00:16 +0000 (14:00 +0000)]
Moved the work from branches/ha/candrv to trunk.
Added support for @$%&! Intel i82527 controller.
Added hardware abstraction layer inspired by the OCAN i82527 driver.
Therefore reworked the SJA1000 driver. Comments / KConfig / etc.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@207 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFix r189 to make sure it also works for people who didn't add the slcan
rschwebel [Mon, 26 Mar 2007 06:39:20 +0000 (06:39 +0000)]
Fix r189 to make sure it also works for people who didn't add the slcan
line discipline. If you want to build the slcan module, just run

make CONFIG_CAN_SLCAN={y,m}

from the 2.6 directory.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@192 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agomake sja100 driver compatible to top of tree kernels
rschwebel [Fri, 23 Mar 2007 08:33:20 +0000 (08:33 +0000)]
make sja100 driver compatible to top of tree kernels

git-svn-id: svn://svn.berlios.de//socketcan/trunk@191 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years ago* add toplevel makefile
rschwebel [Fri, 23 Mar 2007 08:32:41 +0000 (08:32 +0000)]
* add toplevel makefile
* make sure 'make && make clean' is consistent

git-svn-id: svn://svn.berlios.de//socketcan/trunk@190 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoadded slcan to 'all' target
rschwebel [Fri, 23 Mar 2007 08:29:04 +0000 (08:29 +0000)]
added slcan to 'all' target

git-svn-id: svn://svn.berlios.de//socketcan/trunk@189 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdd default path for KERNELDIR.
thuermann [Mon, 19 Mar 2007 13:11:05 +0000 (13:11 +0000)]
Add default path for KERNELDIR.
Add diff files for 2.6.20, 2.6.20.3, and 2.6.21-rc4.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@187 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoRemove superfluous close;
thuermann [Mon, 19 Mar 2007 13:07:23 +0000 (13:07 +0000)]
Remove superfluous close;

git-svn-id: svn://svn.berlios.de//socketcan/trunk@186 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdd a quick'n'dirty script to generate a kernel patch file.
thuermann [Mon, 19 Mar 2007 13:03:37 +0000 (13:03 +0000)]
Add a quick'n'dirty script to generate a kernel patch file.
Needs a list of files to be added on stdin and currently also a diff file
for the kernel version the patch is to be generated for.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@185 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoDue to several complains about the 'failing make' the compilation of the
hartkopp [Tue, 13 Mar 2007 21:31:59 +0000 (21:31 +0000)]
Due to several complains about the 'failing make' the compilation of the
slcan-driver is now removed as part of the 'all' target.
Not everyone knows 'make -k' and as long as the defines for N_SLCAN are not
commonly defined in the Kernel you have to build the slcan-driver as an extra
target: 'make slcan'
After downloading fresh source code a failing 'make' doesn't smell well :-/

git-svn-id: svn://svn.berlios.de//socketcan/trunk@184 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoApplied patch from Eberhard Stoll to fix MSCAN TX timeout problems:
hartkopp [Mon, 12 Mar 2007 20:33:38 +0000 (20:33 +0000)]
Applied patch from Eberhard Stoll to fix MSCAN TX timeout problems:
---
Now it uses only one tx buffer, all others are unused.
For me this seems to be the best way, especially after i read the new
RevB ERRATA sheet. Purging the pending can frame is done via CANTARQ
register.
---
Tnx to Eberhard for the contribution!

git-svn-id: svn://svn.berlios.de//socketcan/trunk@183 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoForgot to use kv to get rid of the #ifdef LINUX_VERION_CODE stuff.
hartkopp [Fri, 9 Mar 2007 16:35:09 +0000 (16:35 +0000)]
Forgot to use kv to get rid of the #ifdef LINUX_VERION_CODE stuff.
Now it's fixed.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@182 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded patches for socketcan Revision 180 for the current Kernel 2.6.21-rc3 .
hartkopp [Fri, 9 Mar 2007 15:16:00 +0000 (15:16 +0000)]
Added patches for socketcan Revision 180 for the current Kernel 2.6.21-rc3 .

git-svn-id: svn://svn.berlios.de//socketcan/trunk@181 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFor the first step into the mainstream kernel, we only provide the VCAN driver
hartkopp [Fri, 9 Mar 2007 07:52:21 +0000 (07:52 +0000)]
For the first step into the mainstream kernel, we only provide the VCAN driver
to get all the relevant infrastructure for CAN network drivers.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@180 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded can_id depended filter mask generation for can_rx_register() to
hartkopp [Fri, 9 Mar 2007 07:36:49 +0000 (07:36 +0000)]
Added can_id depended filter mask generation for can_rx_register() to
get the best masking value for a given single can_id.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@179 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoIntroduced can_core.h analogue to linux/can/core.h in Kernel 2.6 tree.
hartkopp [Thu, 8 Mar 2007 12:28:39 +0000 (12:28 +0000)]
Introduced can_core.h analogue to linux/can/core.h in Kernel 2.6 tree.
Updated dates in copyright notices. Cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@178 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoMoved definition and prototypes for for CAN protocol modules using the PF_CAN
hartkopp [Thu, 8 Mar 2007 11:02:43 +0000 (11:02 +0000)]
Moved definition and prototypes for for CAN protocol modules using the PF_CAN
core module into linux/can/core.h to be public visible for external
compilation. Thanks to Urs for the hint and advisory.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@177 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded some comments in raw.h and bcm.h
hartkopp [Wed, 7 Mar 2007 16:12:46 +0000 (16:12 +0000)]
Added some comments in raw.h and bcm.h

git-svn-id: svn://svn.berlios.de//socketcan/trunk@176 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoRevert change r171 since kv can now handle these other comparison ops.
thuermann [Wed, 7 Mar 2007 14:29:02 +0000 (14:29 +0000)]
Revert change r171 since kv can now handle these other comparison ops.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@175 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoImplement comparison ops <, <=, and > in kv.
thuermann [Wed, 7 Mar 2007 14:27:36 +0000 (14:27 +0000)]
Implement comparison ops <, <=, and > in kv.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@174 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFixed Makefiles to compile test-apps and can-utils again.
hartkopp [Mon, 5 Mar 2007 21:58:28 +0000 (21:58 +0000)]
Fixed Makefiles to compile test-apps and can-utils again.
Added new commandline parameter (linediscipline value) to slcan_attach.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@173 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoRemoved obsolete empty lines in LINUX_VERSION_CODE conditions to get a nicer
hartkopp [Mon, 5 Mar 2007 15:36:33 +0000 (15:36 +0000)]
Removed obsolete empty lines in LINUX_VERSION_CODE conditions to get a nicer
code output from the 'kv' script.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@172 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoChanged the LINUX_VERSION_CODE conditions to use the trunk/kv script from Urs
hartkopp [Mon, 5 Mar 2007 15:25:35 +0000 (15:25 +0000)]
Changed the LINUX_VERSION_CODE conditions to use the trunk/kv script from Urs
for an automated Kernel patch generation.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@171 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoVersion 2.0.0-pre6 - On the way to be posted on the LKML netdev ...
hartkopp [Mon, 5 Mar 2007 13:58:26 +0000 (13:58 +0000)]
Version 2.0.0-pre6 - On the way to be posted on the LKML netdev ...

git-svn-id: svn://svn.berlios.de//socketcan/trunk@170 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoDefined ARPHARD_CAN as 280 (formerly 804) due to my RFC on the socketcan-core
hartkopp [Mon, 5 Mar 2007 13:55:34 +0000 (13:55 +0000)]
Defined ARPHARD_CAN as 280 (formerly 804) due to my RFC on the socketcan-core
mailinglist. Had a phonecall with Marc who sees no problem with ARPHRD_CAN 280

git-svn-id: svn://svn.berlios.de//socketcan/trunk@169 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoBackported CodingStyles changes to kernel 2.4 tree.
hartkopp [Mon, 5 Mar 2007 13:33:59 +0000 (13:33 +0000)]
Backported CodingStyles changes to kernel 2.4 tree.
Cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@168 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoReformated to meet Linux Documentation/Codingstyle (e.g. 80 chars/Line).
hartkopp [Mon, 5 Mar 2007 12:34:43 +0000 (12:34 +0000)]
Reformated to meet Linux Documentation/Codingstyle (e.g. 80 chars/Line).
Cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@167 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded slim Makefiles that are working inside the kernel tree.
hartkopp [Mon, 5 Mar 2007 10:23:51 +0000 (10:23 +0000)]
Added slim Makefiles that are working inside the kernel tree.
For the first step only vcan and slcan drivers are on the roadmap for
integration into the kernel. IMHO the device drivers and the ioctl interface
as well as the CAN driver lib (candev.ko) from Andrey should be focussed
when we're stable integrated into the kernel tree.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@166 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoMoved the definitions of AF_CAN, PF_CAN, ARPHRD_CAN and ETH_P_CAN out of the
hartkopp [Mon, 5 Mar 2007 10:14:18 +0000 (10:14 +0000)]
Moved the definitions of AF_CAN, PF_CAN, ARPHRD_CAN and ETH_P_CAN out of the
file can.h to make can.h fit for a kernel integration path.
Therefore i added the 'hack' to the Makefiles which now contain the missing
defines. Maybe there will be a better solution in the future (when CAN is
part of the kernel). But currently it helps to maintain sourcecode to be
copied right into the kernel source tree.
Additionally added address structures for isotp and bap in sockaddr_can.
Cleanups. Cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@165 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoMoved protoypes for the CAN network layer core from the public visible
hartkopp [Mon, 5 Mar 2007 08:45:45 +0000 (08:45 +0000)]
Moved protoypes for the CAN network layer core from the public visible
can/can.h to the local can/af_can.h (KERNEL 2.4 BACKPORT)

git-svn-id: svn://svn.berlios.de//socketcan/trunk@164 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoMoved protoypes for the CAN network layer core from the public visible
hartkopp [Mon, 5 Mar 2007 08:38:07 +0000 (08:38 +0000)]
Moved protoypes for the CAN network layer core from the public visible
linux/can.h to the local net/can/af_can.h

git-svn-id: svn://svn.berlios.de//socketcan/trunk@163 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoShortened the include files copyright and license header to Linux kernel style
hartkopp [Mon, 5 Mar 2007 08:25:02 +0000 (08:25 +0000)]
Shortened the include files copyright and license header to Linux kernel style

git-svn-id: svn://svn.berlios.de//socketcan/trunk@162 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded SLCAN-driver in Kconfig.
hartkopp [Mon, 5 Mar 2007 07:41:22 +0000 (07:41 +0000)]
Added SLCAN-driver in Kconfig.
Whitepace fixes.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@161 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoMinor change for readability.
thuermann [Sun, 4 Mar 2007 21:28:54 +0000 (21:28 +0000)]
Minor change for readability.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@160 030b6a49-0b11-0410-94ab-b0dab22257f2