]> rtime.felk.cvut.cz Git - socketcan-devel.git/log
socketcan-devel.git
16 years agoMoved EXPORT_SYMTAB out of af_can.c
hartkopp [Fri, 14 Dec 2007 11:23:03 +0000 (11:23 +0000)]
Moved EXPORT_SYMTAB out of af_can.c

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

16 years agoPut EXPORT_SYMBOL to appropriat function definition.
hartkopp [Fri, 14 Dec 2007 11:07:09 +0000 (11:07 +0000)]
Put EXPORT_SYMBOL to appropriat function definition.
Reorder include file order.

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

16 years agoRemove obsolete can_dev_(un)register() notifier handling.
hartkopp [Fri, 14 Dec 2007 10:55:10 +0000 (10:55 +0000)]
Remove obsolete can_dev_(un)register() notifier handling.
Changed version string to -pre3.

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

16 years agofixed inclusion order.
hartkopp [Fri, 14 Dec 2007 10:41:55 +0000 (10:41 +0000)]
fixed inclusion order.

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

16 years agoSome add-ons for older 2.4.x kernels.
hartkopp [Fri, 14 Dec 2007 10:39:33 +0000 (10:39 +0000)]
Some add-ons for older 2.4.x kernels.

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

16 years agoadded missing __read_mostly
hartkopp [Fri, 14 Dec 2007 10:26:12 +0000 (10:26 +0000)]
added missing __read_mostly

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

16 years agoReworked 2.6 raw.c analogue to bcm.c to habe minimum changes to 2.6 source.
hartkopp [Fri, 14 Dec 2007 10:24:23 +0000 (10:24 +0000)]
Reworked 2.6 raw.c analogue to bcm.c to habe minimum changes to 2.6 source.
TODO: af_can.c (especially handling for the loopback/echo recognition)

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

16 years agoAdded __read_mostly to compat.h and use it in bcm.c .
hartkopp [Fri, 14 Dec 2007 10:14:57 +0000 (10:14 +0000)]
Added __read_mostly to compat.h and use it in bcm.c .

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

16 years agoExtended compat.h to archive minimum differences between bcm.c 2.4 and 2.6
hartkopp [Fri, 14 Dec 2007 09:50:57 +0000 (09:50 +0000)]
Extended compat.h to archive minimum differences between bcm.c 2.4 and 2.6
source code.
Changes in bcm.c:
- use of Kernel list implementation.
- renamed private struct bcm_opt to bcm_sock.
- adapted notifier handling.

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

16 years agoAdded some checks.
hartkopp [Thu, 13 Dec 2007 14:17:19 +0000 (14:17 +0000)]
Added some checks.

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

16 years agoUpdated includes.
hartkopp [Thu, 13 Dec 2007 12:21:28 +0000 (12:21 +0000)]
Updated includes.
Updated bcm_send_to_user().
Cosmetics.

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

16 years agouse datagram_poll directly.
hartkopp [Thu, 13 Dec 2007 10:10:02 +0000 (10:10 +0000)]
use datagram_poll directly.

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

16 years agocosmetics.
hartkopp [Thu, 13 Dec 2007 10:01:32 +0000 (10:01 +0000)]
cosmetics.

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

16 years agoAdded missing check.
hartkopp [Thu, 13 Dec 2007 09:48:09 +0000 (09:48 +0000)]
Added missing check.

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

16 years agoBackported special handling for nframes = 1 to reduce kmallocs in the common
hartkopp [Thu, 13 Dec 2007 07:37:24 +0000 (07:37 +0000)]
Backported special handling for nframes = 1 to reduce kmallocs in the common
use-case.

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

16 years agoUse of gfp_any() and kzalloc() and some more cosmetical changes.
hartkopp [Wed, 12 Dec 2007 15:41:11 +0000 (15:41 +0000)]
Use of gfp_any() and kzalloc() and some more cosmetical changes.
Check for CAN netdevice in bcm_connect().

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

16 years agoCosmetics to come nearer to 2.6 source.
hartkopp [Wed, 12 Dec 2007 15:06:05 +0000 (15:06 +0000)]
Cosmetics to come nearer to 2.6 source.

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

16 years agoUpdated bcm.c to use mod_timer() and setup_timer().
hartkopp [Wed, 12 Dec 2007 13:55:36 +0000 (13:55 +0000)]
Updated bcm.c to use mod_timer() and setup_timer().

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

16 years agoremoved unsupported __nocast directive.
hartkopp [Wed, 12 Dec 2007 13:54:42 +0000 (13:54 +0000)]
removed unsupported __nocast directive.

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

