mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[CAN]: Add broadcast manager (bcm) protocol
This patch adds the CAN broadcast manager (bcm) protocol. Signed-off-by: Oliver Hartkopp <[email protected]> Signed-off-by: Urs Thuermann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
c18ce101f2
commit
ffd980f976
4 changed files with 1642 additions and 0 deletions
|
|
@ -26,3 +26,16 @@ config CAN_RAW
|
|||
most cases where no higher level protocol is being used. The raw
|
||||
socket has several filter options e.g. ID masking / error frames.
|
||||
To receive/send raw CAN messages, use AF_CAN with protocol CAN_RAW.
|
||||
|
||||
config CAN_BCM
|
||||
tristate "Broadcast Manager CAN Protocol (with content filtering)"
|
||||
depends on CAN
|
||||
default N
|
||||
---help---
|
||||
The Broadcast Manager offers content filtering, timeout monitoring,
|
||||
sending of RTR frames, and cyclic CAN messages without permanent user
|
||||
interaction. The BCM can be 'programmed' via the BSD socket API and
|
||||
informs you on demand e.g. only on content updates / timeouts.
|
||||
You probably want to use the bcm socket in most cases where cyclic
|
||||
CAN messages are used on the bus (e.g. in automotive environments).
|
||||
To use the Broadcast Manager, use AF_CAN with protocol CAN_BCM.
|
||||
|
|
|
|||
|
|
@ -7,3 +7,6 @@ can-objs := af_can.o proc.o
|
|||
|
||||
obj-$(CONFIG_CAN_RAW) += can-raw.o
|
||||
can-raw-objs := raw.o
|
||||
|
||||
obj-$(CONFIG_CAN_BCM) += can-bcm.o
|
||||
can-bcm-objs := bcm.o
|
||||
|
|
|
|||
1561
net/can/bcm.c
Normal file
1561
net/can/bcm.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue