hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
menu "CAN drivers"
 
config XENO_DRIVERS_CAN
   tristate "RT-Socket-CAN, CAN raw socket interface"
   help
   RT-Socket-CAN is a real-time socket interface for CAN controllers.
 
config XENO_DRIVERS_CAN_DEBUG
   depends on XENO_DRIVERS_CAN && PROC_FS
   bool "Enable debug output"
   default y
   help
 
   This option activates debugging checks and enhanced output for the
   RT-Socket-CAN driver. It also allows to list the hardware registers
   of the registered CAN controllers. It is a recommended option for
   getting started and analysing potential problems. For production
   purposes, it should be switched off (for the sake of latency).
 
config XENO_DRIVERS_CAN_LOOPBACK
   depends on XENO_DRIVERS_CAN
   bool "Enable TX loopback to local sockets"
   default n
   help
 
   This options adds support for TX loopback to local sockets. Normally,
   messages sent to the CAN bus are not visible to sockets listening to
   the same local device. When this option is enabled, TX messages are
   looped back locally when the transmit has been done by default. This
   behaviour can be deactivated or reactivated with "setsockopt". Enable
   this option, if you want to have a "net-alike" behaviour.
 
config XENO_DRIVERS_CAN_RXBUF_SIZE
   depends on XENO_DRIVERS_CAN
   int "Size of receive ring buffers (must be 2^N)"
   default 1024
 
config XENO_DRIVERS_CAN_MAX_DEVICES
   depends on XENO_DRIVERS_CAN
   int "Maximum number of devices"
   default 4
 
config XENO_DRIVERS_CAN_MAX_RECEIVERS
   depends on XENO_DRIVERS_CAN
   int "Maximum number of receive filters per device"
   default 16
   help
 
   The driver maintains a receive filter list per device for fast access.
 
config XENO_DRIVERS_CAN_BUS_ERR
   depends on XENO_DRIVERS_CAN
   bool
   default n
   help
 
   To avoid unnecessary bus error interrupt flooding, this option enables
   bus error interrupts when an application is calling a receive function
   on a socket listening on bus errors. After one bus error has occured,
   the interrupt will be disabled to allow the application time for error
   processing. This option is automatically selected for CAN controllers
   supporting bus error interrupts like the SJA1000.
 
config XENO_DRIVERS_CAN_CALC_BITTIME_OLD
   depends on XENO_DRIVERS_CAN
   bool "Old bit-time calculation algorithm (deprecated)"
   default n
   help
 
   This option allows to enable the old algorithm to calculate the
   CAN bit-timing parameters for backward compatibility.
 
config XENO_DRIVERS_CAN_VIRT
   depends on XENO_DRIVERS_CAN
   tristate "Virtual CAN bus driver"
   help
 
   This driver provides two CAN ports that are virtually interconnected.
   More ports can be enabled with the module parameter "devices".
 
config XENO_DRIVERS_CAN_FLEXCAN
   depends on XENO_DRIVERS_CAN && OF && !XENO_DRIVERS_CAN_CALC_BITTIME_OLD
   tristate "Freescale FLEXCAN based chips"
   help
 
   Say Y here if you want to support for Freescale FlexCAN.
 
source "drivers/xenomai/can/mscan/Kconfig"
source "drivers/xenomai/can/peak_canfd/Kconfig"
source "drivers/xenomai/can/sja1000/Kconfig"
 
endmenu