16 years agoUpdated for Kernel 2.4.
hartkopp [Wed, 12 Dec 2007 13:15:17 +0000 (13:15 +0000)]
Updated for Kernel 2.4.

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

16 years agocopy 2.6 compat.h to 2.4 tree
hartkopp [Wed, 12 Dec 2007 12:52:01 +0000 (12:52 +0000)]
copy 2.6 compat.h to 2.4 tree

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

16 years agoAdded missing property "Id"
hartkopp [Wed, 12 Dec 2007 12:27:59 +0000 (12:27 +0000)]
Added missing property "Id"

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

16 years agoMoved vcan driver to 2.4/drivers/net/can.
hartkopp [Wed, 12 Dec 2007 12:08:29 +0000 (12:08 +0000)]
Moved vcan driver to 2.4/drivers/net/can.
TODO: Make 2.4/drivers/net/can/Makefile compile all drivers in one process.

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

16 years agoMake old 2.4 drivers compile again.
hartkopp [Wed, 12 Dec 2007 12:00:02 +0000 (12:00 +0000)]
Make old 2.4 drivers compile again.

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

16 years agoMoved 2.4 drivers to 2.4/drivers/net/can
hartkopp [Wed, 12 Dec 2007 11:45:34 +0000 (11:45 +0000)]
Moved 2.4 drivers to 2.4/drivers/net/can

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

16 years agoCreated 2.4/drivers/net/can directory.
hartkopp [Wed, 12 Dec 2007 11:44:22 +0000 (11:44 +0000)]
Created 2.4/drivers/net/can directory.

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

16 years agoupdated relative path.
hartkopp [Wed, 12 Dec 2007 11:42:10 +0000 (11:42 +0000)]
updated relative path.

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

16 years agoMoved directory 2.4/can to 2.4/net/can.
hartkopp [Wed, 12 Dec 2007 11:41:09 +0000 (11:41 +0000)]
Moved directory 2.4/can to 2.4/net/can.

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

16 years agoAdded net directory to move 2.4/can to 2.4/net/can.
hartkopp [Wed, 12 Dec 2007 11:40:19 +0000 (11:40 +0000)]
Added net directory to move 2.4/can to 2.4/net/can.

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

16 years agoMake use of backported 2.6 includes.
hartkopp [Wed, 12 Dec 2007 09:55:16 +0000 (09:55 +0000)]
Make use of backported 2.6 includes.
Changed procfs files analogue to 2.6.
Moved tv2jiffies function to bcm.c.
Remove obsolete includes.

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

16 years agocopy 2.6 includes to 2.4 tree as startpoint for backporting
hartkopp [Wed, 12 Dec 2007 08:02:44 +0000 (08:02 +0000)]
copy 2.6 includes to 2.4 tree as startpoint for backporting

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

16 years ago- allow timout to be zero, which means timeout is off.
hartkopp [Mon, 10 Dec 2007 15:47:01 +0000 (15:47 +0000)]
- allow timout to be zero, which means timeout is off.

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

16 years agoSome more cosmetics (to be continued).
hartkopp [Mon, 10 Dec 2007 15:37:02 +0000 (15:37 +0000)]
Some more cosmetics (to be continued).

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

16 years agoMoved bcm_init() analogue to Kernel 2.6 bcm.c
hartkopp [Mon, 10 Dec 2007 15:19:57 +0000 (15:19 +0000)]
Moved bcm_init() analogue to Kernel 2.6 bcm.c

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

16 years agoMake GET_U64 macro an inline function.
hartkopp [Mon, 10 Dec 2007 15:17:45 +0000 (15:17 +0000)]
Make GET_U64 macro an inline function.
Add / beautify per function comments.

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

16 years agoRemove obsolete capabilities defines.
hartkopp [Mon, 10 Dec 2007 14:54:57 +0000 (14:54 +0000)]
Remove obsolete capabilities defines.

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

16 years agoUpdated startup banner. Removed debug code.
hartkopp [Mon, 10 Dec 2007 14:45:04 +0000 (14:45 +0000)]
Updated startup banner. Removed debug code.

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

16 years agoremoved IDENT defines.
hartkopp [Mon, 10 Dec 2007 14:03:34 +0000 (14:03 +0000)]
removed IDENT defines.
Backported module init banners and CAN version info.

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

16 years agoChange can_proto_register() to return an error code.
thuermann [Mon, 10 Dec 2007 10:23:37 +0000 (10:23 +0000)]
Change can_proto_register() to return an error code.

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

16 years agoSome more white-space changes.
thuermann [Mon, 10 Dec 2007 09:57:20 +0000 (09:57 +0000)]
Some more white-space changes.

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

