Skip to content

Commit 9b27105

Browse files
Sjur Braendelanddavem330
authored andcommitted
net-caif-driver: add CAIF serial driver (ldisc)
Add CAIF Serial driver. This driver is implemented as a line discipline. caif_serial uses the following module parameters: ser_use_stx - specifies if STart of frame eXtension is in use. ser_loop - sets the interface in loopback mode. Signed-off-by: Sjur Braendeland <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent edc7616 commit 9b27105

File tree

6 files changed

+475
-2
lines changed

6 files changed

+475
-2
lines changed

drivers/net/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2837,6 +2837,8 @@ source "drivers/ieee802154/Kconfig"
28372837

28382838
source "drivers/s390/net/Kconfig"
28392839

2840+
source "drivers/net/caif/Kconfig"
2841+
28402842
config XEN_NETDEV_FRONTEND
28412843
tristate "Xen network device frontend driver"
28422844
depends on XEN

drivers/net/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,5 +290,6 @@ obj-$(CONFIG_VIRTIO_NET) += virtio_net.o
290290
obj-$(CONFIG_SFC) += sfc/
291291

292292
obj-$(CONFIG_WIMAX) += wimax/
293+
obj-$(CONFIG_CAIF) += caif/
293294

294295
obj-$(CONFIG_OCTEON_MGMT_ETHERNET) += octeon/

drivers/net/caif/Kconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# CAIF physical drivers
3+
#
4+
5+
if CAIF
6+
7+
comment "CAIF transport drivers"
8+
9+
config CAIF_TTY
10+
tristate "CAIF TTY transport driver"
11+
default n
12+
---help---
13+
The CAIF TTY transport driver is a Line Discipline (ldisc)
14+
identified as N_CAIF. When this ldisc is opened from user space
15+
it will redirect the TTY's traffic into the CAIF stack.
16+
17+
endif # CAIF

drivers/net/caif/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ifeq ($(CONFIG_CAIF_DEBUG),1)
2+
CAIF_DBG_FLAGS := -DDEBUG
3+
endif
4+
5+
KBUILD_EXTRA_SYMBOLS=net/caif/Module.symvers
6+
7+
ccflags-y := $(CAIF_FLAGS) $(CAIF_DBG_FLAGS)
8+
clean-dirs:= .tmp_versions
9+
clean-files:= Module.symvers modules.order *.cmd *~ \
10+
11+
# Serial interface
12+
obj-$(CONFIG_CAIF_TTY) += caif_serial.o

0 commit comments

Comments
 (0)