Skip to content

Commit

Permalink
net-caif-driver: add CAIF serial driver (ldisc)
Browse files Browse the repository at this point in the history
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 <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sjur Braendeland authored and David S. Miller committed Mar 31, 2010
1 parent edc7616 commit 9b27105
Show file tree
Hide file tree
Showing 6 changed files with 475 additions and 2 deletions.
2 changes: 2 additions & 0 deletions drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2837,6 +2837,8 @@ source "drivers/ieee802154/Kconfig"

source "drivers/s390/net/Kconfig"

source "drivers/net/caif/Kconfig"

config XEN_NETDEV_FRONTEND
tristate "Xen network device frontend driver"
depends on XEN
Expand Down
1 change: 1 addition & 0 deletions drivers/net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -290,5 +290,6 @@ obj-$(CONFIG_VIRTIO_NET) += virtio_net.o
obj-$(CONFIG_SFC) += sfc/

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

obj-$(CONFIG_OCTEON_MGMT_ETHERNET) += octeon/
17 changes: 17 additions & 0 deletions drivers/net/caif/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# CAIF physical drivers
#

if CAIF

comment "CAIF transport drivers"

config CAIF_TTY
tristate "CAIF TTY transport driver"
default n
---help---
The CAIF TTY transport driver is a Line Discipline (ldisc)
identified as N_CAIF. When this ldisc is opened from user space
it will redirect the TTY's traffic into the CAIF stack.

endif # CAIF
12 changes: 12 additions & 0 deletions drivers/net/caif/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ifeq ($(CONFIG_CAIF_DEBUG),1)
CAIF_DBG_FLAGS := -DDEBUG
endif

KBUILD_EXTRA_SYMBOLS=net/caif/Module.symvers

ccflags-y := $(CAIF_FLAGS) $(CAIF_DBG_FLAGS)
clean-dirs:= .tmp_versions
clean-files:= Module.symvers modules.order *.cmd *~ \

# Serial interface
obj-$(CONFIG_CAIF_TTY) += caif_serial.o
Loading

0 comments on commit 9b27105

Please sign in to comment.