16 years agoVarious fixes to compile the code again after the big code reordering.
hartkopp [Mon, 10 Dec 2007 07:36:03 +0000 (07:36 +0000)]
Various fixes to compile the code again after the big code reordering.

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

16 years agoFixed obviously missing parenthesis.
hartkopp [Sun, 9 Dec 2007 20:26:21 +0000 (20:26 +0000)]
Fixed obviously missing parenthesis.

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

16 years agoReduce clutter by eliminating kernel version dependencies.
thuermann [Sat, 8 Dec 2007 22:49:46 +0000 (22:49 +0000)]
Reduce clutter by eliminating kernel version dependencies.

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

16 years agoMove timer initialization from proc.c to af_can.c.
thuermann [Sat, 8 Dec 2007 22:28:12 +0000 (22:28 +0000)]
Move timer initialization from proc.c to af_can.c.

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

16 years agoDefine global vars in af_can.c and declare them in af_can.h.
thuermann [Sat, 8 Dec 2007 22:27:50 +0000 (22:27 +0000)]
Define global vars in af_can.c and declare them in af_can.h.

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

16 years agoChange some function arguements and return types.
thuermann [Sat, 8 Dec 2007 22:27:27 +0000 (22:27 +0000)]
Change some function arguements and return types.

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

16 years agoEliminate code duplication.
thuermann [Sat, 8 Dec 2007 22:26:44 +0000 (22:26 +0000)]
Eliminate code duplication.

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

16 years agoRemove debug code.
thuermann [Sat, 8 Dec 2007 22:26:17 +0000 (22:26 +0000)]
Remove debug code.

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

16 years agoRename variables.
thuermann [Sat, 8 Dec 2007 22:25:35 +0000 (22:25 +0000)]
Rename variables.

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

16 years agoRemove some goto-statements.
thuermann [Sat, 8 Dec 2007 22:25:12 +0000 (22:25 +0000)]
Remove some goto-statements.

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

16 years agoEliminate assignment exprs in if-conditions.
thuermann [Sat, 8 Dec 2007 22:24:44 +0000 (22:24 +0000)]
Eliminate assignment exprs in if-conditions.

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

16 years agoRemove unnecessary initializations.
thuermann [Sat, 8 Dec 2007 22:24:17 +0000 (22:24 +0000)]
Remove unnecessary initializations.

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

16 years agoChange comments.
thuermann [Sat, 8 Dec 2007 22:23:35 +0000 (22:23 +0000)]
Change comments.

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

16 years agoWhite-space changes only.
thuermann [Sat, 8 Dec 2007 22:22:46 +0000 (22:22 +0000)]
White-space changes only.

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

16 years agoThis is the first patch of a series to backport changes from 2.6 to 2.4.
thuermann [Sat, 8 Dec 2007 22:21:52 +0000 (22:21 +0000)]
This is the first patch of a series to backport changes from 2.6 to 2.4.
Reorder functions and remove prototypes.

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

16 years agoAdded canlogserver programmed by Andre Naujoks.
hartkopp [Fri, 30 Nov 2007 13:35:01 +0000 (13:35 +0000)]
Added canlogserver programmed by Andre Naujoks.

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

16 years agoRevert bug fix accidently applied for rev. 570
wolf [Fri, 30 Nov 2007 13:00:20 +0000 (13:00 +0000)]
Revert bug fix accidently applied for rev. 570

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

16 years agoAdd local loopback point and move naming and coding-style issues to the top
wolf [Fri, 30 Nov 2007 12:42:36 +0000 (12:42 +0000)]
Add local loopback point and move naming and coding-style issues to the top

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

16 years agoRenamed CONFIG_CAN_* for 'old' can drivers.
hartkopp [Fri, 23 Nov 2007 18:52:27 +0000 (18:52 +0000)]
Renamed  CONFIG_CAN_* for 'old' can drivers.

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

16 years agoUpdated Kconfig for 'old' sja1000 and i82527 drivers.
hartkopp [Fri, 23 Nov 2007 18:44:32 +0000 (18:44 +0000)]
Updated Kconfig for 'old' sja1000 and i82527 drivers.

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

16 years agoMake 'old' drivers compile again.
hartkopp [Fri, 23 Nov 2007 18:34:22 +0000 (18:34 +0000)]
Make 'old' drivers compile again.

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

16 years agoMoved old drivers to 'old' directory.
hartkopp [Fri, 23 Nov 2007 18:29:44 +0000 (18:29 +0000)]
Moved old drivers to 'old' directory.

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

