blob: 0f9fe846ddefc9f94f28f3dd992984f034d27fc8 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Oliver Hartkopp0d665482007-11-16 15:52:17 -08002#
3# Controller Area Network (CAN) network layer core configuration
4#
5
6menuconfig CAN
7 depends on NET
8 tristate "CAN bus subsystem support"
9 ---help---
10 Controller Area Network (CAN) is a slow (up to 1Mbit/s) serial
11 communications protocol which was developed by Bosch in
12 1991, mainly for automotive, but now widely used in marine
13 (NMEA2000), industrial, and medical applications.
14 More information on the CAN network protocol family PF_CAN
Robert Schwebel7d597732018-01-24 11:19:11 +010015 is contained in <Documentation/networking/can.rst>.
Oliver Hartkopp0d665482007-11-16 15:52:17 -080016
17 If you want CAN support you should say Y here and also to the
18 specific driver for your controller(s) below.
Oliver Hartkoppc18ce102007-11-16 15:53:09 -080019
Marc Kleine-Budde77136832012-07-20 21:00:00 +020020if CAN
21
Oliver Hartkoppc18ce102007-11-16 15:53:09 -080022config CAN_RAW
23 tristate "Raw CAN Protocol (raw access with CAN-ID filtering)"
Marc Kleine-Buddef66b0302012-07-20 21:22:27 +020024 default y
Oliver Hartkoppc18ce102007-11-16 15:53:09 -080025 ---help---
26 The raw CAN protocol option offers access to the CAN bus via
27 the BSD socket API. You probably want to use the raw socket in
28 most cases where no higher level protocol is being used. The raw
29 socket has several filter options e.g. ID masking / error frames.
30 To receive/send raw CAN messages, use AF_CAN with protocol CAN_RAW.
Oliver Hartkoppffd980f2007-11-16 15:53:52 -080031
32config CAN_BCM
33 tristate "Broadcast Manager CAN Protocol (with content filtering)"
Marc Kleine-Buddef66b0302012-07-20 21:22:27 +020034 default y
Oliver Hartkoppffd980f2007-11-16 15:53:52 -080035 ---help---
36 The Broadcast Manager offers content filtering, timeout monitoring,
37 sending of RTR frames, and cyclic CAN messages without permanent user
38 interaction. The BCM can be 'programmed' via the BSD socket API and
39 informs you on demand e.g. only on content updates / timeouts.
40 You probably want to use the bcm socket in most cases where cyclic
41 CAN messages are used on the bus (e.g. in automotive environments).
42 To use the Broadcast Manager, use AF_CAN with protocol CAN_BCM.
Oliver Hartkoppccb29632007-11-16 15:56:08 -080043
Oliver Hartkoppc1aabdf2011-09-01 04:23:23 +000044config CAN_GW
45 tristate "CAN Gateway/Router (with netlink configuration)"
Marc Kleine-Buddef66b0302012-07-20 21:22:27 +020046 default y
Oliver Hartkoppc1aabdf2011-09-01 04:23:23 +000047 ---help---
48 The CAN Gateway/Router is used to route (and modify) CAN frames.
49 It is based on the PF_CAN core infrastructure for msg filtering and
50 msg sending and can optionally modify routed CAN frames on the fly.
51 CAN frames can be routed between CAN network interfaces (one hop).
52 They can be modified with AND/OR/XOR/SET operations as configured
53 by the netlink configuration interface known e.g. from iptables.
Oliver Hartkoppccb29632007-11-16 15:56:08 -080054
55source "drivers/net/can/Kconfig"
Marc Kleine-Budde77136832012-07-20 21:00:00 +020056
57endif