-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: wan: Add framer framework support
A framer is a component in charge of an E1/T1 line interface. Connected usually to a TDM bus, it converts TDM frames to/from E1/T1 frames. It also provides information related to the E1/T1 line. The framer framework provides a set of APIs for the framer drivers (framer provider) to create/destroy a framer and APIs for the framer users (framer consumer) to obtain a reference to the framer, and use the framer. This basic implementation provides a framer abstraction for: - power on/off the framer - get the framer status (line state) - be notified on framer status changes - get/set the framer configuration Signed-off-by: Herve Codina <herve.codina@bootlin.com> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Acked-by: Jakub Kicinski <kuba@kernel.org> Link: https://lore.kernel.org/r/20231128132534.258459-2-herve.codina@bootlin.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
- Loading branch information
Herve Codina
authored and
Linus Walleij
committed
Dec 12, 2023
1 parent
b85ea95
commit 82c944d
Showing
7 changed files
with
1,316 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
# | ||
# FRAMER | ||
# | ||
|
||
menuconfig FRAMER | ||
tristate "Framer Subsystem" | ||
help | ||
A framer is a component in charge of an E1/T1 line interface. | ||
Connected usually to a TDM bus, it converts TDM frames to/from E1/T1 | ||
frames. It also provides information related to the E1/T1 line. | ||
Used with HDLC, the network can be reached through the E1/T1 line. | ||
|
||
This framework is designed to provide a generic interface for framer | ||
devices present in the kernel. This layer will have the generic | ||
API by which framer drivers can create framer using the framer | ||
framework and framer users can obtain reference to the framer. | ||
All the users of this framework should select this config. | ||
|
||
if FRAMER | ||
|
||
config GENERIC_FRAMER | ||
bool | ||
|
||
endif # FRAMER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# | ||
# Makefile for the framer drivers. | ||
# | ||
|
||
obj-$(CONFIG_GENERIC_FRAMER) += framer-core.o |
Oops, something went wrong.