blob: d7704275245773889d39be253f1a6f9a3258e0c5 [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
Robert P. J. Day26bca9f2019-06-12 11:48:56 -040011 communications protocol. Development of the CAN bus started in
12 1983 at Robert Bosch GmbH, and the protocol was officially
13 released in 1986. The CAN bus was originally mainly for automotive,
14 but is now widely used in marine (NMEA2000), industrial, and medical
15 applications. More information on the CAN network protocol family
16 PF_CAN is contained in <Documentation/networking/can.rst>.
Oliver Hartkopp0d665482007-11-16 15:52:17 -080017
18 If you want CAN support you should say Y here and also to the
19 specific driver for your controller(s) below.
Oliver Hartkoppc18ce102007-11-16 15:53:09 -080020
Marc Kleine-Budde77136832012-07-20 21:00:00 +020021if CAN
22
Oliver Hartkoppc18ce102007-11-16 15:53:09 -080023config CAN_RAW
24 tristate "Raw CAN Protocol (raw access with CAN-ID filtering)"
Marc Kleine-Buddef66b0302012-07-20 21:22:27 +020025 default y
Oliver Hartkoppc18ce102007-11-16 15:53:09 -080026 ---help---
27 The raw CAN protocol option offers access to the CAN bus via
28 the BSD socket API. You probably want to use the raw socket in
29 most cases where no higher level protocol is being used. The raw
30 socket has several filter options e.g. ID masking / error frames.
31 To receive/send raw CAN messages, use AF_CAN with protocol CAN_RAW.
Oliver Hartkoppffd980f2007-11-16 15:53:52 -080032
33config CAN_BCM
34 tristate "Broadcast Manager CAN Protocol (with content filtering)"
Marc Kleine-Buddef66b0302012-07-20 21:22:27 +020035 default y
Oliver Hartkoppffd980f2007-11-16 15:53:52 -080036 ---help---
37 The Broadcast Manager offers content filtering, timeout monitoring,
38 sending of RTR frames, and cyclic CAN messages without permanent user
39 interaction. The BCM can be 'programmed' via the BSD socket API and
40 informs you on demand e.g. only on content updates / timeouts.
41 You probably want to use the bcm socket in most cases where cyclic
42 CAN messages are used on the bus (e.g. in automotive environments).
43 To use the Broadcast Manager, use AF_CAN with protocol CAN_BCM.
Oliver Hartkoppccb29632007-11-16 15:56:08 -080044
Oliver Hartkoppc1aabdf2011-09-01 04:23:23 +000045config CAN_GW
46 tristate "CAN Gateway/Router (with netlink configuration)"
Marc Kleine-Buddef66b0302012-07-20 21:22:27 +020047 default y
Oliver Hartkoppc1aabdf2011-09-01 04:23:23 +000048 ---help---
49 The CAN Gateway/Router is used to route (and modify) CAN frames.
50 It is based on the PF_CAN core infrastructure for msg filtering and
51 msg sending and can optionally modify routed CAN frames on the fly.
52 CAN frames can be routed between CAN network interfaces (one hop).
53 They can be modified with AND/OR/XOR/SET operations as configured
54 by the netlink configuration interface known e.g. from iptables.
Oliver Hartkoppccb29632007-11-16 15:56:08 -080055
The j1939 authors9d71dd02018-10-08 11:48:36 +020056source "net/can/j1939/Kconfig"
57
Oliver Hartkoppccb29632007-11-16 15:56:08 -080058source "drivers/net/can/Kconfig"
Marc Kleine-Budde77136832012-07-20 21:00:00 +020059
60endif