16 years agoAdded new directory for 'old' sja1000 and i82527 drivers.
hartkopp [Fri, 23 Nov 2007 18:11:24 +0000 (18:11 +0000)]
Added new directory for 'old' sja1000 and i82527 drivers.

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

16 years agoAdd TODO and wish list
wolf [Fri, 23 Nov 2007 07:53:43 +0000 (07:53 +0000)]
Add TODO and wish list

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

16 years agoJust a tiny fix before it goes into the trash bin ;-)
hartkopp [Thu, 22 Nov 2007 10:35:03 +0000 (10:35 +0000)]
Just a tiny fix before it goes into the trash bin ;-)

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

16 years agoChanged color order at colorized output.
hartkopp [Tue, 20 Nov 2007 18:37:30 +0000 (18:37 +0000)]
Changed color order at colorized output.
Remove index cache zombies when unloading CAN drivers.
Modified index cache failure message.

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

16 years agoUpdate patch series to r560.
thuermann [Fri, 16 Nov 2007 15:19:36 +0000 (15:19 +0000)]
Update patch series to r560.

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

16 years agoRemove trailing white-space.
thuermann [Fri, 16 Nov 2007 13:57:29 +0000 (13:57 +0000)]
Remove trailing white-space.

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

16 years agoUpdate version string.
thuermann [Fri, 16 Nov 2007 13:38:16 +0000 (13:38 +0000)]
Update version string.

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

16 years agoUse of setup_timer().
hartkopp [Fri, 16 Nov 2007 10:08:00 +0000 (10:08 +0000)]
Use of setup_timer().

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

16 years agoUse of mod_timer() instead of delete_timer() / add_timer()
hartkopp [Fri, 16 Nov 2007 09:55:15 +0000 (09:55 +0000)]
Use of mod_timer() instead of delete_timer() / add_timer()

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

16 years agoUse NETDEV_TX_OK instead 0 for return value.
thuermann [Fri, 16 Nov 2007 09:13:58 +0000 (09:13 +0000)]
Use NETDEV_TX_OK instead 0 for return value.

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

16 years agoWhite-space: break a long line.
thuermann [Fri, 16 Nov 2007 09:13:20 +0000 (09:13 +0000)]
White-space: break a long line.

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

16 years agoAdd can_ prefix to some global variables.
thuermann [Fri, 16 Nov 2007 09:00:05 +0000 (09:00 +0000)]
Add can_ prefix to some global variables.

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

16 years agoMade non static rx_dev_list namespace safe -> can_rx_dev_list.
hartkopp [Fri, 16 Nov 2007 08:37:42 +0000 (08:37 +0000)]
Made non static rx_dev_list namespace safe -> can_rx_dev_list.

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

16 years agoFixed missed initialisation of non static value which is used in proc.c
hartkopp [Fri, 16 Nov 2007 08:31:29 +0000 (08:31 +0000)]
Fixed missed initialisation of non static value which is used in proc.c

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

16 years agoMoved init_timer() and add_timer() for timer setup to
hartkopp [Fri, 16 Nov 2007 08:24:23 +0000 (08:24 +0000)]
Moved init_timer() and add_timer() for timer setup to
setup_timer() and mod_timer() to prevent comments from Stephen Hemminger
on netdev ML ...

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

16 years agoSome more cosmetics in comments.
hartkopp [Thu, 15 Nov 2007 14:41:33 +0000 (14:41 +0000)]
Some more cosmetics in comments.

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

16 years agoCosmetics.
hartkopp [Thu, 15 Nov 2007 14:14:07 +0000 (14:14 +0000)]
Cosmetics.

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

16 years agoOops, Kconfig got lost in the last commit.
thuermann [Thu, 15 Nov 2007 13:39:33 +0000 (13:39 +0000)]
Oops, Kconfig got lost in the last commit.

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

16 years agoRemove debug code completely to stop endless discussions on netdev ML.
thuermann [Thu, 15 Nov 2007 13:38:03 +0000 (13:38 +0000)]
Remove debug code completely to stop endless discussions on netdev ML.
The code is quite stable anyway, so we don't need debugging anymore.

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

16 years agoDue to discussions on netdev ML the CAN core debugging facilities are
hartkopp [Thu, 15 Nov 2007 13:00:14 +0000 (13:00 +0000)]
Due to discussions on netdev ML the CAN core debugging facilities are
removed. The stuff is quite stable and clarified now - therfore the
debugging macros became obsolete anyhow.

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

16 years agoChange DBG macros to use do-while(0).
thuermann [Thu, 15 Nov 2007 12:56:54 +0000 (12:56 +0000)]
Change DBG macros to use do-while(0).
Fix white-space.

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

