]>
rtime.felk.cvut.cz Git - lincan.git/log
Jiri Vanek [Wed, 25 Jan 2012 18:42:30 +0000 (19:42 +0100)]
Added initialization of struct usbcan_message flags when receiving and transmitting URBs are allocated. The USBCAN_MESSAGE bits was also reduced.
Jiri Vanek [Thu, 29 Dec 2011 09:11:12 +0000 (10:11 +0100)]
Receiving CAN messages with usage of queue system from LinCAN - first version. Attempt to keep the functionality of the previous project (can-usb1) in the main.c file for possible future choice of which hardware to use.
Jiri Vanek [Thu, 22 Dec 2011 16:02:05 +0000 (17:02 +0100)]
Transmitting CAN messages with usage of queue system from LinCAN - first version. Attempt to keep the functionality of the previous project (can-usb1) in the main.c file for possible future choice of which hardware to use.
Jiri Vanek [Mon, 19 Dec 2011 12:41:08 +0000 (13:41 +0100)]
first version, only transmitting CAN messages without usage of queue system from LinCAN
Pavel Pisa [Mon, 10 Oct 2011 08:07:28 +0000 (10:07 +0200)]
Merge branch 'master' into can-usb1
Pavel Pisa [Sun, 9 Oct 2011 22:10:58 +0000 (00:10 +0200)]
LinCAN version and documentation updated to 0.3.5 and build portability fixes.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Sun, 2 Oct 2011 23:25:48 +0000 (01:25 +0200)]
More cleanups in CANUSB converter embedded code.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Sat, 1 Oct 2011 20:46:19 +0000 (22:46 +0200)]
Merge branch 'master' into can-usb1
Pavel Pisa [Sat, 1 Oct 2011 20:44:53 +0000 (22:44 +0200)]
Corrected CAN queues locking for corner case - i.e. partially connected queue.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Sat, 1 Oct 2011 20:37:50 +0000 (22:37 +0200)]
USBCAN converter code updated to match full version of LinCAN sources.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Sat, 1 Oct 2011 18:08:22 +0000 (20:08 +0200)]
Merge branch 'master' into can-usb1
Pavel Pisa [Sat, 1 Oct 2011 17:55:34 +0000 (19:55 +0200)]
LinCAN sources go through big white-space cleanup.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Sat, 1 Oct 2011 16:29:51 +0000 (18:29 +0200)]
Merge branch 'master' into can-usb1
Pavel Pisa [Sat, 1 Oct 2011 16:28:56 +0000 (18:28 +0200)]
Adjust LinCAN sources to compile for 3.x Linux kernel.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Sat, 1 Oct 2011 15:43:17 +0000 (17:43 +0200)]
Merge branch 'master' into can-usb1
Pavel Pisa [Sat, 1 Oct 2011 15:42:18 +0000 (17:42 +0200)]
Linux 3.x kernel KBUILD can be examined by same rules as 2.6.x
Script kernelcfg2mk and Makefile.rules updated
form OMK project GIT repository at RTIME
git clone git://rtime.felk.cvut.cz/omk.git
http://rtime.felk.cvut.cz/gitweb/omk.git
OMK documentation can be found at OMK project homepage
http://rtime.felk.cvut.cz/omk/
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Sat, 1 Oct 2011 15:38:33 +0000 (17:38 +0200)]
LinCAN PCI cards support updated to support PCI devices reference counting.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Sat, 1 Oct 2011 12:31:17 +0000 (14:31 +0200)]
Configuration to build USBCAN converter on LMC1 board added.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Sat, 1 Oct 2011 12:27:04 +0000 (14:27 +0200)]
Contributed support for LCP17xx devices and PiKRON's LMC1 board.
The support originates from uLAN project sysless repository
and is result of new HPLC instruments development at PiKRON
company.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Sat, 1 Oct 2011 12:22:33 +0000 (14:22 +0200)]
Remove old copy of IAP and LCPIAP code.
The common version for ARM devices located in
arch/arm/generic/libs/iap_kvpbv
directory is used now.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Tue, 27 Sep 2011 20:31:45 +0000 (22:31 +0200)]
Update of system-less architecture and board support code to actual uLAN.sf.net version.
USB<->CAN converter code has been successfully build
by arm-elf-gcc version 4.4.4 from rtime.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Tue, 27 Sep 2011 19:54:05 +0000 (21:54 +0200)]
Embedded OMK rules updated to actual version.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Ing. Jan Kriz [Mon, 18 Apr 2011 08:23:13 +0000 (10:23 +0200)]
Cleaning up chip->chip_data on device unregister
Ing. Jan Kriz [Sun, 17 Apr 2011 17:39:36 +0000 (19:39 +0200)]
reference count for device opens added (helps while asynchronous remove
of the USB device occurs)
Bc. Jan Kriz [Tue, 22 Mar 2011 09:23:57 +0000 (10:23 +0100)]
Change of parameter order in hotplug functions, more debug messages
added
Bc. Jan Kriz [Tue, 22 Mar 2011 09:21:57 +0000 (10:21 +0100)]
Hotplug device support functions renamed
Pavel Pisa [Thu, 7 Oct 2010 16:00:39 +0000 (18:00 +0200)]
Makefile rules updated actual version from from OMK project.
OMK homepage and repository
http://rtime.felk.cvut.cz/omk/
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Fri, 9 Apr 2010 09:08:32 +0000 (11:08 +0200)]
Merge branch 'master' into can-usb1
Pavel Pisa [Fri, 9 Apr 2010 09:08:00 +0000 (11:08 +0200)]
Ensure that do_gettimeofday is declared for some versions.
This is attempt to correct LinCAN build for 2.4.x kernels.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Wed, 7 Apr 2010 12:01:35 +0000 (14:01 +0200)]
Makefile.rules updated to actual OMK version.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Wed, 7 Apr 2010 11:59:27 +0000 (13:59 +0200)]
Makefile.rules updated to OMK current version.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Mon, 29 Mar 2010 13:52:12 +0000 (15:52 +0200)]
The system stub updated from rtime/sysless version.
These changes are required to build with GCC-4.4.3 + NewLib-18
arm-elf toolchain.
Changes provided by Tran Duy Khanh.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Mon, 29 Mar 2010 09:02:14 +0000 (11:02 +0200)]
Embedded Makefile.rules updated to yet newer version.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Mon, 29 Mar 2010 08:58:48 +0000 (10:58 +0200)]
Makefile.rules for embedded build (CAN USB convertor firmware) updated.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Pavel Pisa [Mon, 29 Mar 2010 08:54:24 +0000 (10:54 +0200)]
Merge branch 'master' into can-usb1
Pavel Pisa [Mon, 29 Mar 2010 08:53:29 +0000 (10:53 +0200)]
Makefile.rules and atomic CMPXCHG handling update to support 2.6.33 kernel.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
ppisa [Tue, 9 Feb 2010 22:44:13 +0000 (23:44 +0100)]
Merge branch 'master' into can-usb1
Martin Petera [Tue, 2 Feb 2010 19:20:50 +0000 (20:20 +0100)]
Clean up: Removed fake board mpc5200_midam
Martin Petera [Wed, 13 Jan 2010 15:06:50 +0000 (16:06 +0100)]
Fixed typo in recently added MSCAN code
Martin Petera [Tue, 5 Jan 2010 18:00:07 +0000 (19:00 +0100)]
Added distinguish mechanism between full MPC5200 (used on RYU board) and original MIDAM board
Martin Petera [Tue, 5 Jan 2010 05:10:57 +0000 (06:10 +0100)]
MPC5200 with MSCAN - Beta version
Martin Petera [Wed, 2 Dec 2009 16:20:44 +0000 (17:20 +0100)]
MPC5200 added to build system
Martin Petera [Wed, 2 Dec 2009 16:18:40 +0000 (17:18 +0100)]
Initial MPC5200 support contribution
ppisa [Fri, 7 Aug 2009 16:10:29 +0000 (18:10 +0200)]
Update embedded build script same way as host one.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Fri, 7 Aug 2009 16:05:34 +0000 (18:05 +0200)]
Merge branch 'master' into can-usb1
ppisa [Fri, 7 Aug 2009 16:02:40 +0000 (18:02 +0200)]
Copy right leaf node Makefile even if script started from different directory.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Fri, 7 Aug 2009 15:54:20 +0000 (17:54 +0200)]
The Linux Makefile.rules updated from OMK main repository.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Fri, 13 Mar 2009 00:42:50 +0000 (01:42 +0100)]
USB converter firmware build invocation script updated for DASH.
ppisa [Fri, 13 Mar 2009 00:40:14 +0000 (01:40 +0100)]
Merge branch 'master' into can-usb1
ppisa [Fri, 13 Mar 2009 00:39:27 +0000 (01:39 +0100)]
Build invocation script updated to be compatible with DASH.
Ubuntu users needs that.
ppisa [Fri, 13 Mar 2009 00:38:37 +0000 (01:38 +0100)]
Updated Makefile.rules, kernel compiler flags extraction and build script.
This solves problem with includes pointing to the arch directory
on newer 2.6.x kernels.
ppisa [Sun, 1 Mar 2009 12:54:04 +0000 (13:54 +0100)]
Updated config for UL_USB1 board to wait for boot loader during load.
ppisa [Sun, 1 Mar 2009 10:47:27 +0000 (11:47 +0100)]
Regitration of USB driver targets updated for 2.6.28+ kernels as well.
ppisa [Sun, 1 Mar 2009 10:43:01 +0000 (11:43 +0100)]
Merge branch 'master' into can-usb1
ppisa [Sun, 1 Mar 2009 10:42:35 +0000 (11:42 +0100)]
Merge commit 'sf-ocera-lincan/master'
ppisa [Sun, 1 Mar 2009 11:39:01 +0000 (11:39 +0000)]
LinCAN driver version updated to 0.3.4.
ppisa [Sun, 1 Mar 2009 11:34:26 +0000 (11:34 +0000)]
Simple change to compile LinCAN driver with 2.6.28+ kernels.
ppisa [Sat, 28 Feb 2009 14:19:06 +0000 (14:19 +0000)]
The LinCAN driver license unified according to DCE FEE CTU head and superiors request.
This is horribly long time pending request but I hold it to simplify
merging of contributed changes. But it cannot be hold longer
when new release is in preparation. Excuse me for inconvenience.
ppisa [Sat, 28 Feb 2009 13:23:18 +0000 (14:23 +0100)]
Merge branch 'master' into can-usb1
ppisa [Sat, 28 Feb 2009 13:22:12 +0000 (14:22 +0100)]
Merge commit 'sf-ocera-lincan/master'
ppisa [Tue, 3 Feb 2009 03:06:55 +0000 (04:06 +0100)]
Eliminated busy loop in the USB can sources and thread priority increased.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Mon, 2 Feb 2009 21:06:53 +0000 (22:06 +0100)]
USB LinCAN support reworked to use lists instead of arrays.
This solves problems with incorrect order of received
messages. This version is working, but needs more
cleanups still.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Fri, 30 Jan 2009 19:32:45 +0000 (19:32 +0000)]
Corrected bug caused by "The first round of I/O space pointers separation." patch.
The can_{in,out}{lw} has been mapped to the byte size operations.
The corrected version has been tested on KVASER PCIcan-Q card.
ppisa [Fri, 30 Jan 2009 18:47:04 +0000 (19:47 +0100)]
Merge branch 'master' into can-usb1
ppisa [Fri, 30 Jan 2009 18:45:23 +0000 (19:45 +0100)]
Merge commit 'sf-ocera-lincan/master'
ppisa [Fri, 30 Jan 2009 18:43:31 +0000 (19:43 +0100)]
Make USB loaded image the default variant for usbcan.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Mon, 24 Nov 2008 01:55:49 +0000 (02:55 +0100)]
The simulated data bus access on target simplified.
The functions can_read and can_write has same
parameters order as Linux readb/writeb functions.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Sun, 23 Nov 2008 23:38:36 +0000 (23:38 +0000)]
Added support for ESD PCI/PMC 266 cards.
Board support has to be enabled by CONFIG_OC_LINCAN_CARD_esdpci266=y
in config.omk and hw=esdpci266.
Code has been contributed by Unicontrols company.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Sun, 23 Nov 2008 22:52:27 +0000 (23:52 +0100)]
Merge branch 'master' into can-usb1
Conflicts:
lincan/src/Makefile.omk
ppisa [Sun, 23 Nov 2008 22:46:25 +0000 (23:46 +0100)]
Merge commit 'sf-ocera-lincan/master'
ppisa [Sun, 23 Nov 2008 21:54:52 +0000 (21:54 +0000)]
The old "pikronisa" card support renamed to "gensja1000mm".
The "gensja1000mm" can be used with cards which provide
directly mapped SJA1000 chip access. The parameter
clockfreq=24000 is required for "pikronisa" cards.
The clocks default frequency is set to 16 MHz.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Sun, 23 Nov 2008 21:48:22 +0000 (21:48 +0000)]
Adding usbcan file structure
ppisa [Sun, 23 Nov 2008 19:05:41 +0000 (20:05 +0100)]
Use common USB standard requests handling.
The required adaptations in "usbcan" application
and specification of meaningful device identification
are included as well.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Sun, 23 Nov 2008 13:11:32 +0000 (14:11 +0100)]
Embedded code-base updated to actual version from uLan repository.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Tue, 11 Nov 2008 12:23:51 +0000 (13:23 +0100)]
report detailed CAN messages processing only if CAN_DEBUG is set.
ppisa [Tue, 11 Nov 2008 12:06:22 +0000 (13:06 +0100)]
Merge branch 'master' into can-usb1
ppisa [Sun, 9 Nov 2008 13:24:07 +0000 (13:24 +0000)]
TS-CAN1 and TS-7KV support separated and updated. Needs testing.
The "tscan1" and "ts7kv" board support shares minimal amount of functions.
The "ts7kv" support is moved to separate file now and is inclussion
into final build is controlled by separate option from "config.omk" file
CONFIG_OC_LINCAN_CARD_tscan1=y
CONFIG_OC_LINCAN_CARD_ts7kv=y
The both sources share "tsxxx_base" module parameter still
but solution is not elegant and use of different parameter
names is considered.
The "tscan1" seems to be used in MM I/O configurations on arm.
The the "tscan1mmio" hardware options has been included,
but there should be used ioremap() for MM I/O case.
But code found at Technologic Systems doesnot use it
ftp://ftp.embeddedarm.com/pc104-peripherals/ts-can1/ts-7800-linuxr26/ocera-lincan-src.tar.gz
so I have not changed it.
The "ts7kv" is still I/O based only. May it be, that best
and simplest solution is to compile it with can_inb/can_outb
for x86 and with can_reab/can_writeb for ARM.
The code requires testing before prepared release.
ppisa [Sun, 9 Nov 2008 12:26:13 +0000 (13:26 +0100)]
Merge commit 'sf-ocera-lincan/master'
ppisa [Sun, 9 Nov 2008 00:06:57 +0000 (00:06 +0000)]
Corrected print of address in report of card presence check failure.
ppisa [Sat, 8 Nov 2008 23:16:07 +0000 (00:16 +0100)]
Merge commit 'sf-ocera-lincan/master'
ppisa [Sun, 2 Nov 2008 12:43:27 +0000 (12:43 +0000)]
Return back building of utilities provided with LinCAN.
Revert mistake in "some minor bug fixes for HCAN2 chip" commit.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Sun, 2 Nov 2008 12:35:20 +0000 (12:35 +0000)]
Use send_sig() instead of kill_proc() in emulated kthread support.
This allows to compile driver on latest 2.6.27+ kernels,
but is incorrect anyway. The local code for kernel thread
support is not more needed for recent 2.6 kernels and code
should be modified to emulate same interface for older ones.
ppisa [Sun, 2 Nov 2008 11:59:16 +0000 (12:59 +0100)]
Merge branch 'master' into can-usb1
ppisa [Sun, 2 Nov 2008 11:52:29 +0000 (12:52 +0100)]
Merge commit 'sf-ocera-lincan'
ppisa [Sat, 1 Nov 2008 13:11:23 +0000 (14:11 +0100)]
LinCAN can_usb1 code updated for latest kernels.
The freezer functions have been moved to linux/freezer.h headerfile.
Corrected name and body of the usbcan_report_error function.
The err() function does not compile correctly so use CANMSG
used in most of other files instead.
Signed-off-by: ppisa <pisa@cmp.felk.cvut.cz>
ppisa [Sat, 1 Nov 2008 12:40:35 +0000 (13:40 +0100)]
Merge branch 'master' into can-usb1
The changes between LinCAN 0.3.3 version and current master head are propagated
into "can-usb1" branch.
Conflicts:
lincan/include/kthread.h
lincan/include/main.h
lincan/src/Makefile.omk
lincan/src/bfadcan.c
lincan/src/boardlist.c
lincan/src/finish.c
lincan/src/kthread.c
lincan/src/main.c
lincan/src/modparms.c
lincan/src/proc.c
lincan/src/setup.c
ppisa [Sat, 1 Nov 2008 01:51:16 +0000 (02:51 +0100)]
Merge: LinCAN partial update of thread helper support for 2.6.27+ kernels.
Merge commit 'remotes/sf-ocera-lincan/master'
ppisa [Wed, 15 Oct 2008 01:29:41 +0000 (01:29 +0000)]
LinCAN partial update of thread helper support for 2.6.27+ kernels.
ppisa [Wed, 8 Oct 2008 23:43:53 +0000 (23:43 +0000)]
Ensure, that chip wakeup_tx function is not called for not fully setup CAN channel.
Problem found by Jan Kriz during USB<->CAN converter support development.
ppisa [Wed, 8 Oct 2008 23:21:24 +0000 (23:21 +0000)]
Whitespace cleanup in some LinCAN source files to prepare for integration of Jan Kriz work.
ppisa [Wed, 8 Oct 2008 21:43:00 +0000 (23:43 +0200)]
Merge: Ensure, that chip wakeup_tx function is not called for not fully setup CAN channel.
Merge commit 'remotes/sf-ocera-lincan/master'
ppisa [Wed, 8 Oct 2008 21:21:00 +0000 (23:21 +0200)]
Merge: Whitespace cleanup in some LinCAN source files to prepare for integration of Jan Kriz work.
Merge commit 'remotes/sf-ocera-lincan/master'
Jan Kriz [Wed, 8 Oct 2008 07:44:48 +0000 (09:44 +0200)]
changed usb vendor and product id.
Jan Kriz [Mon, 4 Aug 2008 09:12:38 +0000 (11:12 +0200)]
Fixed errors when device gets disconnected during communication
Jan Kriz [Sun, 27 Jul 2008 16:30:39 +0000 (18:30 +0200)]
Usbcan thread split into smaller functions
Jan Kriz [Sun, 27 Jul 2008 15:47:46 +0000 (17:47 +0200)]
Fully working solution!
fixed simple getting the same device name when reconnected
fixed more usb urbs to send and receive messages
pending split kernel thread to smaller functions
pending commentaries
Jan Kriz [Sat, 26 Jul 2008 22:40:29 +0000 (00:40 +0200)]
Each (future) canchip associated to different usb endpoint, instead of whole device to just one endpoint.
Jan Kriz [Sat, 26 Jul 2008 01:16:43 +0000 (03:16 +0200)]
Embedded code and LinCAN driver now working
fixed kernel thread running in atomic context
fixed initialization of SJA chip in embedded code
fixed vendor functions
pending more usb urbs handling in LinCAN
Jan Kriz [Thu, 24 Jul 2008 10:06:24 +0000 (12:06 +0200)]
Minor variable type corrections (__u8 -> u8)
Jan Kriz [Thu, 24 Jul 2008 09:44:01 +0000 (11:44 +0200)]
Added check of usbcan device presence on registration