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>
Showing
- drivers/net/wan/Kconfig 2 additions, 0 deletionsdrivers/net/wan/Kconfig
- drivers/net/wan/Makefile 2 additions, 0 deletionsdrivers/net/wan/Makefile
- drivers/net/wan/framer/Kconfig 25 additions, 0 deletionsdrivers/net/wan/framer/Kconfig
- drivers/net/wan/framer/Makefile 6 additions, 0 deletionsdrivers/net/wan/framer/Makefile
- drivers/net/wan/framer/framer-core.c 882 additions, 0 deletionsdrivers/net/wan/framer/framer-core.c
- include/linux/framer/framer-provider.h 194 additions, 0 deletionsinclude/linux/framer/framer-provider.h
- include/linux/framer/framer.h 205 additions, 0 deletionsinclude/linux/framer/framer.h
drivers/net/wan/framer/Kconfig
0 → 100644
drivers/net/wan/framer/Makefile
0 → 100644
drivers/net/wan/framer/framer-core.c
0 → 100644
This diff is collapsed.
include/linux/framer/framer-provider.h
0 → 100644
include/linux/framer/framer.h
0 → 100644
Please register or sign in to comment