Bjarne von Horn
2c9286de9b
Fix DMA detection macro
...
Some arm64 builds have CONFIG_PCI, but free_dma() and request_dma()
symbols depend on CONFIG_GENERIC_ISA_DMA
2021-12-06 23:36:35 +01:00
Nicola Fontana
82399a9239
Revive 'make distcheck'
2021-06-22 14:43:07 +00:00
Florian Pose
0f6e2e19ec
Merge branch 'stable-1.5' into 'remove-sram-gpio-from-dist'
...
# Conflicts:
# devices/ccat/Makefile.am
2021-05-25 10:43:53 +00:00
Nicola Fontana
9da3b1ab40
Fix #4 : remove sram.h and gpio.h from EXTRA_DIST
...
`sram.h` is not referenced anywhere (or, better, `grep -ir sram.h` does
not return any matching result) while `gpio.h` is included with
`<linux/gpio.h>`, suggesting the system header file is used.
2021-05-22 11:57:39 +02:00
Nicola Fontana
60dd78485c
Do not include AC_CONFIG_FILES in BUILT_SOURCES
...
BUILT_SOURCES is used to trigger early generation of files in the `make`
process to workaround dependency problems:
https://www.gnu.org/software/automake/manual/html_node/Sources.html
AC_CONFIG_FILES are generated by `configure`, so they are already
present in the file system even before `make` is called. Furthermore,
AC_CONFIG_FILES already properly handle dist and clean targets, so no
need to add them to EXTRA_DIST or DISTCLEANFILES:
https://www.gnu.org/software/automake/manual/html_node/Requirements.html
2021-05-22 08:25:26 +02:00
Florian Pose
563f6e0cb4
Replaced dma_zalloc_coherent.
2020-04-03 12:17:32 +02:00
Florian Pose
77dc73606d
Applied CCAT patch 0001-fix-ccat-netdev-for-v4.11.patch from Beckhoff.
2018-01-30 17:08:21 +01:00
Florian Pose
25bdba8bbd
Do not build GPIO part of CCAT if GPIO is not configured in kernel.
2017-09-08 13:50:06 +02:00
Florian Pose
9d24bf69e2
merge
2016-09-16 11:57:01 +02:00
Patrick Bruenn
1362f30a05
devices/ccat: revert "limit rx processing to one frame per poll"
...
revert "limit rx processing to one frame per poll", which caused etherlab
frame timeouts in setups with more than one frame per cycle.
2016-04-12 11:17:36 +02:00
Florian Pose
2b18e00116
Prevent CCAT auto-loading.
2016-02-25 15:23:42 +01:00
Patrick Bruenn
004831997e
update ccat driver to v0.14
...
- fix ccat startup stall and 64 bit address usage
- limit rx processing to one frame per poll
- print registered gpio base to kernel log
- fix constness for *_driver objects
- refactor dma fifo initialization
- refactor rx/tx fifo code and structures
2015-11-05 16:54:49 +01:00
Patrick Bruenn
2632d73bf2
fix ccat startup stall. In case the dma memory was allocated above 4 GB limit, CCAT is unable to access it.
...
-> limit the dma_mask to 32-bit to omit this situation
2015-10-26 08:28:10 +01:00
Patrick Bruenn
596a2584c3
update ccat driver to v0.13
...
- add driver for the SRAM function block
- add driver for the GPIO function block
- add support for multiple CCATs
- prepare support for devices without pci
2015-10-13 12:24:16 +02:00
Florian Pose
480d497644
CCAT: Support kernels before 3.14 without dma_set_mask_and_coherent().
2014-10-27 14:54:02 +01:00
Florian Pose
0de73a15ad
Merged CCAT 0.10 changes.
2014-10-27 14:33:03 +01:00
Florian Pose
fa39f61c52
Prevent CCAT auto-loading.
2014-10-27 14:19:49 +01:00
Patrick Bruenn
be89551e21
- increase version number to 0.10
...
- run indent script on netdev.c
2014-07-02 14:25:23 +02:00
Patrick Bruenn
26216d7727
remove unused files CCatDefinitions.h and compat.h
2014-07-02 12:48:01 +02:00
Patrick Bruenn
6c129ee7ce
Refactoring:
...
- convert next_tx/rx counter into dma_fifo member fifo->next
- use POLL_TIME define instead of magic number 100
- remove obsolete tx_fifo_full()
2014-07-02 08:15:27 +02:00
Patrick Bruenn
2fb819d6f4
remove obsolete print.* files
2014-06-05 18:12:30 +02:00
Patrick Bruenn
8309f8f243
remove dead commented code
2014-06-05 17:54:35 +02:00
Patrick Bruenn
4e38410894
remove print.* from release tree
...
run indent
2014-06-05 17:41:48 +02:00
Patrick Bruenn
950bfe2649
reorder functions in netdev.c to avoid forward declarations
2014-06-05 17:27:16 +02:00
Patrick Bruenn
b1214f2548
reorder functions in update.c to omit forward declarations
2014-06-05 17:08:54 +02:00
Patrick Bruenn
2f4a4fd5fe
- don't use compat.h in the mainline driver
...
- correct constness of function pointer declarations
2014-06-05 16:40:01 +02:00
Patrick Bruenn
eb003e8df3
make ccat driver more linux compliant
...
- reduce enum ccat_info_t to the minimal set of defines
- replace CamelCased WINDOWS typedef structs with linux types
- remove print.c/.h from the driver build, but keep the files for debugging
2014-06-05 16:30:22 +02:00
Patrick Bruenn
ae6a5712e6
move first *_carrier_off() in front of register_netdev()/ ecdev_open()
2014-06-05 16:14:13 +02:00
Patrick Bruenn
058e923dda
- use short kernel types, add empty lines after variable declaration to conform better with linux coding style
...
- replace polling threads with hrtimer callback
2014-06-05 16:07:52 +02:00
Patrick Bruenn
682b891bd0
- restored examples/user/
...
- removed /devices/ccat/COPYING
- replaced DRV_NAME with KBUILD_MODNAME
2014-05-06 17:23:33 +02:00
Florian Pose
8cf05b96c6
Avoided unused return value warning.
2014-04-25 17:05:39 +02:00
Florian Pose
1619586388
Removed obsolete EXTRA_DIST files.
2014-04-25 17:05:12 +02:00
Florian Pose
1de80f3387
Removed unused CCAT kernel version.
2014-04-25 17:04:43 +02:00
Patrick Bruenn
fa937d00a4
change back the version number to release 0.8
2014-04-23 15:22:39 +02:00
Patrick Bruenn
dc7832849e
ccat: use the same file for different driver version
2014-04-23 15:20:33 +02:00
Patrick Bruenn
544b186438
added ccat support for kernel 2.6.32
2014-04-23 13:15:10 +02:00
Patrick Bruenn
486d7704ba
clean up CCatDefinitions.h
2014-04-07 07:31:50 +02:00
Patrick Bruenn
5b3b03b30d
replace not working symlinks with real copies from the ccat main repository(git)
2014-04-04 08:59:37 +02:00
Patrick Bruenn
9aba2b3e15
Add ccat driver for Beckhoff CCAT communication controller in Beckhoff CX20xx device
2014-04-04 08:32:09 +02:00