LinCAN PCI cards support updated to support PCI devices reference counting. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
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.
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.
Whitespace cleanup in some LinCAN source files to prepare for integration of Jan Kriz work.
Added attach_to_chip() and release_chip() functions for each chip. This enables correct stopping and IRQ disable before driver unload. This is required to get rid of problematic handling of shut down for C_CAN ARM in ns_dev_release_io().
To prevent future name collisions "chip_t" changed to "canchip_t"
LinCAN version updated to 0.3
LinCAN driver structured comments updated.
LinCAN can be compiled in mode with RT-Linux chip worker threads now. Setup tested to work with Virtual and PCM3680 boards now.
Added support for fasync system call and replacement of spinXXX by can_spinXXX
Header-files cleanup and CAN queue edges and ends locking reimplemented. The code has been updated and tested with 2.6.0-test9 as well. Default asynchronous close does not wait for transmission of the messages left in the Tx FIFOs. ENDS dispose is delayed in such case. Virtual chip driver can model bus latency if nonzero baudrate is selected.