16 years agoRemoved obsolete code for software netdevices.
hartkopp [Wed, 14 Nov 2007 13:12:20 +0000 (13:12 +0000)]
Removed obsolete code for software netdevices.
Corrected vcan_tx() return value to NETDEV_TX_OK.
Thanks to Patrick McHardy for the hint.

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

16 years agoRebase patch series to net-2.6.25 and update to r542.
thuermann [Wed, 14 Nov 2007 12:12:20 +0000 (12:12 +0000)]
Rebase patch series to net-2.6.25 and update to r542.

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

16 years agoRename some variables for readability.
thuermann [Wed, 7 Nov 2007 13:57:16 +0000 (13:57 +0000)]
Rename some variables for readability.

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

16 years agoAdded install target.
hartkopp [Wed, 7 Nov 2007 13:31:19 +0000 (13:31 +0000)]
Added install target.

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

16 years agoround_jiffies() has been introduced in 2.6.20.
hartkopp [Mon, 5 Nov 2007 12:58:26 +0000 (12:58 +0000)]
round_jiffies() has been introduced in 2.6.20.
Added version depended code for older Kernels.

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

16 years agoskb_reset_*_header(skb) has been introduced in 2.6.22.
hartkopp [Mon, 5 Nov 2007 12:30:55 +0000 (12:30 +0000)]
skb_reset_*_header(skb) has been introduced in 2.6.22.
Added version depended code for older Kernels.

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

16 years agoThe sk_alloc() function call has two changes in 2.6.24:
hartkopp [Sat, 3 Nov 2007 21:12:47 +0000 (21:12 +0000)]
The sk_alloc() function call has two changes in 2.6.24:
1. add net namespaces
2. removal of 'zero_it' argument

Added the second point here.

Reference in net-2.6 git:
http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.git;a=commit;h=6257ff2177ff02d7f260a7a501876aa41cb9a9f6

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

16 years agoAdded include of linux/version.h .
hartkopp [Sat, 3 Nov 2007 21:07:25 +0000 (21:07 +0000)]
Added include of linux/version.h .

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

16 years agoAdded simple test programm for remote BCM access.
hartkopp [Sun, 28 Oct 2007 21:38:32 +0000 (21:38 +0000)]
Added simple test programm for remote BCM access.

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

16 years agoNew version 20071027.
hartkopp [Sat, 27 Oct 2007 15:09:23 +0000 (15:09 +0000)]
New version 20071027.

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

16 years agoAdded some Kernel version depended stuff for 2.6.24
hartkopp [Sat, 27 Oct 2007 15:06:31 +0000 (15:06 +0000)]
Added some Kernel version depended stuff for 2.6.24

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

16 years agoRemoved the compiler warning:
hartkopp [Sat, 27 Oct 2007 14:56:04 +0000 (14:56 +0000)]
Removed the compiler warning:
378: warning: `d' may be used uninitialized in this function
The compiler was right :)

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

16 years agoUse sock_alloc_send_skb() instead of alloc_skb() to allocate a socket buffer,
thuermann [Mon, 22 Oct 2007 12:03:16 +0000 (12:03 +0000)]
Use sock_alloc_send_skb() instead of alloc_skb() to allocate a socket buffer,
as suggested by Marc Klein-Budde.

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

16 years agonuke SET_MODULE_OWNER() macro which is a nop in Kernel 2.6.
hartkopp [Fri, 19 Oct 2007 07:38:29 +0000 (07:38 +0000)]
nuke SET_MODULE_OWNER() macro which is a nop in Kernel 2.6.

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

16 years agoThe definition of IFF_ECHO is part of the socketcan patchset for the
hartkopp [Fri, 19 Oct 2007 07:32:59 +0000 (07:32 +0000)]
The definition of IFF_ECHO is part of the socketcan patchset for the
mainline kernel. As this patchset didn't go into 2.6.24 the
KERNEL_VERSION depended definition has to be adjusted ...

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

16 years agoReverted the changes from r528 as 'ret' was set every time at socket
hartkopp [Thu, 18 Oct 2007 02:27:15 +0000 (02:27 +0000)]
Reverted the changes from r528 as 'ret' was set every time at socket
creation time even in the unlikely case that these protocol checks fail.
Additionally it was worse in readability.
Updated the comment for the whole protocol checks _code block_.
Therefore this comment is not directly placed before the first check.
I hope this was enough explanation why i reverted r528 like this.
If not, we should discuss it outside the SVN.
Oliver

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

16 years agoAdd comment, minor cleanup.
thuermann [Wed, 17 Oct 2007 18:38:48 +0000 (18:38 +0000)]
Add comment, minor cleanup.

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