net: remove ISDN subsystem and Bluetooth CMTP
Subsystems (5)
Jakub Kicinski
maintainerPATCH 1/1 net: remove ISDN subsystem and Bluetooth CMTP
Remove the ISDN (mISDN, CAPI) subsystem and Bluetooth CMTP protocol from the kernel tree.
ISDN is a pretty old technology and it's unclear whether anyone still uses it. I went over the last few years of git history and all the commits are either tree-wide conversions or syzbot/static analyzer fixes.
When we discussed removal in the past IIRC there were some concerns about ISDN still being used in parts of Germany. Unfortunately, the code base is quite old, none of the current maintainers are familiar with it and AI tools will have a field day finding bugs here.
Delete this code and preserve it in an out-of-tree repository for any remaining users:
https://github.com/linux-netdev/mod-orphan
UAPI constants AF_ISDN/PF_ISDN and the SELinux isdn_socket class are preserved for ABI stability, but the rest of uAPI is removed.
---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
--- MAINTAINERS | 19 - Documentation/isdn/credits.rst | 73 - Documentation/isdn/index.rst | 14 - Documentation/isdn/interface_capi.rst | 336 -- Documentation/isdn/m_isdn.rst | 9 - Documentation/subsystem-apis.rst | 1 - drivers/Kconfig | 2 - drivers/isdn/Kconfig | 27 - drivers/isdn/capi/Kconfig | 32 - drivers/isdn/hardware/mISDN/Kconfig | 98 - drivers/isdn/mISDN/Kconfig | 48 - net/bluetooth/Kconfig | 3 - net/bluetooth/cmtp/Kconfig | 12 - drivers/Makefile | 1 - drivers/isdn/Makefile | 8 - drivers/isdn/capi/Makefile | 6 - drivers/isdn/hardware/Makefile | 6 - drivers/isdn/hardware/mISDN/Makefile | 19 - drivers/isdn/mISDN/Makefile | 14 - net/bluetooth/Makefile | 1 - net/bluetooth/cmtp/Makefile | 8 - drivers/isdn/capi/kcapi.h | 182 - drivers/isdn/hardware/mISDN/hfc_multi.h | 1236 ----- drivers/isdn/hardware/mISDN/hfc_multi_8xx.h | 167 - drivers/isdn/hardware/mISDN/hfc_pci.h | 214 - drivers/isdn/hardware/mISDN/hfcsusb.h | 425 -- drivers/isdn/hardware/mISDN/iohelper.h | 96 - drivers/isdn/hardware/mISDN/ipac.h | 393 -- drivers/isdn/hardware/mISDN/isar.h | 256 - drivers/isdn/hardware/mISDN/isdnhdlc.h | 69 - drivers/isdn/hardware/mISDN/netjet.h | 44 - drivers/isdn/hardware/mISDN/w6692.h | 177 - drivers/isdn/mISDN/core.h | 69 - drivers/isdn/mISDN/dsp.h | 277 - drivers/isdn/mISDN/dsp_biquad.h | 51 - drivers/isdn/mISDN/dsp_ecdis.h | 96 - drivers/isdn/mISDN/dsp_hwec.h | 10 - drivers/isdn/mISDN/fsm.h | 58 - drivers/isdn/mISDN/l1oip.h | 92 - drivers/isdn/mISDN/layer1.h | 16 - drivers/isdn/mISDN/layer2.h | 131 - include/linux/isdn/capilli.h | 95 - include/linux/isdn/capiutil.h | 60 - include/linux/kernelcapi.h | 45 - include/linux/mISDNdsp.h | 40 - include/linux/mISDNhw.h | 192 - include/linux/mISDNif.h | 603 -- include/uapi/linux/capi.h | 134 - include/uapi/linux/isdn/capicmd.h | 117 - include/uapi/linux/kernelcapi.h | 48 - net/bluetooth/cmtp/cmtp.h | 129 - drivers/isdn/capi/capi.c | 1435 ----- drivers/isdn/capi/capiutil.c | 677 --- drivers/isdn/capi/kcapi.c | 933 ---- drivers/isdn/capi/kcapi_proc.c | 231 - drivers/isdn/hardware/mISDN/avmfritz.c | 1164 ---- drivers/isdn/hardware/mISDN/hfcmulti.c | 5540 ------------------- drivers/isdn/hardware/mISDN/hfcpci.c | 2360 -------- drivers/isdn/hardware/mISDN/hfcsusb.c | 2157 -------- drivers/isdn/hardware/mISDN/isdnhdlc.c | 617 --- drivers/isdn/hardware/mISDN/mISDNinfineon.c | 1168 ---- drivers/isdn/hardware/mISDN/mISDNipac.c | 1636 ------ drivers/isdn/hardware/mISDN/mISDNisar.c | 1694 ------ drivers/isdn/hardware/mISDN/netjet.c | 1154 ---- drivers/isdn/hardware/mISDN/speedfax.c | 520 -- drivers/isdn/hardware/mISDN/w6692.c | 1417 ----- drivers/isdn/mISDN/clock.c | 197 - drivers/isdn/mISDN/core.c | 400 -- drivers/isdn/mISDN/dsp_audio.c | 421 -- drivers/isdn/mISDN/dsp_blowfish.c | 667 --- drivers/isdn/mISDN/dsp_cmx.c | 1949 ------- drivers/isdn/mISDN/dsp_core.c | 1227 ---- drivers/isdn/mISDN/dsp_dtmf.c | 313 -- drivers/isdn/mISDN/dsp_hwec.c | 122 - drivers/isdn/mISDN/dsp_pipeline.c | 300 - drivers/isdn/mISDN/dsp_tones.c | 550 -- drivers/isdn/mISDN/fsm.c | 176 - drivers/isdn/mISDN/hwchannel.c | 516 -- drivers/isdn/mISDN/l1oip_codec.c | 358 -- drivers/isdn/mISDN/l1oip_core.c | 1505 ----- drivers/isdn/mISDN/layer1.c | 415 -- drivers/isdn/mISDN/layer2.c | 2266 -------- drivers/isdn/mISDN/socket.c | 825 --- drivers/isdn/mISDN/stack.c | 654 --- drivers/isdn/mISDN/tei.c | 1416 ----- drivers/isdn/mISDN/timerdev.c | 295 - net/bluetooth/cmtp/capi.c | 579 -- net/bluetooth/cmtp/core.c | 519 -- net/bluetooth/cmtp/sock.c | 271 - CREDITS | 5 + 90 files changed, 5 insertions(+), 44903 deletions(-) delete mode 100644 Documentation/isdn/credits.rst delete mode 100644 Documentation/isdn/index.rst delete mode 100644 Documentation/isdn/interface_capi.rst delete mode 100644 Documentation/isdn/m_isdn.rst delete mode 100644 drivers/isdn/Kconfig delete mode 100644 drivers/isdn/capi/Kconfig delete mode 100644 drivers/isdn/hardware/mISDN/Kconfig delete mode 100644 drivers/isdn/mISDN/Kconfig delete mode 100644 net/bluetooth/cmtp/Kconfig delete mode 100644 drivers/isdn/Makefile delete mode 100644 drivers/isdn/capi/Makefile delete mode 100644 drivers/isdn/hardware/Makefile delete mode 100644 drivers/isdn/hardware/mISDN/Makefile delete mode 100644 drivers/isdn/mISDN/Makefile delete mode 100644 net/bluetooth/cmtp/Makefile delete mode 100644 drivers/isdn/capi/kcapi.h delete mode 100644 drivers/isdn/hardware/mISDN/hfc_multi.h delete mode 100644 drivers/isdn/hardware/mISDN/hfc_multi_8xx.h delete mode 100644 drivers/isdn/hardware/mISDN/hfc_pci.h delete mode 100644 drivers/isdn/hardware/mISDN/hfcsusb.h delete mode 100644 drivers/isdn/hardware/mISDN/iohelper.h delete mode 100644 drivers/isdn/hardware/mISDN/ipac.h delete mode 100644 drivers/isdn/hardware/mISDN/isar.h delete mode 100644 drivers/isdn/hardware/mISDN/isdnhdlc.h delete mode 100644 drivers/isdn/hardware/mISDN/netjet.h delete mode 100644 drivers/isdn/hardware/mISDN/w6692.h delete mode 100644 drivers/isdn/mISDN/core.h delete mode 100644 drivers/isdn/mISDN/dsp.h delete mode 100644 drivers/isdn/mISDN/dsp_biquad.h delete mode 100644 drivers/isdn/mISDN/dsp_ecdis.h delete mode 100644 drivers/isdn/mISDN/dsp_hwec.h delete mode 100644 drivers/isdn/mISDN/fsm.h delete mode 100644 drivers/isdn/mISDN/l1oip.h delete mode 100644 drivers/isdn/mISDN/layer1.h delete mode 100644 drivers/isdn/mISDN/layer2.h delete mode 100644 include/linux/isdn/capilli.h delete mode 100644 include/linux/isdn/capiutil.h delete mode 100644 include/linux/kernelcapi.h delete mode 100644 include/linux/mISDNdsp.h delete mode 100644 include/linux/mISDNhw.h delete mode 100644 include/linux/mISDNif.h delete mode 100644 include/uapi/linux/capi.h delete mode 100644 include/uapi/linux/isdn/capicmd.h delete mode 100644 include/uapi/linux/kernelcapi.h delete mode 100644 net/bluetooth/cmtp/cmtp.h delete mode 100644 drivers/isdn/capi/capi.c delete mode 100644 drivers/isdn/capi/capiutil.c delete mode 100644 drivers/isdn/capi/kcapi.c delete mode 100644 drivers/isdn/capi/kcapi_proc.c delete mode 100644 drivers/isdn/hardware/mISDN/avmfritz.c delete mode 100644 drivers/isdn/hardware/mISDN/hfcmulti.c delete mode 100644 drivers/isdn/hardware/mISDN/hfcpci.c delete mode 100644 drivers/isdn/hardware/mISDN/hfcsusb.c delete mode 100644 drivers/isdn/hardware/mISDN/isdnhdlc.c delete mode 100644 drivers/isdn/hardware/mISDN/mISDNinfineon.c delete mode 100644 drivers/isdn/hardware/mISDN/mISDNipac.c delete mode 100644 drivers/isdn/hardware/mISDN/mISDNisar.c delete mode 100644 drivers/isdn/hardware/mISDN/netjet.c delete mode 100644 drivers/isdn/hardware/mISDN/speedfax.c delete mode 100644 drivers/isdn/hardware/mISDN/w6692.c delete mode 100644 drivers/isdn/mISDN/clock.c delete mode 100644 drivers/isdn/mISDN/core.c delete mode 100644 drivers/isdn/mISDN/dsp_audio.c delete mode 100644 drivers/isdn/mISDN/dsp_blowfish.c delete mode 100644 drivers/isdn/mISDN/dsp_cmx.c delete mode 100644 drivers/isdn/mISDN/dsp_core.c delete mode 100644 drivers/isdn/mISDN/dsp_dtmf.c delete mode 100644 drivers/isdn/mISDN/dsp_hwec.c delete mode 100644 drivers/isdn/mISDN/dsp_pipeline.c delete mode 100644 drivers/isdn/mISDN/dsp_tones.c delete mode 100644 drivers/isdn/mISDN/fsm.c delete mode 100644 drivers/isdn/mISDN/hwchannel.c delete mode 100644 drivers/isdn/mISDN/l1oip_codec.c delete mode 100644 drivers/isdn/mISDN/l1oip_core.c delete mode 100644 drivers/isdn/mISDN/layer1.c delete mode 100644 drivers/isdn/mISDN/layer2.c delete mode 100644 drivers/isdn/mISDN/socket.c delete mode 100644 drivers/isdn/mISDN/stack.c delete mode 100644 drivers/isdn/mISDN/tei.c delete mode 100644 drivers/isdn/mISDN/timerdev.c delete mode 100644 net/bluetooth/cmtp/capi.c delete mode 100644 net/bluetooth/cmtp/core.c delete mode 100644 net/bluetooth/cmtp/sock.c
MAINTAINERS +0 -19
@@ -13560,25 +13560,6 @@ S: Supported T: git git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git master F: drivers/infiniband/ulp/isert -ISDN/CMTP OVER BLUETOOTH -L: [email protected] -S: Orphan -W: http://www.isdn4linux.de -F: Documentation/isdn/ -F: drivers/isdn/capi/ -F: include/linux/isdn/ -F: include/uapi/linux/isdn/ -F: net/bluetooth/cmtp/ - -ISDN/mISDN SUBSYSTEM -L: [email protected] -S: Orphan -W: http://www.isdn4linux.de -F: drivers/isdn/Kconfig -F: drivers/isdn/Makefile -F: drivers/isdn/hardware/ -F: drivers/isdn/mISDN/ - ISL28022 HARDWARE MONITORING DRIVER M: Carsten Spieß <[email protected]> L: [email protected]
Documentation/isdn/credits.rst deleted +0 -73
73 lines not on this page · raw message
Documentation/isdn/index.rst deleted +0 -14
@@ -1,14 +0,0 @@ -.. SPDX-License-Identifier: GPL-2.0 - -==== -ISDN -==== - -.. toctree:: - :maxdepth: 2 - - interface_capi - - m_isdn - - credits
Documentation/isdn/interface_capi.rst deleted +0 -336
336 lines not on this page · raw message
Documentation/isdn/m_isdn.rst deleted +0 -9
@@ -1,9 +0,0 @@ -============ -mISDN Driver -============ - -mISDN is a new modular ISDN driver, in the long term it should replace -the old I4L driver architecture for passive ISDN cards. -It was designed to allow a broad range of applications and interfaces -but only have the basic function in kernel, the interface to the user -space is based on sockets with a own address family AF_ISDN.
Documentation/subsystem-apis.rst +0 -1
@@ -46,7 +46,6 @@ Networking interfaces networking/index netlabel/index infiniband/index - isdn/index mhi/index Storage interfaces
drivers/Kconfig +0 -2
@@ -61,8 +61,6 @@ source "drivers/macintosh/Kconfig" source "drivers/net/Kconfig" -source "drivers/isdn/Kconfig" - # input before char - char/joystick depends on it. As does USB. source "drivers/input/Kconfig"
drivers/isdn/Kconfig deleted +0 -27
@@ -1,27 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# -# ISDN device configuration -# - -menuconfig ISDN - bool "ISDN support" - depends on NET && NETDEVICES - help - ISDN ("Integrated Services Digital Network", called RNIS in France) - is a fully digital telephone service that can be used for voice and - data connections. If your computer is equipped with an ISDN - adapter you can use it to connect to your Internet service provider - (with SLIP or PPP) faster than via a conventional telephone modem - (though still much slower than with DSL) or to make and accept - voice calls (eg. turning your PC into a software answering machine - or PABX). - - Select this option if you want your kernel to support ISDN. - -if ISDN - -source "drivers/isdn/capi/Kconfig" - -source "drivers/isdn/mISDN/Kconfig" - -endif # ISDN
drivers/isdn/capi/Kconfig deleted +0 -32
@@ -1,32 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -config ISDN_CAPI - def_bool ISDN && BT - help - This provides CAPI (the Common ISDN Application Programming - Interface) Version 2.0, a standard making it easy for programs to - access ISDN hardware in a device independent way. (For details see - <https://www.capi.org/>.) CAPI supports making and accepting voice - and data connections, controlling call options and protocols, - as well as ISDN supplementary services like call forwarding or - three-party conferences (if supported by the specific hardware - driver). - - This subsystem requires a hardware specific driver. - See CONFIG_BT_CMTP for the last remaining regular driver - in the kernel that uses the CAPI subsystem. - -config CAPI_TRACE - def_bool BT_CMTP - help - If you say Y here, the kernelcapi driver can make verbose traces - of CAPI messages. This feature can be enabled/disabled via IOCTL for - every controller (default disabled). - -config ISDN_CAPI_MIDDLEWARE - def_bool BT_CMTP && TTY - help - This option will enhance the capabilities of the /dev/capi20 - interface. It will provide a means of moving a data connection, - established via the usual /dev/capi20 interface to a special tty - device. If you want to use pppd with pppdcapiplugin to dial up to - your ISP, say Y here.
drivers/isdn/hardware/mISDN/Kconfig deleted +0 -98
98 lines not on this page · raw message
drivers/isdn/mISDN/Kconfig deleted +0 -48
48 lines not on this page · raw message
net/bluetooth/Kconfig +0 -3
@@ -33,7 +33,6 @@ menuconfig BT HCI Device drivers (Interface to the hardware) RFCOMM Module (RFCOMM Protocol) BNEP Module (Bluetooth Network Encapsulation Protocol) - CMTP Module (CAPI Message Transport Protocol) HIDP Module (Human Interface Device Protocol) Say Y here to compile Bluetooth support into the kernel or say M to
@@ -58,8 +57,6 @@ source "net/bluetooth/rfcomm/Kconfig" source "net/bluetooth/bnep/Kconfig" -source "net/bluetooth/cmtp/Kconfig" - source "net/bluetooth/hidp/Kconfig" config BT_LE
net/bluetooth/cmtp/Kconfig deleted +0 -12
@@ -1,12 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -config BT_CMTP - tristate "CMTP protocol support (DEPRECATED)" - depends on BT_BREDR && ISDN_CAPI && DEPRECATED - help - CMTP (CAPI Message Transport Protocol) is a transport layer - for CAPI messages. CMTP is required for the Bluetooth Common - ISDN Access Profile. - - Say Y here to compile CMTP support into the kernel or say M to - compile it as module (cmtp). -
drivers/Makefile +0 -1
@@ -123,7 +123,6 @@ obj-$(CONFIG_WATCHDOG) += watchdog/ obj-$(CONFIG_MD) += md/ obj-$(CONFIG_BT) += bluetooth/ obj-$(CONFIG_ACCESSIBILITY) += accessibility/ -obj-$(CONFIG_ISDN) += isdn/ obj-$(CONFIG_EDAC) += edac/ obj-$(CONFIG_EISA) += eisa/ obj-$(CONFIG_PM_OPP) += opp/
drivers/isdn/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# Makefile for the kernel ISDN subsystem and device drivers. - -# Object files in subdirectories - -obj-$(CONFIG_BT_CMTP) += capi/ -obj-$(CONFIG_MISDN) += mISDN/ -obj-$(CONFIG_ISDN) += hardware/
drivers/isdn/capi/Makefile deleted +0 -6
@@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# Makefile for the CAPI subsystem used by BT_CMTP - -obj-$(CONFIG_BT_CMTP) += kernelcapi.o -kernelcapi-y := kcapi.o capiutil.o capi.o -kernelcapi-$(CONFIG_PROC_FS) += kcapi_proc.o
drivers/isdn/hardware/Makefile deleted +0 -6
@@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# Makefile for the CAPI hardware drivers - -# Object files in subdirectories - -obj-$(CONFIG_MISDN) += mISDN/
drivers/isdn/hardware/mISDN/Makefile deleted +0 -19
@@ -1,19 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# -# Makefile for the modular ISDN hardware drivers -# -# - -obj-$(CONFIG_MISDN_HFCPCI) += hfcpci.o -obj-$(CONFIG_MISDN_HFCMULTI) += hfcmulti.o -obj-$(CONFIG_MISDN_HFCUSB) += hfcsusb.o -obj-$(CONFIG_MISDN_AVMFRITZ) += avmfritz.o -obj-$(CONFIG_MISDN_SPEEDFAX) += speedfax.o -obj-$(CONFIG_MISDN_INFINEON) += mISDNinfineon.o -obj-$(CONFIG_MISDN_W6692) += w6692.o -obj-$(CONFIG_MISDN_NETJET) += netjet.o -# chip modules -obj-$(CONFIG_MISDN_IPAC) += mISDNipac.o -obj-$(CONFIG_MISDN_ISAR) += mISDNisar.o - -obj-$(CONFIG_MISDN_HDLC) += isdnhdlc.o
drivers/isdn/mISDN/Makefile deleted +0 -14
@@ -1,14 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# -# Makefile for the modular ISDN driver -# - -obj-$(CONFIG_MISDN) += mISDN_core.o -obj-$(CONFIG_MISDN_DSP) += mISDN_dsp.o -obj-$(CONFIG_MISDN_L1OIP) += l1oip.o - -# multi objects - -mISDN_core-objs := core.o fsm.o socket.o clock.o hwchannel.o stack.o layer1.o layer2.o tei.o timerdev.o -mISDN_dsp-objs := dsp_core.o dsp_cmx.o dsp_tones.o dsp_dtmf.o dsp_audio.o dsp_blowfish.o dsp_pipeline.o dsp_hwec.o -l1oip-objs := l1oip_core.o l1oip_codec.o
net/bluetooth/Makefile +0 -1
@@ -6,7 +6,6 @@ obj-$(CONFIG_BT) += bluetooth.o obj-$(CONFIG_BT_RFCOMM) += rfcomm/ obj-$(CONFIG_BT_BNEP) += bnep/ -obj-$(CONFIG_BT_CMTP) += cmtp/ obj-$(CONFIG_BT_HIDP) += hidp/ obj-$(CONFIG_BT_6LOWPAN) += bluetooth_6lowpan.o
net/bluetooth/cmtp/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# -# Makefile for the Linux Bluetooth CMTP layer -# - -obj-$(CONFIG_BT_CMTP) += cmtp.o - -cmtp-objs := core.o sock.o capi.o
drivers/isdn/capi/kcapi.h deleted +0 -182
182 lines not on this page · raw message
drivers/isdn/hardware/mISDN/hfc_multi.h deleted +0 -1236
1,236 lines not on this page · raw message
drivers/isdn/hardware/mISDN/hfc_multi_8xx.h deleted +0 -167
167 lines not on this page · raw message
drivers/isdn/hardware/mISDN/hfc_pci.h deleted +0 -214
214 lines not on this page · raw message
drivers/isdn/hardware/mISDN/hfcsusb.h deleted +0 -425
422 lines not on this page · raw message
drivers/isdn/hardware/mISDN/iohelper.h deleted +0 -96
96 lines not on this page · raw message
drivers/isdn/hardware/mISDN/ipac.h deleted +0 -393
393 lines not on this page · raw message
drivers/isdn/hardware/mISDN/isar.h deleted +0 -256
256 lines not on this page · raw message
drivers/isdn/hardware/mISDN/isdnhdlc.h deleted +0 -69
69 lines not on this page · raw message
drivers/isdn/hardware/mISDN/netjet.h deleted +0 -44
44 lines not on this page · raw message
drivers/isdn/hardware/mISDN/w6692.h deleted +0 -177
177 lines not on this page · raw message
drivers/isdn/mISDN/core.h deleted +0 -69
69 lines not on this page · raw message
drivers/isdn/mISDN/dsp.h deleted +0 -277
277 lines not on this page · raw message
drivers/isdn/mISDN/dsp_biquad.h deleted +0 -51
51 lines not on this page · raw message
drivers/isdn/mISDN/dsp_ecdis.h deleted +0 -96
96 lines not on this page · raw message
drivers/isdn/mISDN/fsm.h deleted +0 -58
58 lines not on this page · raw message
drivers/isdn/mISDN/l1oip.h deleted +0 -92
92 lines not on this page · raw message
drivers/isdn/mISDN/layer2.h deleted +0 -131
131 lines not on this page · raw message
include/linux/isdn/capilli.h deleted +0 -95
95 lines not on this page · raw message
include/linux/isdn/capiutil.h deleted +0 -60
60 lines not on this page · raw message
include/linux/kernelcapi.h deleted +0 -45
45 lines not on this page · raw message
include/linux/mISDNhw.h deleted +0 -192
192 lines not on this page · raw message
include/linux/mISDNif.h deleted +0 -603
603 lines not on this page · raw message
include/uapi/linux/capi.h deleted +0 -134
134 lines not on this page · raw message
include/uapi/linux/isdn/capicmd.h deleted +0 -117
117 lines not on this page · raw message
include/uapi/linux/kernelcapi.h deleted +0 -48
48 lines not on this page · raw message
net/bluetooth/cmtp/cmtp.h deleted +0 -129
129 lines not on this page · raw message
drivers/isdn/capi/capi.c deleted +0 -1435
1,435 lines not on this page · raw message
drivers/isdn/capi/capiutil.c deleted +0 -677
677 lines not on this page · raw message
drivers/isdn/capi/kcapi.c deleted +0 -933
933 lines not on this page · raw message
drivers/isdn/capi/kcapi_proc.c deleted +0 -231
231 lines not on this page · raw message
drivers/isdn/hardware/mISDN/avmfritz.c deleted +0 -1164
1,164 lines not on this page · raw message
drivers/isdn/hardware/mISDN/hfcmulti.c deleted +0 -5540
5,540 lines not on this page · raw message
drivers/isdn/hardware/mISDN/hfcpci.c deleted +0 -2360
2,360 lines not on this page · raw message
drivers/isdn/hardware/mISDN/hfcsusb.c deleted +0 -2157
2,157 lines not on this page · raw message
drivers/isdn/hardware/mISDN/isdnhdlc.c deleted +0 -617
617 lines not on this page · raw message
drivers/isdn/hardware/mISDN/mISDNinfineon.c deleted +0 -1168
1,168 lines not on this page · raw message
drivers/isdn/hardware/mISDN/mISDNipac.c deleted +0 -1636
1,636 lines not on this page · raw message
drivers/isdn/hardware/mISDN/mISDNisar.c deleted +0 -1694
1,694 lines not on this page · raw message
drivers/isdn/hardware/mISDN/netjet.c deleted +0 -1154
1,154 lines not on this page · raw message
drivers/isdn/hardware/mISDN/speedfax.c deleted +0 -520
520 lines not on this page · raw message
drivers/isdn/hardware/mISDN/w6692.c deleted +0 -1417
1,417 lines not on this page · raw message
drivers/isdn/mISDN/clock.c deleted +0 -197
197 lines not on this page · raw message
drivers/isdn/mISDN/core.c deleted +0 -400
400 lines not on this page · raw message
drivers/isdn/mISDN/dsp_audio.c deleted +0 -421
421 lines not on this page · raw message
drivers/isdn/mISDN/dsp_blowfish.c deleted +0 -667
667 lines not on this page · raw message
drivers/isdn/mISDN/dsp_cmx.c deleted +0 -1949
1,949 lines not on this page · raw message
drivers/isdn/mISDN/dsp_core.c deleted +0 -1227
1,227 lines not on this page · raw message
drivers/isdn/mISDN/dsp_dtmf.c deleted +0 -313
313 lines not on this page · raw message
drivers/isdn/mISDN/dsp_hwec.c deleted +0 -122
122 lines not on this page · raw message
drivers/isdn/mISDN/dsp_pipeline.c deleted +0 -300
300 lines not on this page · raw message
drivers/isdn/mISDN/dsp_tones.c deleted +0 -550
550 lines not on this page · raw message
drivers/isdn/mISDN/fsm.c deleted +0 -176
176 lines not on this page · raw message
drivers/isdn/mISDN/hwchannel.c deleted +0 -516
516 lines not on this page · raw message
drivers/isdn/mISDN/l1oip_codec.c deleted +0 -358
358 lines not on this page · raw message
drivers/isdn/mISDN/l1oip_core.c deleted +0 -1505
1,505 lines not on this page · raw message
drivers/isdn/mISDN/layer1.c deleted +0 -415
415 lines not on this page · raw message
drivers/isdn/mISDN/layer2.c deleted +0 -2266
2,266 lines not on this page · raw message
drivers/isdn/mISDN/socket.c deleted +0 -825
825 lines not on this page · raw message
drivers/isdn/mISDN/stack.c deleted +0 -654
654 lines not on this page · raw message
drivers/isdn/mISDN/tei.c deleted +0 -1416
1,416 lines not on this page · raw message
drivers/isdn/mISDN/timerdev.c deleted +0 -295
295 lines not on this page · raw message
net/bluetooth/cmtp/capi.c deleted +0 -579
579 lines not on this page · raw message
net/bluetooth/cmtp/core.c deleted +0 -519
519 lines not on this page · raw message
net/bluetooth/cmtp/sock.c deleted +0 -271
271 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.53.0
Part of the diff is not shown here. View the raw message.
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1083566
---Test result---
Test Summary:
CheckPatch PASS 13.02 seconds GitLint PASS 0.47 seconds SubjectPrefix FAIL 0.14 seconds BuildKernel PASS 28.12 seconds CheckAllWarning PASS 30.38 seconds CheckSparse PASS 29.18 seconds BuildKernel32 PASS 27.03 seconds TestRunnerSetup PASS 593.59 seconds TestRunner_l2cap-tester PASS 28.56 seconds TestRunner_iso-tester PASS 44.98 seconds TestRunner_bnep-tester PASS 6.62 seconds TestRunner_mgmt-tester FAIL 116.17 seconds TestRunner_rfcomm-tester PASS 9.66 seconds TestRunner_sco-tester PASS 14.67 seconds TestRunner_ioctl-tester PASS 10.62 seconds TestRunner_mesh-tester FAIL 12.27 seconds TestRunner_smp-tester PASS 8.89 seconds TestRunner_userchan-tester PASS 6.99 seconds TestRunner_6lowpan-tester FAIL 8.73 seconds IncrementalBuild PASS 27.11 seconds
Details
##############################
Test: SubjectPrefix - FAIL
Desc: Check subject contains "Bluetooth" prefix Output:
"Bluetooth: " prefix is not specified in the subject
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner Output:
Total: 494, Passed: 489 (99.0%), Failed: 1, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.115 seconds
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0
Failed Test Cases
Mesh - Send cancel - 1 Timed out 2.394 seconds Mesh - Send cancel - 2 Timed out 1.992 seconds
##############################
Test: TestRunner_6lowpan-tester - FAIL
Desc: Run 6lowpan-tester with test-runner
Output:
WARNING: possible circular locking dependency detected 7.0.0-rc7-g9259e7c11b57 #1 Not tainted
------------------------------------------------------
kworker/0:0/9 is trying to acquire lock:ffff8880026d9940 ((wq_completion)hci0#2){+.+.}-{0:0}, at: touch_wq_lockdep_map+0x75/0x180
but task is already holding lock:ffffffff9144f960 (rtnl_mutex){+.+.}-{4:4}, at: lowpan_unregister_netdev+0xd/0x30
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #4 (rtnl_mutex){+.+.}-{4:4}:
lock_acquire+0xf7/0x2c0
__mutex_lock+0x16b/0x1fc0
lowpan_register_netdev+0x11/0x30
chan_ready_cb+0x836/0xd00
l2cap_recv_frame+0x61bb/0x88e0
l2cap_recv_acldata+0x790/0xdf0
hci_rx_work+0x500/0xd00
process_scheduled_works+0xba7/0x1a90
worker_thread+0x514/0xbb0
kthread+0x368/0x490
ret_from_fork+0x498/0x7e0
ret_from_fork_asm+0x19/0x30-> #3 (&chan->lock#3/1){+.+.}-{4:4}:
lock_acquire+0xf7/0x2c0
__mutex_lock+0x16b/0x1fc0
l2cap_chan_connect+0x74e/0x1980
lowpan_control_write+0x523/0x660
full_proxy_write+0x10b/0x190
vfs_write+0x1c0/0xf60
ksys_write+0xf1/0x1d0
do_syscall_64+0xa0/0x570
entry_SYSCALL_64_after_hwframe+0x74/0x7c-> #2 (&conn->lock){+.+.}-{4:4}:
...
Total: 8, Passed: 8 (100.0%), Failed: 0, Not Run: 0
https://github.com/bluez/bluetooth-next/pull/107
---
Regards,
Linux Bluetooth
Quoted 13 lines · Jakub Kicinski
Remove the ISDN (mISDN, CAPI) subsystem and Bluetooth CMTP protocol from the kernel tree.
ISDN is a pretty old technology and it's unclear whether anyone still uses it. I went over the last few years of git history and all the commits are either tree-wide conversions or syzbot/static analyzer fixes.
When we discussed removal in the past IIRC there were some concerns about ISDN still being used in parts of Germany. Unfortunately, the code base is quite old, none of the current maintainers are familiar with it and AI tools will have a field day finding bugs here.
Quoted 8 lines
Delete this code and preserve it in an out-of-tree repository for any remaining users:
https://github.com/linux-netdev/mod-orphanUAPI constants AF_ISDN/PF_ISDN and the SELinux
isdn_socketclass are preserved for ABI stability, but the rest of uAPI is removed.Signed-off-by Jakub Kicinski <[email protected]>
Quoted 17 lines · On Mon, 20 Apr 2026 19:21:07 -0700 Jakub Kicinski <[email protected]> wrote:
Remove the ISDN (mISDN, CAPI) subsystem and Bluetooth CMTP protocol from the kernel tree.
ISDN is a pretty old technology and it's unclear whether anyone still uses it. I went over the last few years of git history and all the commits are either tree-wide conversions or syzbot/static analyzer fixes.
When we discussed removal in the past IIRC there were some concerns about ISDN still being used in parts of Germany. Unfortunately, the code base is quite old, none of the current maintainers are familiar with it and AI tools will have a field day finding bugs here.
Delete this code and preserve it in an out-of-tree repository for any remaining users:
https://github.com/linux-netdev/mod-orphan
Quoted 5 lines
UAPI constants AF_ISDN/PF_ISDN and the SELinux
isdn_socketclass are preserved for ABI stability, but the rest of uAPI is removed.Signed-off-by Jakub Kicinski <[email protected]>---
Will remove it from iproute2-next as well
Hi Jakub,
Quoted 45,711 lines · Jakub Kicinski
Remove the ISDN (mISDN, CAPI) subsystem and Bluetooth CMTP protocol from the kernel tree.
ISDN is a pretty old technology and it's unclear whether anyone still uses it. I went over the last few years of git history and all the commits are either tree-wide conversions or syzbot/static analyzer fixes.
When we discussed removal in the past IIRC there were some concerns about ISDN still being used in parts of Germany. Unfortunately, the code base is quite old, none of the current maintainers are familiar with it and AI tools will have a field day finding bugs here.
Delete this code and preserve it in an out-of-tree repository for any remaining users:
https://github.com/linux-netdev/mod-orphanUAPI constants AF_ISDN/PF_ISDN and the SELinux
isdn_socketclass are preserved for ABI stability, but the rest of uAPI is removed.Signed-off-by Jakub Kicinski <[email protected]>---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]--- MAINTAINERS | 19 - Documentation/isdn/credits.rst | 73 - Documentation/isdn/index.rst | 14 - Documentation/isdn/interface_capi.rst | 336 -- Documentation/isdn/m_isdn.rst | 9 - Documentation/subsystem-apis.rst | 1 - drivers/Kconfig | 2 - drivers/isdn/Kconfig | 27 - drivers/isdn/capi/Kconfig | 32 - drivers/isdn/hardware/mISDN/Kconfig | 98 - drivers/isdn/mISDN/Kconfig | 48 - net/bluetooth/Kconfig | 3 - net/bluetooth/cmtp/Kconfig | 12 - drivers/Makefile | 1 - drivers/isdn/Makefile | 8 - drivers/isdn/capi/Makefile | 6 - drivers/isdn/hardware/Makefile | 6 - drivers/isdn/hardware/mISDN/Makefile | 19 - drivers/isdn/mISDN/Makefile | 14 - net/bluetooth/Makefile | 1 - net/bluetooth/cmtp/Makefile | 8 - drivers/isdn/capi/kcapi.h | 182 - drivers/isdn/hardware/mISDN/hfc_multi.h | 1236 ----- drivers/isdn/hardware/mISDN/hfc_multi_8xx.h | 167 - drivers/isdn/hardware/mISDN/hfc_pci.h | 214 - drivers/isdn/hardware/mISDN/hfcsusb.h | 425 -- drivers/isdn/hardware/mISDN/iohelper.h | 96 - drivers/isdn/hardware/mISDN/ipac.h | 393 -- drivers/isdn/hardware/mISDN/isar.h | 256 - drivers/isdn/hardware/mISDN/isdnhdlc.h | 69 - drivers/isdn/hardware/mISDN/netjet.h | 44 - drivers/isdn/hardware/mISDN/w6692.h | 177 - drivers/isdn/mISDN/core.h | 69 - drivers/isdn/mISDN/dsp.h | 277 - drivers/isdn/mISDN/dsp_biquad.h | 51 - drivers/isdn/mISDN/dsp_ecdis.h | 96 - drivers/isdn/mISDN/dsp_hwec.h | 10 - drivers/isdn/mISDN/fsm.h | 58 - drivers/isdn/mISDN/l1oip.h | 92 - drivers/isdn/mISDN/layer1.h | 16 - drivers/isdn/mISDN/layer2.h | 131 - include/linux/isdn/capilli.h | 95 - include/linux/isdn/capiutil.h | 60 - include/linux/kernelcapi.h | 45 - include/linux/mISDNdsp.h | 40 - include/linux/mISDNhw.h | 192 - include/linux/mISDNif.h | 603 -- include/uapi/linux/capi.h | 134 - include/uapi/linux/isdn/capicmd.h | 117 - include/uapi/linux/kernelcapi.h | 48 - net/bluetooth/cmtp/cmtp.h | 129 - drivers/isdn/capi/capi.c | 1435 ----- drivers/isdn/capi/capiutil.c | 677 --- drivers/isdn/capi/kcapi.c | 933 ---- drivers/isdn/capi/kcapi_proc.c | 231 - drivers/isdn/hardware/mISDN/avmfritz.c | 1164 ---- drivers/isdn/hardware/mISDN/hfcmulti.c | 5540 ------------------- drivers/isdn/hardware/mISDN/hfcpci.c | 2360 -------- drivers/isdn/hardware/mISDN/hfcsusb.c | 2157 -------- drivers/isdn/hardware/mISDN/isdnhdlc.c | 617 --- drivers/isdn/hardware/mISDN/mISDNinfineon.c | 1168 ---- drivers/isdn/hardware/mISDN/mISDNipac.c | 1636 ------ drivers/isdn/hardware/mISDN/mISDNisar.c | 1694 ------ drivers/isdn/hardware/mISDN/netjet.c | 1154 ---- drivers/isdn/hardware/mISDN/speedfax.c | 520 -- drivers/isdn/hardware/mISDN/w6692.c | 1417 ----- drivers/isdn/mISDN/clock.c | 197 - drivers/isdn/mISDN/core.c | 400 -- drivers/isdn/mISDN/dsp_audio.c | 421 -- drivers/isdn/mISDN/dsp_blowfish.c | 667 --- drivers/isdn/mISDN/dsp_cmx.c | 1949 ------- drivers/isdn/mISDN/dsp_core.c | 1227 ---- drivers/isdn/mISDN/dsp_dtmf.c | 313 -- drivers/isdn/mISDN/dsp_hwec.c | 122 - drivers/isdn/mISDN/dsp_pipeline.c | 300 - drivers/isdn/mISDN/dsp_tones.c | 550 -- drivers/isdn/mISDN/fsm.c | 176 - drivers/isdn/mISDN/hwchannel.c | 516 -- drivers/isdn/mISDN/l1oip_codec.c | 358 -- drivers/isdn/mISDN/l1oip_core.c | 1505 ----- drivers/isdn/mISDN/layer1.c | 415 -- drivers/isdn/mISDN/layer2.c | 2266 -------- drivers/isdn/mISDN/socket.c | 825 --- drivers/isdn/mISDN/stack.c | 654 --- drivers/isdn/mISDN/tei.c | 1416 ----- drivers/isdn/mISDN/timerdev.c | 295 - net/bluetooth/cmtp/capi.c | 579 -- net/bluetooth/cmtp/core.c | 519 -- net/bluetooth/cmtp/sock.c | 271 - CREDITS | 5 + 90 files changed, 5 insertions(+), 44903 deletions(-) delete mode 100644 Documentation/isdn/credits.rst delete mode 100644 Documentation/isdn/index.rst delete mode 100644 Documentation/isdn/interface_capi.rst delete mode 100644 Documentation/isdn/m_isdn.rst delete mode 100644 drivers/isdn/Kconfig delete mode 100644 drivers/isdn/capi/Kconfig delete mode 100644 drivers/isdn/hardware/mISDN/Kconfig delete mode 100644 drivers/isdn/mISDN/Kconfig delete mode 100644 net/bluetooth/cmtp/Kconfig delete mode 100644 drivers/isdn/Makefile delete mode 100644 drivers/isdn/capi/Makefile delete mode 100644 drivers/isdn/hardware/Makefile delete mode 100644 drivers/isdn/hardware/mISDN/Makefile delete mode 100644 drivers/isdn/mISDN/Makefile delete mode 100644 net/bluetooth/cmtp/Makefile delete mode 100644 drivers/isdn/capi/kcapi.h delete mode 100644 drivers/isdn/hardware/mISDN/hfc_multi.h delete mode 100644 drivers/isdn/hardware/mISDN/hfc_multi_8xx.h delete mode 100644 drivers/isdn/hardware/mISDN/hfc_pci.h delete mode 100644 drivers/isdn/hardware/mISDN/hfcsusb.h delete mode 100644 drivers/isdn/hardware/mISDN/iohelper.h delete mode 100644 drivers/isdn/hardware/mISDN/ipac.h delete mode 100644 drivers/isdn/hardware/mISDN/isar.h delete mode 100644 drivers/isdn/hardware/mISDN/isdnhdlc.h delete mode 100644 drivers/isdn/hardware/mISDN/netjet.h delete mode 100644 drivers/isdn/hardware/mISDN/w6692.h delete mode 100644 drivers/isdn/mISDN/core.h delete mode 100644 drivers/isdn/mISDN/dsp.h delete mode 100644 drivers/isdn/mISDN/dsp_biquad.h delete mode 100644 drivers/isdn/mISDN/dsp_ecdis.h delete mode 100644 drivers/isdn/mISDN/dsp_hwec.h delete mode 100644 drivers/isdn/mISDN/fsm.h delete mode 100644 drivers/isdn/mISDN/l1oip.h delete mode 100644 drivers/isdn/mISDN/layer1.h delete mode 100644 drivers/isdn/mISDN/layer2.h delete mode 100644 include/linux/isdn/capilli.h delete mode 100644 include/linux/isdn/capiutil.h delete mode 100644 include/linux/kernelcapi.h delete mode 100644 include/linux/mISDNdsp.h delete mode 100644 include/linux/mISDNhw.h delete mode 100644 include/linux/mISDNif.h delete mode 100644 include/uapi/linux/capi.h delete mode 100644 include/uapi/linux/isdn/capicmd.h delete mode 100644 include/uapi/linux/kernelcapi.h delete mode 100644 net/bluetooth/cmtp/cmtp.h delete mode 100644 drivers/isdn/capi/capi.c delete mode 100644 drivers/isdn/capi/capiutil.c delete mode 100644 drivers/isdn/capi/kcapi.c delete mode 100644 drivers/isdn/capi/kcapi_proc.c delete mode 100644 drivers/isdn/hardware/mISDN/avmfritz.c delete mode 100644 drivers/isdn/hardware/mISDN/hfcmulti.c delete mode 100644 drivers/isdn/hardware/mISDN/hfcpci.c delete mode 100644 drivers/isdn/hardware/mISDN/hfcsusb.c delete mode 100644 drivers/isdn/hardware/mISDN/isdnhdlc.c delete mode 100644 drivers/isdn/hardware/mISDN/mISDNinfineon.c delete mode 100644 drivers/isdn/hardware/mISDN/mISDNipac.c delete mode 100644 drivers/isdn/hardware/mISDN/mISDNisar.c delete mode 100644 drivers/isdn/hardware/mISDN/netjet.c delete mode 100644 drivers/isdn/hardware/mISDN/speedfax.c delete mode 100644 drivers/isdn/hardware/mISDN/w6692.c delete mode 100644 drivers/isdn/mISDN/clock.c delete mode 100644 drivers/isdn/mISDN/core.c delete mode 100644 drivers/isdn/mISDN/dsp_audio.c delete mode 100644 drivers/isdn/mISDN/dsp_blowfish.c delete mode 100644 drivers/isdn/mISDN/dsp_cmx.c delete mode 100644 drivers/isdn/mISDN/dsp_core.c delete mode 100644 drivers/isdn/mISDN/dsp_dtmf.c delete mode 100644 drivers/isdn/mISDN/dsp_hwec.c delete mode 100644 drivers/isdn/mISDN/dsp_pipeline.c delete mode 100644 drivers/isdn/mISDN/dsp_tones.c delete mode 100644 drivers/isdn/mISDN/fsm.c delete mode 100644 drivers/isdn/mISDN/hwchannel.c delete mode 100644 drivers/isdn/mISDN/l1oip_codec.c delete mode 100644 drivers/isdn/mISDN/l1oip_core.c delete mode 100644 drivers/isdn/mISDN/layer1.c delete mode 100644 drivers/isdn/mISDN/layer2.c delete mode 100644 drivers/isdn/mISDN/socket.c delete mode 100644 drivers/isdn/mISDN/stack.c delete mode 100644 drivers/isdn/mISDN/tei.c delete mode 100644 drivers/isdn/mISDN/timerdev.c delete mode 100644 net/bluetooth/cmtp/capi.c delete mode 100644 net/bluetooth/cmtp/core.c delete mode 100644 net/bluetooth/cmtp/sock.cMAINTAINERS +0
-19@@ -13560,25 +13560,6 @@ S: Supported T: git git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git master F: drivers/infiniband/ulp/isert -ISDN/CMTP OVER BLUETOOTH -L: [email protected] -S: Orphan -W: http://www.isdn4linux.de -F: Documentation/isdn/ -F: drivers/isdn/capi/ -F: include/linux/isdn/ -F: include/uapi/linux/isdn/ -F: net/bluetooth/cmtp/ - -ISDN/mISDN SUBSYSTEM -L: [email protected] -S: Orphan -W: http://www.isdn4linux.de -F: drivers/isdn/Kconfig -F: drivers/isdn/Makefile -F: drivers/isdn/hardware/ -F: drivers/isdn/mISDN/ - ISL28022 HARDWARE MONITORING DRIVER M: Carsten Spieß <[email protected]> L: [email protected]Documentation/isdn/credits.rst deleted +0
-73@@ -1,73 +0,0 @@ -======= -Credits -======= - - -I want to thank all who contributed to this project and especially to: -(in alphabetical order) - -Thomas Bogendörfer ([email protected]) - Tester, lots of bugfixes and hints. - -Alan Cox ([email protected]) - For help getting into standard-kernel. - -Henner Eisen ([email protected]) - For X.25 implementation. - -Volker Götz ([email protected]) - For contribution of man-pages, the imontty-tool and a perfect - maintaining of the mailing-list at hub-wue. - -Matthias Hessler ([email protected]) - For creating and maintaining the FAQ. - -Bernhard Hailer ([email protected]) - For creating the FAQ, and the leafsite HOWTO. - -Michael 'Ghandi' Herold ([email protected]) - For contribution of the vbox answering machine. - -Michael Hipp ([email protected]) - For his Sync-PPP-code. - -Karsten Keil ([email protected]) - For adding 1TR6-support to the Teles-driver. - For the HiSax-driver. - -Michael Knigge ([email protected]) - For contributing the imon-tool - -Andreas Kool ([email protected]) - For contribution of the isdnlog/isdnrep-tool - -Pedro Roque Marques ([email protected]) - For lot of new ideas and the pcbit driver. - -Eberhard Mönkeberg ([email protected]) - For testing and help to get into kernel. - -Thomas Neumann ([email protected]) - For help with Cisco-SLARP and keepalive - -Jan den Ouden ([email protected]) - For contribution of the original teles-driver - -Carsten Paeth ([email protected]) - For the AVM-B1-CAPI2.0 driver - -Thomas Pfeiffer ([email protected]) - For V.110, extended T.70 and Hylafax extensions in isdn_tty.c - -Max Riegel ([email protected]) - For making the ICN hardware-documentation and test-equipment available. - -Armin Schindler ([email protected]) - For the eicon active card driver. - -Gerhard 'Fido' Schneider ([email protected]) - For heavy-duty-beta-testing with his BBS ;) - -Thomas Uhl ([email protected]) - For distributing the cards. - For pushing me to work ;-)Documentation/isdn/index.rst deleted +0
-14@@ -1,14 +0,0 @@ -.. SPDX-License-Identifier: GPL-2.0 - -==== -ISDN -==== - -.. toctree:: - :maxdepth: 2 - - interface_capi - - m_isdn - - creditsDocumentation/isdn/interface_capi.rst deleted +0
-336@@ -1,336 +0,0 @@ -========================================= -Kernel CAPI Interface to Hardware Drivers -========================================= - -1. Overview -=========== - -From the CAPI 2.0 specification: -COMMON-ISDN-API (CAPI) is an application programming interface standard used -to access ISDN equipment connected to basic rate interfaces (BRI) and primary -rate interfaces (PRI). - -Kernel CAPI operates as a dispatching layer between CAPI applications and CAPI -hardware drivers. Hardware drivers register ISDN devices (controllers, in CAPI -lingo) with Kernel CAPI to indicate their readiness to provide their service -to CAPI applications. CAPI applications also register with Kernel CAPI, -requesting association with a CAPI device. Kernel CAPI then dispatches the -application registration to an available device, forwarding it to the -corresponding hardware driver. Kernel CAPI then forwards CAPI messages in both -directions between the application and the hardware driver. - -Format and semantics of CAPI messages are specified in the CAPI 2.0 standard. -This standard is freely available from https://www.capi.org. - - -2. Driver and Device Registration -================================= - -CAPI drivers must register each of the ISDN devices they control with Kernel -CAPI by calling the Kernel CAPI function attach_capi_ctr() with a pointer to a -struct capi_ctr before they can be used. This structure must be filled with -the names of the driver and controller, and a number of callback function -pointers which are subsequently used by Kernel CAPI for communicating with the -driver. The registration can be revoked by calling the function -detach_capi_ctr() with a pointer to the same struct capi_ctr. - -Before the device can be actually used, the driver must fill in the device -information fields 'manu', 'version', 'profile' and 'serial' in the capi_ctr -structure of the device, and signal its readiness by calling capi_ctr_ready(). -From then on, Kernel CAPI may call the registered callback functions for the -device. - -If the device becomes unusable for any reason (shutdown, disconnect ...), the -driver has to call capi_ctr_down(). This will prevent further calls to the -callback functions by Kernel CAPI. - - -3. Application Registration and Communication -============================================= - -Kernel CAPI forwards registration requests from applications (calls to CAPI -operation CAPI_REGISTER) to an appropriate hardware driver by calling its -register_appl() callback function. A unique Application ID (ApplID, u16) is -allocated by Kernel CAPI and passed to register_appl() along with the -parameter structure provided by the application. This is analogous to the -open() operation on regular files or character devices. - -After a successful return from register_appl(), CAPI messages from the -application may be passed to the driver for the device via calls to the -send_message() callback function. Conversely, the driver may call Kernel -CAPI's capi_ctr_handle_message() function to pass a received CAPI message to -Kernel CAPI for forwarding to an application, specifying its ApplID. - -Deregistration requests (CAPI operation CAPI_RELEASE) from applications are -forwarded as calls to the release_appl() callback function, passing the same -ApplID as with register_appl(). After return from release_appl(), no CAPI -messages for that application may be passed to or from the device anymore. - - -4. Data Structures -================== - -4.1 struct capi_driver ----------------------- - -This structure describes a Kernel CAPI driver itself. It is used in the -register_capi_driver() and unregister_capi_driver() functions, and contains -the following non-private fields, all to be set by the driver before calling -register_capi_driver(): - -``char name[32]`` - the name of the driver, as a zero-terminated ASCII string -``char revision[32]`` - the revision number of the driver, as a zero-terminated ASCII string - -4.2 struct capi_ctr -------------------- - -This structure describes an ISDN device (controller) handled by a Kernel CAPI -driver. After registration via the attach_capi_ctr() function it is passed to -all controller specific lower layer interface and callback functions to -identify the controller to operate on. - -It contains the following non-private fields: - -to be set by the driver before calling attach_capi_ctr(): -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -``struct module *owner`` - pointer to the driver module owning the device - -``void *driverdata`` - an opaque pointer to driver specific data, not touched by Kernel CAPI - -``char name[32]`` - the name of the controller, as a zero-terminated ASCII string - -``char *driver_name`` - the name of the driver, as a zero-terminated ASCII string - -``int (*load_firmware)(struct capi_ctr *ctrlr, capiloaddata *ldata)`` - (optional) pointer to a callback function for sending firmware and - configuration data to the device - - The function may return before the operation has completed. - - Completion must be signalled by a call to capi_ctr_ready(). - - Return value: 0 on success, error code on error - Called in process context. - -``void (*reset_ctr)(struct capi_ctr *ctrlr)`` - (optional) pointer to a callback function for stopping the device, - releasing all registered applications - - The function may return before the operation has completed. - - Completion must be signalled by a call to capi_ctr_down(). - - Called in process context. - -``void (*register_appl)(struct capi_ctr *ctrlr, u16 applid, capi_register_params *rparam)`` - pointers to callback function for registration of - applications with the device - - Calls to these functions are serialized by Kernel CAPI so that only - one call to any of them is active at any time. - -``void (*release_appl)(struct capi_ctr *ctrlr, u16 applid)`` - pointers to callback functions deregistration of - applications with the device - - Calls to these functions are serialized by Kernel CAPI so that only - one call to any of them is active at any time. - -``u16 (*send_message)(struct capi_ctr *ctrlr, struct sk_buff *skb)`` - pointer to a callback function for sending a CAPI message to the - device - - Return value: CAPI error code - - If the method returns 0 (CAPI_NOERROR) the driver has taken ownership - of the skb and the caller may no longer access it. If it returns a - non-zero (error) value then ownership of the skb returns to the caller - who may reuse or free it. - - The return value should only be used to signal problems with respect - to accepting or queueing the message. Errors occurring during the - actual processing of the message should be signaled with an - appropriate reply message. - - May be called in process or interrupt context. - - Calls to this function are not serialized by Kernel CAPI, ie. it must - be prepared to be re-entered. - -``char *(*procinfo)(struct capi_ctr *ctrlr)`` - pointer to a callback function returning the entry for the device in - the CAPI controller info table, /proc/capi/controller - -Note: - Callback functions except send_message() are never called in interrupt - context. - -to be filled in before calling capi_ctr_ready(): -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -``u8 manu[CAPI_MANUFACTURER_LEN]`` - value to return for CAPI_GET_MANUFACTURER - -``capi_version version`` - value to return for CAPI_GET_VERSION - -``capi_profile profile`` - value to return for CAPI_GET_PROFILE - -``u8 serial[CAPI_SERIAL_LEN]`` - value to return for CAPI_GET_SERIAL - - -4.3 SKBs --------- - -CAPI messages are passed between Kernel CAPI and the driver via send_message() -and capi_ctr_handle_message(), stored in the data portion of a socket buffer -(skb). Each skb contains a single CAPI message coded according to the CAPI 2.0 -standard. - -For the data transfer messages, DATA_B3_REQ and DATA_B3_IND, the actual -payload data immediately follows the CAPI message itself within the same skb. -The Data and Data64 parameters are not used for processing. The Data64 -parameter may be omitted by setting the length field of the CAPI message to 22 -instead of 30. - - -4.4 The _cmsg Structure ------------------------ - -(declared in <linux/isdn/capiutil.h>) - -The _cmsg structure stores the contents of a CAPI 2.0 message in an easily -accessible form. It contains members for all possible CAPI 2.0 parameters, -including subparameters of the Additional Info and B Protocol structured -parameters, with the following exceptions: - -* second Calling party number (CONNECT_IND) - -* Data64 (DATA_B3_REQ and DATA_B3_IND) - -* Sending complete (subparameter of Additional Info, CONNECT_REQ and INFO_REQ) - -* Global Configuration (subparameter of B Protocol, CONNECT_REQ, CONNECT_RESP - and SELECT_B_PROTOCOL_REQ) - -Only those parameters appearing in the message type currently being processed -are actually used. Unused members should be set to zero. - -Members are named after the CAPI 2.0 standard names of the parameters they -represent. See <linux/isdn/capiutil.h> for the exact spelling. Member data -types are: - -=========== ================================================================= -u8 for CAPI parameters of type 'byte' - -u16 for CAPI parameters of type 'word' - -u32 for CAPI parameters of type 'dword' - -_cstruct for CAPI parameters of type 'struct' - The member is a pointer to a buffer containing the parameter in - CAPI encoding (length + content). It may also be NULL, which will - be taken to represent an empty (zero length) parameter. - Subparameters are stored in encoded form within the content part. - -_cmstruct alternative representation for CAPI parameters of type 'struct' - (used only for the 'Additional Info' and 'B Protocol' parameters) - The representation is a single byte containing one of the values: - CAPI_DEFAULT: The parameter is empty/absent. - CAPI_COMPOSE: The parameter is present. - Subparameter values are stored individually in the corresponding - _cmsg structure members. -=========== ================================================================= - - -5. Lower Layer Interface Functions -================================== - -:: - - int attach_capi_ctr(struct capi_ctr *ctrlr) - int detach_capi_ctr(struct capi_ctr *ctrlr) - -register/unregister a device (controller) with Kernel CAPI - -:: - - void capi_ctr_ready(struct capi_ctr *ctrlr) - void capi_ctr_down(struct capi_ctr *ctrlr) - -signal controller ready/not ready - -:: - - void capi_ctr_handle_message(struct capi_ctr * ctrlr, u16 applid, - struct sk_buff *skb) - -pass a received CAPI message to Kernel CAPI -for forwarding to the specified application - - -6. Helper Functions and Macros -============================== - -Macros to extract/set element values from/in a CAPI message header -(from <linux/isdn/capiutil.h>): - -====================== ============================= ==================== -Get Macro Set Macro Element (Type) -====================== ============================= ==================== -CAPIMSG_LEN(m) CAPIMSG_SETLEN(m, len) Total Length (u16) -CAPIMSG_APPID(m) CAPIMSG_SETAPPID(m, applid) ApplID (u16) -CAPIMSG_COMMAND(m) CAPIMSG_SETCOMMAND(m,cmd) Command (u8) -CAPIMSG_SUBCOMMAND(m) CAPIMSG_SETSUBCOMMAND(m, cmd) Subcommand (u8) -CAPIMSG_CMD(m) - Command*256 - + Subcommand (u16) -CAPIMSG_MSGID(m) CAPIMSG_SETMSGID(m, msgid) Message Number (u16) - -CAPIMSG_CONTROL(m) CAPIMSG_SETCONTROL(m, contr) Controller/PLCI/NCCI - (u32) -CAPIMSG_DATALEN(m) CAPIMSG_SETDATALEN(m, len) Data Length (u16) -====================== ============================= ==================== - - -Library functions for working with _cmsg structures -(from <linux/isdn/capiutil.h>): - -``char *capi_cmd2str(u8 Command, u8 Subcommand)`` - Returns the CAPI 2.0 message name corresponding to the given command - and subcommand values, as a static ASCII string. The return value may - be NULL if the command/subcommand is not one of those defined in the - CAPI 2.0 standard. - - -7. Debugging -============ - -The module kernelcapi has a module parameter showcapimsgs controlling some -debugging output produced by the module. It can only be set when the module is -loaded, via a parameter "showcapimsgs=<n>" to the modprobe command, either on -the command line or in the configuration file. - -If the lowest bit of showcapimsgs is set, kernelcapi logs controller and -application up and down events. - -In addition, every registered CAPI controller has an associated traceflag -parameter controlling how CAPI messages sent from and to the controller are -logged. The traceflag parameter is initialized with the value of the -showcapimsgs parameter when the controller is registered, but can later be -changed via the MANUFACTURER_REQ command KCAPI_CMD_TRACE. - -If the value of traceflag is non-zero, CAPI messages are logged. -DATA_B3 messages are only logged if the value of traceflag is > 2. - -If the lowest bit of traceflag is set, only the command/subcommand and message -length are logged. Otherwise, kernelcapi logs a readable representation of -the entire message.Documentation/isdn/m_isdn.rst deleted +0
-9@@ -1,9 +0,0 @@ -============ -mISDN Driver -============ - -mISDN is a new modular ISDN driver, in the long term it should replace -the old I4L driver architecture for passive ISDN cards. -It was designed to allow a broad range of applications and interfaces -but only have the basic function in kernel, the interface to the user -space is based on sockets with a own address family AF_ISDN.Documentation/subsystem-apis.rst +0
-1@@ -46,7 +46,6 @@ Networking interfaces networking/index netlabel/index infiniband/index - isdn/index mhi/index Storage interfacesdrivers/Kconfig +0
-2@@ -61,8 +61,6 @@ source "drivers/macintosh/Kconfig" source "drivers/net/Kconfig" -source "drivers/isdn/Kconfig" - # input before char - char/joystick depends on it. As does USB. source "drivers/input/Kconfig"drivers/isdn/Kconfig deleted +0
-27@@ -1,27 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# -# ISDN device configuration -# - -menuconfig ISDN - bool "ISDN support" - depends on NET && NETDEVICES - help - ISDN ("Integrated Services Digital Network", called RNIS in France) - is a fully digital telephone service that can be used for voice and - data connections. If your computer is equipped with an ISDN - adapter you can use it to connect to your Internet service provider - (with SLIP or PPP) faster than via a conventional telephone modem - (though still much slower than with DSL) or to make and accept - voice calls (eg. turning your PC into a software answering machine - or PABX). - - Select this option if you want your kernel to support ISDN. - -if ISDN - -source "drivers/isdn/capi/Kconfig" - -source "drivers/isdn/mISDN/Kconfig" - -endif # ISDNdrivers/isdn/capi/Kconfig deleted +0
-32@@ -1,32 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -config ISDN_CAPI - def_bool ISDN && BT - help - This provides CAPI (the Common ISDN Application Programming - Interface) Version 2.0, a standard making it easy for programs to - access ISDN hardware in a device independent way. (For details see - <https://www.capi.org/>.) CAPI supports making and accepting voice - and data connections, controlling call options and protocols, - as well as ISDN supplementary services like call forwarding or - three-party conferences (if supported by the specific hardware - driver). - - This subsystem requires a hardware specific driver. - See CONFIG_BT_CMTP for the last remaining regular driver - in the kernel that uses the CAPI subsystem. - -config CAPI_TRACE - def_bool BT_CMTP - help - If you say Y here, the kernelcapi driver can make verbose traces - of CAPI messages. This feature can be enabled/disabled via IOCTL for - every controller (default disabled). - -config ISDN_CAPI_MIDDLEWARE - def_bool BT_CMTP && TTY - help - This option will enhance the capabilities of the /dev/capi20 - interface. It will provide a means of moving a data connection, - established via the usual /dev/capi20 interface to a special tty - device. If you want to use pppd with pppdcapiplugin to dial up to - your ISP, say Y here.drivers/isdn/hardware/mISDN/Kconfig deleted +0
-98@@ -1,98 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# -# Hardware for mISDN -# -comment "mISDN hardware drivers" - -config MISDN_HFCPCI - tristate "Support for HFC PCI cards" - depends on MISDN - depends on PCI - help - Enable support for cards with Cologne Chip AG's - HFC PCI chip. - -config MISDN_HFCMULTI - tristate "Support for HFC multiport cards (HFC-4S/8S/E1)" - depends on (PCI || CPM1) && HAS_IOPORT - depends on MISDN - help - Enable support for cards with Cologne Chip AG's HFC multiport - chip. There are three types of chips that are quite similar, - but the interface is different: - * HFC-4S (4 S/T interfaces on one chip) - * HFC-8S (8 S/T interfaces on one chip) - * HFC-E1 (E1 interface for 2Mbit ISDN) - -config MISDN_HFCMULTI_8xx - bool "Support for XHFC embedded board in HFC multiport driver" - depends on MISDN - depends on MISDN_HFCMULTI - depends on CPM1 - default CPM1 - help - Enable support for the XHFC embedded solution from Speech Design. - -config MISDN_HFCUSB - tristate "Support for HFC-S USB based TAs" - depends on USB - help - Enable support for USB ISDN TAs with Cologne Chip AG's - HFC-S USB ISDN Controller - -config MISDN_AVMFRITZ - tristate "Support for AVM FRITZ!CARD PCI" - depends on MISDN - depends on PCI && HAS_IOPORT - select MISDN_IPAC - help - Enable support for AVMs FRITZ!CARD PCI cards - -config MISDN_SPEEDFAX - tristate "Support for Sedlbauer Speedfax+" - depends on MISDN - depends on PCI && HAS_IOPORT - select MISDN_IPAC - select MISDN_ISAR - help - Enable support for Sedlbauer Speedfax+. - -config MISDN_INFINEON - tristate "Support for cards with Infineon chipset" - depends on MISDN - depends on PCI && HAS_IOPORT - select MISDN_IPAC - help - Enable support for cards with ISAC + HSCX, IPAC or IPAC-SX - chip from Infineon (former manufacturer Siemens). - -config MISDN_W6692 - tristate "Support for cards with Winbond 6692" - depends on MISDN - depends on PCI && HAS_IOPORT - help - Enable support for Winbond 6692 PCI chip based cards. - -config MISDN_NETJET - tristate "Support for NETJet cards" - depends on MISDN - depends on PCI && HAS_IOPORT - depends on TTY - select MISDN_IPAC - select MISDN_HDLC - help - Enable support for Traverse Technologies NETJet PCI cards. - -config MISDN_HDLC - tristate - select CRC_CCITT - select BITREVERSE - -config MISDN_IPAC - tristate - depends on MISDN - -config MISDN_ISAR - tristate - depends on MISDN -drivers/isdn/mISDN/Kconfig deleted +0
-48@@ -1,48 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# -# modularer ISDN driver -# - -menuconfig MISDN - tristate "Modular ISDN driver" - help - Enable support for the modular ISDN driver. - -if MISDN != n - -config MISDN_DSP - tristate "Digital Audio Processing of transparent data" - depends on MISDN - select BITREVERSE - help - Enable support for digital audio processing capability. - - This module may be used for special applications that require - cross connecting of bchannels, conferencing, dtmf decoding, - echo cancellation, tone generation, and Blowfish encryption and - decryption. It may use hardware features if available. - - E.g. it is required for PBX4Linux. Go to http://isdn.eversberg.eu - and get more information about this module and its usage. - - If unsure, say 'N'. - -config MISDN_L1OIP - tristate "ISDN over IP tunnel" - depends on MISDN - help - Enable support for ISDN over IP tunnel. - - It features: - - dynamic IP exchange, if one or both peers have dynamic IPs - - BRI (S0) and PRI (S2M) interface - - layer 1 control via network keepalive frames - - direct tunneling of physical interface via IP - - NOTE: This protocol is called 'Layer 1 over IP' and is not - compatible with ISDNoIP (Agfeo) or TDMoIP. Protocol description is - provided in the source code. - -source "drivers/isdn/hardware/mISDN/Kconfig" - -endif #MISDNnet/bluetooth/Kconfig +0
-3@@ -33,7 +33,6 @@ menuconfig BT HCI Device drivers (Interface to the hardware) RFCOMM Module (RFCOMM Protocol) BNEP Module (Bluetooth Network Encapsulation Protocol) - CMTP Module (CAPI Message Transport Protocol) HIDP Module (Human Interface Device Protocol) Say Y here to compile Bluetooth support into the kernel or say M to@@ -58,8 +57,6 @@ source "net/bluetooth/rfcomm/Kconfig" source "net/bluetooth/bnep/Kconfig" -source "net/bluetooth/cmtp/Kconfig" - source "net/bluetooth/hidp/Kconfig" config BT_LEnet/bluetooth/cmtp/Kconfig deleted +0
-12@@ -1,12 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -config BT_CMTP - tristate "CMTP protocol support (DEPRECATED)" - depends on BT_BREDR && ISDN_CAPI && DEPRECATED - help - CMTP (CAPI Message Transport Protocol) is a transport layer - for CAPI messages. CMTP is required for the Bluetooth Common - ISDN Access Profile. - - Say Y here to compile CMTP support into the kernel or say M to - compile it as module (cmtp). -drivers/Makefile +0
-1@@ -123,7 +123,6 @@ obj-$(CONFIG_WATCHDOG) += watchdog/ obj-$(CONFIG_MD) += md/ obj-$(CONFIG_BT) += bluetooth/ obj-$(CONFIG_ACCESSIBILITY) += accessibility/ -obj-$(CONFIG_ISDN) += isdn/ obj-$(CONFIG_EDAC) += edac/ obj-$(CONFIG_EISA) += eisa/ obj-$(CONFIG_PM_OPP) += opp/drivers/isdn/Makefile deleted +0
-8@@ -1,8 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# Makefile for the kernel ISDN subsystem and device drivers. - -# Object files in subdirectories - -obj-$(CONFIG_BT_CMTP) += capi/ -obj-$(CONFIG_MISDN) += mISDN/ -obj-$(CONFIG_ISDN) += hardware/drivers/isdn/capi/Makefile deleted +0
-6@@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# Makefile for the CAPI subsystem used by BT_CMTP - -obj-$(CONFIG_BT_CMTP) += kernelcapi.o -kernelcapi-y := kcapi.o capiutil.o capi.o -kernelcapi-$(CONFIG_PROC_FS) += kcapi_proc.odrivers/isdn/hardware/Makefile deleted +0
-6@@ -1,6 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# Makefile for the CAPI hardware drivers - -# Object files in subdirectories - -obj-$(CONFIG_MISDN) += mISDN/drivers/isdn/hardware/mISDN/Makefile deleted +0
-19@@ -1,19 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# -# Makefile for the modular ISDN hardware drivers -# -# - -obj-$(CONFIG_MISDN_HFCPCI) += hfcpci.o -obj-$(CONFIG_MISDN_HFCMULTI) += hfcmulti.o -obj-$(CONFIG_MISDN_HFCUSB) += hfcsusb.o -obj-$(CONFIG_MISDN_AVMFRITZ) += avmfritz.o -obj-$(CONFIG_MISDN_SPEEDFAX) += speedfax.o -obj-$(CONFIG_MISDN_INFINEON) += mISDNinfineon.o -obj-$(CONFIG_MISDN_W6692) += w6692.o -obj-$(CONFIG_MISDN_NETJET) += netjet.o -# chip modules -obj-$(CONFIG_MISDN_IPAC) += mISDNipac.o -obj-$(CONFIG_MISDN_ISAR) += mISDNisar.o - -obj-$(CONFIG_MISDN_HDLC) += isdnhdlc.odrivers/isdn/mISDN/Makefile deleted +0
-14@@ -1,14 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# -# Makefile for the modular ISDN driver -# - -obj-$(CONFIG_MISDN) += mISDN_core.o -obj-$(CONFIG_MISDN_DSP) += mISDN_dsp.o -obj-$(CONFIG_MISDN_L1OIP) += l1oip.o - -# multi objects - -mISDN_core-objs := core.o fsm.o socket.o clock.o hwchannel.o stack.o layer1.o layer2.o tei.o timerdev.o -mISDN_dsp-objs := dsp_core.o dsp_cmx.o dsp_tones.o dsp_dtmf.o dsp_audio.o dsp_blowfish.o dsp_pipeline.o dsp_hwec.o -l1oip-objs := l1oip_core.o l1oip_codec.onet/bluetooth/Makefile +0
-1@@ -6,7 +6,6 @@ obj-$(CONFIG_BT) += bluetooth.o obj-$(CONFIG_BT_RFCOMM) += rfcomm/ obj-$(CONFIG_BT_BNEP) += bnep/ -obj-$(CONFIG_BT_CMTP) += cmtp/ obj-$(CONFIG_BT_HIDP) += hidp/ obj-$(CONFIG_BT_6LOWPAN) += bluetooth_6lowpan.onet/bluetooth/cmtp/Makefile deleted +0
-8@@ -1,8 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# -# Makefile for the Linux Bluetooth CMTP layer -# - -obj-$(CONFIG_BT_CMTP) += cmtp.o - -cmtp-objs := core.o sock.o capi.odrivers/isdn/capi/kcapi.h deleted +0
-182@@ -1,182 +0,0 @@ -/* -* Kernel CAPI 2.0 Module -* -* Copyright 1999 by Carsten Paeth <[email protected]> -* Copyright 2002 by Kai Germaschewski <[email protected]> -* -* This software may be used and distributed according to the terms -* of the GNU General Public License, incorporated herein by reference. -* -*/ - - -#include <linux/kernel.h> -#include <linux/spinlock.h> -#include <linux/list.h> -#include <linux/isdn/capilli.h> - -#ifdef KCAPI_DEBUG -#define DBG(format, arg...) do { \ - printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \ - } while (0) -#else -#define DBG(format, arg...) /* */ -#endif - -enum { -CAPI_CTR_DETACHED =0 , -CAPI_CTR_DETECTED =1 , -CAPI_CTR_LOADING =2 , -CAPI_CTR_RUNNING =3 , -}; - -extern struct capi_ctr *capi_controller[CAPI_MAXCONTR ]; -extern struct mutex capi_controller_lock; - -extern struct capi20_appl *capi_applications[CAPI_MAXAPPL ]; - -void kcapi_proc_init (void ); -void kcapi_proc_exit (void ); - -struct capi20_appl { -u16 applid; -capi_register_params rparam; -void (*recv_message)(struct capi20_appl *ap,struct sk_buff *skb); -void *private; - -/* internal to kernelcapi.o */ -unsigned long nrecvctlpkt; -unsigned long nrecvdatapkt; -unsigned long nsentctlpkt; -unsigned long nsentdatapkt; -struct mutex recv_mtx; -struct sk_buff_head recv_queue; -struct work_struct recv_work; -int release_in_progress; -}; - -u16 capi20_isinstalled (void ); -u16 capi20_register (struct capi20_appl *ap); -u16 capi20_release (struct capi20_appl *ap); -u16 capi20_put_message (struct capi20_appl *ap,struct sk_buff *skb); -u16 capi20_get_manufacturer (u32 contr,u8 buf[CAPI_MANUFACTURER_LEN ]); -u16 capi20_get_version (u32 contr,struct capi_version *verp); -u16 capi20_get_serial (u32 contr,u8 serial[CAPI_SERIAL_LEN ]); -u16 capi20_get_profile (u32 contr,struct capi_profile *profp); -int capi20_manufacturer (unsigned long cmd,void __user *data); - -#define CAPICTR_UP 0 -#define CAPICTR_DOWN 1 - -int kcapi_init (void ); -void kcapi_exit (void ); - -/*----- basic-type definitions -----*/ - -typedef __u8 *_cstruct ; - -typedef enum { -CAPI_COMPOSE , -CAPI_DEFAULT -}_cmstruct ; - -/* -The _cmsg structure contains all possible CAPI 2.0 parameter. -All parameters are stored here first. The function CAPI_CMSG_2_MESSAGE -assembles the parameter and builds CAPI2.0 conform messages. -CAPI_MESSAGE_2_CMSG disassembles CAPI 2.0 messages and stores the -parameter in the _cmsg structure -*/ - -typedef struct { -/* Header */ -__u16 ApplId; -__u8 Command; -__u8 Subcommand; -__u16 Messagenumber; - -/* Parameter */ -union { -__u32 adrController; -__u32 adrPLCI; -__u32 adrNCCI; - } adr; - -_cmstruct AdditionalInfo; -_cstruct B1configuration; -__u16 B1protocol; -_cstruct B2configuration; -__u16 B2protocol; -_cstruct B3configuration; -__u16 B3protocol; -_cstruct BC; -_cstruct BChannelinformation; -_cmstruct BProtocol; -_cstruct CalledPartyNumber; -_cstruct CalledPartySubaddress; -_cstruct CallingPartyNumber; -_cstruct CallingPartySubaddress; -__u32 CIPmask; -__u32 CIPmask2; -__u16 CIPValue; -__u32 Class; -_cstruct ConnectedNumber; -_cstruct ConnectedSubaddress; -__u32 Data; -__u16 DataHandle; -__u16 DataLength; -_cstruct FacilityConfirmationParameter; -_cstruct Facilitydataarray; -_cstruct FacilityIndicationParameter; -_cstruct FacilityRequestParameter; -__u16 FacilitySelector; -__u16 Flags; -__u32 Function; -_cstruct HLC; -__u16 Info; -_cstruct InfoElement; -__u32 InfoMask; -__u16 InfoNumber; -_cstruct Keypadfacility; -_cstruct LLC; -_cstruct ManuData; -__u32 ManuID; -_cstruct NCPI; -__u16 Reason; -__u16 Reason_B3; -__u16 Reject; -_cstruct Useruserdata; - -/* intern */ -unsigned l, p; -unsigned char *par; -__u8 *m; - -/* buffer to construct message */ -__u8 buf[180 ]; - -}_cmsg ; - -/*-----------------------------------------------------------------------*/ - -/* -* Debugging / Tracing functions -*/ - -char *capi_cmd2str (__u8 cmd,__u8 subcmd); - -typedef struct { -u_char *buf; -u_char *p; -size_t size; -size_t pos; -}_cdebbuf ; - -#define CDEBUG_SIZE 1024 -#define CDEBUG_GSIZE 4096 - -void cdebbuf_free (_cdebbuf *cdb); -int cdebug_init (void ); -void cdebug_exit (void ); - -_cdebbuf *capi_message2str (__u8 *msg);drivers/isdn/hardware/mISDN/hfc_multi.h deleted +0
-1236@@ -1,1236 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* -* see notice in hfc_multi.c -*/ - -#define DEBUG_HFCMULTI_FIFO 0x00010000 -#define DEBUG_HFCMULTI_CRC 0x00020000 -#define DEBUG_HFCMULTI_INIT 0x00040000 -#define DEBUG_HFCMULTI_PLXSD 0x00080000 -#define DEBUG_HFCMULTI_MODE 0x00100000 -#define DEBUG_HFCMULTI_MSG 0x00200000 -#define DEBUG_HFCMULTI_STATE 0x00400000 -#define DEBUG_HFCMULTI_FILL 0x00800000 -#define DEBUG_HFCMULTI_SYNC 0x01000000 -#define DEBUG_HFCMULTI_DTMF 0x02000000 -#define DEBUG_HFCMULTI_LOCK 0x80000000 - -#define PCI_ENA_REGIO 0x01 -#define PCI_ENA_MEMIO 0x02 - -#define XHFC_IRQ 4/* SIU_IRQ2 */ -#define XHFC_MEMBASE 0xFE000000 -#define XHFC_MEMSIZE 0x00001000 -#define XHFC_OFFSET 0x00001000 -#define PA_XHFC_A0 0x0020/* PA10 */ -#define PB_XHFC_IRQ1 0x00000100/* PB23 */ -#define PB_XHFC_IRQ2 0x00000200/* PB22 */ -#define PB_XHFC_IRQ3 0x00000400/* PB21 */ -#define PB_XHFC_IRQ4 0x00000800/* PB20 */ - -/* -* NOTE: some registers are assigned multiple times due to different modes -* also registers are assigned differen for HFC-4s/8s and HFC-E1 -*/ - -/* -#define MAX_FRAME_SIZE 2048 -*/ - -struct hfc_chan { -struct dchannel *dch;/* link if channel is a D-channel */ -struct bchannel *bch;/* link if channel is a B-channel */ -int port;/* the interface port this */ -/* channel is associated with */ -int nt_timer;/* -1 if off, 0 if elapsed, >0 if running */ -int los, ais, slip_tx, slip_rx, rdi;/* current alarms */ -int jitter; -u_long cfg;/* port configuration */ -int sync;/* sync state (used by E1) */ -u_int protocol;/* current protocol */ -int slot_tx;/* current pcm slot */ -int bank_tx;/* current pcm bank */ -int slot_rx; -int bank_rx; -int conf;/* conference setting of TX slot */ -int txpending;/* if there is currently data in */ -/* the FIFO 0=no, 1=yes, 2=splloop */ -int Zfill;/* rx-fifo level on last hfcmulti_tx */ -int rx_off;/* set to turn fifo receive off */ -int coeff_count;/* curren coeff block */ -s32 *coeff;/* memory pointer to 8 coeff blocks */ -}; - - -struct hfcm_hw { -u_char r_ctrl; -u_char r_irq_ctrl; -u_char r_cirm; -u_char r_ram_sz; -u_char r_pcm_md0; -u_char r_irqmsk_misc; -u_char r_dtmf; -u_char r_st_sync; -u_char r_sci_msk; -u_char r_tx0, r_tx1; -u_char a_st_ctrl0[8 ]; -u_char r_bert_wd_md; -timer_t timer; -}; - - -/* for each stack these flags are used (cfg) */ -#define HFC_CFG_NONCAP_TX 1/* S/T TX interface has less capacity */ -#define HFC_CFG_DIS_ECHANNEL 2/* disable E-channel processing */ -#define HFC_CFG_REG_ECHANNEL 3/* register E-channel */ -#define HFC_CFG_OPTICAL 4/* the E1 interface is optical */ -#define HFC_CFG_REPORT_LOS 5/* the card should report loss of signal */ -#define HFC_CFG_REPORT_AIS 6/* the card should report alarm ind. sign. */ -#define HFC_CFG_REPORT_SLIP 7/* the card should report bit slips */ -#define HFC_CFG_REPORT_RDI 8/* the card should report remote alarm */ -#define HFC_CFG_DTMF 9/* enable DTMF-detection */ -#define HFC_CFG_CRC4 10/* disable CRC-4 Multiframe mode, */ -/* use double frame instead. */ - -#define HFC_TYPE_E1 1/* controller is HFC-E1 */ -#define HFC_TYPE_4S 4/* controller is HFC-4S */ -#define HFC_TYPE_8S 8/* controller is HFC-8S */ -#define HFC_TYPE_XHFC 5/* controller is XHFC */ - -#define HFC_CHIP_EXRAM_128 0/* external ram 128k */ -#define HFC_CHIP_EXRAM_512 1/* external ram 256k */ -#define HFC_CHIP_REVISION0 2/* old fifo handling */ -#define HFC_CHIP_PCM_SLAVE 3/* PCM is slave */ -#define HFC_CHIP_PCM_MASTER 4/* PCM is master */ -#define HFC_CHIP_RX_SYNC 5/* disable pll sync for pcm */ -#define HFC_CHIP_DTMF 6/* DTMF decoding is enabled */ -#define HFC_CHIP_CONF 7/* conference handling is enabled */ -#define HFC_CHIP_ULAW 8/* ULAW mode */ -#define HFC_CHIP_CLOCK2 9/* double clock mode */ -#define HFC_CHIP_E1CLOCK_GET 10/* always get clock from E1 interface */ -#define HFC_CHIP_E1CLOCK_PUT 11/* always put clock from E1 interface */ -#define HFC_CHIP_WATCHDOG 12/* whether we should send signals */ -/* to the watchdog */ -#define HFC_CHIP_B410P 13/* whether we have a b410p with echocan in */ -/* hw */ -#define HFC_CHIP_PLXSD 14/* whether we have a Speech-Design PLX */ -#define HFC_CHIP_EMBSD 15/* whether we have a SD Embedded board */ - -#define HFC_IO_MODE_PCIMEM 0x00/* normal memory mapped IO */ -#define HFC_IO_MODE_REGIO 0x01/* PCI io access */ -#define HFC_IO_MODE_PLXSD 0x02/* access HFC via PLX9030 */ -#define HFC_IO_MODE_EMBSD 0x03/* direct access */ - -/* table entry in the PCI devices list */ -struct hm_map { -char *vendor_name; -char *card_name; -int type; -int ports; -int clock2; -int leds; -int opticalsupport; -int dip_type; -int io_mode; -int irq; -}; - -struct hfc_multi { -struct list_head list; -struct hm_map *mtyp; -int id; -int pcm;/* id of pcm bus */ -int ctype;/* controller type */ -int ports; - -u_int irq;/* irq used by card */ -u_int irqcnt; -struct pci_dev *pci_dev; -int io_mode;/* selects mode */ -#ifdef HFC_REGISTER_DEBUG -void (*HFC_outb)(struct hfc_multi *hc,u_char reg, -u_char val,const char *function,int line); -void (*HFC_outb_nodebug)(struct hfc_multi *hc,u_char reg, -u_char val,const char *function,int line); -u_char (*HFC_inb)(struct hfc_multi *hc,u_char reg, -const char *function,int line); -u_char (*HFC_inb_nodebug)(struct hfc_multi *hc,u_char reg, -const char *function,int line); -u_short (*HFC_inw)(struct hfc_multi *hc,u_char reg, -const char *function,int line); -u_short (*HFC_inw_nodebug)(struct hfc_multi *hc,u_char reg, -const char *function,int line); -void (*HFC_wait)(struct hfc_multi *hc, -const char *function,int line); -void (*HFC_wait_nodebug)(struct hfc_multi *hc, -const char *function,int line); -#else -void (*HFC_outb)(struct hfc_multi *hc,u_char reg, -u_char val); -void (*HFC_outb_nodebug)(struct hfc_multi *hc,u_char reg, -u_char val); -u_char (*HFC_inb)(struct hfc_multi *hc,u_char reg); -u_char (*HFC_inb_nodebug)(struct hfc_multi *hc,u_char reg); -u_short (*HFC_inw)(struct hfc_multi *hc,u_char reg); -u_short (*HFC_inw_nodebug)(struct hfc_multi *hc,u_char reg); -void (*HFC_wait)(struct hfc_multi *hc); -void (*HFC_wait_nodebug)(struct hfc_multi *hc); -#endif -void (*read_fifo)(struct hfc_multi *hc,u_char *data, -int len); -void (*write_fifo)(struct hfc_multi *hc,u_char *data, -int len); -u_long pci_origmembase, plx_origmembase; -void __iomem *pci_membase;/* PCI memory */ -void __iomem *plx_membase;/* PLX memory */ -u_long xhfc_origmembase; -u_char *xhfc_membase; -u_long *xhfc_memaddr, *xhfc_memdata; -#ifdef CONFIG_MISDN_HFCMULTI_8xx -struct immap *immap; -#endif -u_long pb_irqmsk;/* Portbit mask to check the IRQ line */ -u_long pci_iobase;/* PCI IO */ -struct hfcm_hw hw;/* remember data of write-only-registers */ - -u_long chip;/* chip configuration */ -int masterclk;/* port that provides master clock -1=off */ -unsigned char silence;/* silence byte */ -unsigned char silence_data[128 ];/* silence block */ -int dtmf;/* flag that dtmf is currently in process */ -int Flen;/* F-buffer size */ -int Zlen;/* Z-buffer size (must be int for calculation)*/ -int max_trans;/* maximum transparent fifo fill */ -int Zmin;/* Z-buffer offset */ -int DTMFbase;/* base address of DTMF coefficients */ - -u_int slots;/* number of PCM slots */ -u_int leds;/* type of leds */ -u_long ledstate;/* save last state of leds */ -int opticalsupport;/* has the e1 board */ -/* an optical Interface */ - -u_int bmask[32 ];/* bitmask of bchannels for port */ -u_char dnum[32 ];/* array of used dchannel numbers for port */ -u_char created[32 ];/* what port is created */ -u_int activity_tx;/* if there is data TX / RX */ -u_int activity_rx;/* bitmask according to port number */ -/* (will be cleared after */ -/* showing led-states) */ -u_int flash[8 ];/* counter for flashing 8 leds on activity */ - -u_long wdcount;/* every 500 ms we need to */ -/* send the watchdog a signal */ -u_char wdbyte;/* watchdog toggle byte */ -int e1_state;/* keep track of last state */ -int e1_getclock;/* if sync is retrieved from interface */ -int syncronized;/* keep track of existing sync interface */ -int e1_resync;/* resync jobs */ - -spinlock_t lock;/* the lock */ - -struct mISDNclock *iclock;/* isdn clock support */ -int iclock_on; - -/* -* the channel index is counted from 0, regardless where the channel -* is located on the hfc-channel. -* the bch->channel is equvalent to the hfc-channel -*/ -struct hfc_chan chan[32 ]; -signed char slot_owner[256 ];/* owner channel of slot */ -}; - -/* PLX GPIOs */ -#define PLX_GPIO4_DIR_BIT 13 -#define PLX_GPIO4_BIT 14 -#define PLX_GPIO5_DIR_BIT 16 -#define PLX_GPIO5_BIT 17 -#define PLX_GPIO6_DIR_BIT 19 -#define PLX_GPIO6_BIT 20 -#define PLX_GPIO7_DIR_BIT 22 -#define PLX_GPIO7_BIT 23 -#define PLX_GPIO8_DIR_BIT 25 -#define PLX_GPIO8_BIT 26 - -#define PLX_GPIO4 (1 << PLX_GPIO4_BIT) -#define PLX_GPIO5 (1 << PLX_GPIO5_BIT) -#define PLX_GPIO6 (1 << PLX_GPIO6_BIT) -#define PLX_GPIO7 (1 << PLX_GPIO7_BIT) -#define PLX_GPIO8 (1 << PLX_GPIO8_BIT) - -#define PLX_GPIO4_DIR (1 << PLX_GPIO4_DIR_BIT) -#define PLX_GPIO5_DIR (1 << PLX_GPIO5_DIR_BIT) -#define PLX_GPIO6_DIR (1 << PLX_GPIO6_DIR_BIT) -#define PLX_GPIO7_DIR (1 << PLX_GPIO7_DIR_BIT) -#define PLX_GPIO8_DIR (1 << PLX_GPIO8_DIR_BIT) - -#define PLX_TERM_ON PLX_GPIO7 -#define PLX_SLAVE_EN_N PLX_GPIO5 -#define PLX_MASTER_EN PLX_GPIO6 -#define PLX_SYNC_O_EN PLX_GPIO4 -#define PLX_DSP_RES_N PLX_GPIO8 -/* GPIO4..8 Enable & Set to OUT, SLAVE_EN_N = 1 */ -#define PLX_GPIOC_INIT (PLX_GPIO4_DIR | PLX_GPIO5_DIR | PLX_GPIO6_DIR \ - | PLX_GPIO7_DIR | PLX_GPIO8_DIR | PLX_SLAVE_EN_N) - -/* PLX Interrupt Control/STATUS */ -#define PLX_INTCSR_LINTI1_ENABLE 0x01 -#define PLX_INTCSR_LINTI1_STATUS 0x04 -#define PLX_INTCSR_LINTI2_ENABLE 0x08 -#define PLX_INTCSR_LINTI2_STATUS 0x20 -#define PLX_INTCSR_PCIINT_ENABLE 0x40 - -/* PLX Registers */ -#define PLX_INTCSR 0x4c -#define PLX_CNTRL 0x50 -#define PLX_GPIOC 0x54 - - -/* -* REGISTER SETTING FOR HFC-4S/8S AND HFC-E1 -*/ - -/* write only registers */ -#define R_CIRM 0x00 -#define R_CTRL 0x01 -#define R_BRG_PCM_CFG 0x02 -#define R_RAM_ADDR0 0x08 -#define R_RAM_ADDR1 0x09 -#define R_RAM_ADDR2 0x0A -#define R_FIRST_FIFO 0x0B -#define R_RAM_SZ 0x0C -#define R_FIFO_MD 0x0D -#define R_INC_RES_FIFO 0x0E -#define R_FSM_IDX 0x0F -#define R_FIFO 0x0F -#define R_SLOT 0x10 -#define R_IRQMSK_MISC 0x11 -#define R_SCI_MSK 0x12 -#define R_IRQ_CTRL 0x13 -#define R_PCM_MD0 0x14 -#define R_PCM_MD1 0x15 -#define R_PCM_MD2 0x15 -#define R_SH0H 0x15 -#define R_SH1H 0x15 -#define R_SH0L 0x15 -#define R_SH1L 0x15 -#define R_SL_SEL0 0x15 -#define R_SL_SEL1 0x15 -#define R_SL_SEL2 0x15 -#define R_SL_SEL3 0x15 -#define R_SL_SEL4 0x15 -#define R_SL_SEL5 0x15 -#define R_SL_SEL6 0x15 -#define R_SL_SEL7 0x15 -#define R_ST_SEL 0x16 -#define R_ST_SYNC 0x17 -#define R_CONF_EN 0x18 -#define R_TI_WD 0x1A -#define R_BERT_WD_MD 0x1B -#define R_DTMF 0x1C -#define R_DTMF_N 0x1D -#define R_E1_WR_STA 0x20 -#define R_E1_RD_STA 0x20 -#define R_LOS0 0x22 -#define R_LOS1 0x23 -#define R_RX0 0x24 -#define R_RX_FR0 0x25 -#define R_RX_FR1 0x26 -#define R_TX0 0x28 -#define R_TX1 0x29 -#define R_TX_FR0 0x2C - -#define R_TX_FR1 0x2D -#define R_TX_FR2 0x2E -#define R_JATT_ATT 0x2F/* undocumented */ -#define A_ST_RD_STATE 0x30 -#define A_ST_WR_STATE 0x30 -#define R_RX_OFF 0x30 -#define A_ST_CTRL0 0x31 -#define R_SYNC_OUT 0x31 -#define A_ST_CTRL1 0x32 -#define A_ST_CTRL2 0x33 -#define A_ST_SQ_WR 0x34 -#define R_TX_OFF 0x34 -#define R_SYNC_CTRL 0x35 -#define A_ST_CLK_DLY 0x37 -#define R_PWM0 0x38 -#define R_PWM1 0x39 -#define A_ST_B1_TX 0x3C -#define A_ST_B2_TX 0x3D -#define A_ST_D_TX 0x3E -#define R_GPIO_OUT0 0x40 -#define R_GPIO_OUT1 0x41 -#define R_GPIO_EN0 0x42 -#define R_GPIO_EN1 0x43 -#define R_GPIO_SEL 0x44 -#define R_BRG_CTRL 0x45 -#define R_PWM_MD 0x46 -#define R_BRG_MD 0x47 -#define R_BRG_TIM0 0x48 -#define R_BRG_TIM1 0x49 -#define R_BRG_TIM2 0x4A -#define R_BRG_TIM3 0x4B -#define R_BRG_TIM_SEL01 0x4C -#define R_BRG_TIM_SEL23 0x4D -#define R_BRG_TIM_SEL45 0x4E -#define R_BRG_TIM_SEL67 0x4F -#define A_SL_CFG 0xD0 -#define A_CONF 0xD1 -#define A_CH_MSK 0xF4 -#define A_CON_HDLC 0xFA -#define A_SUBCH_CFG 0xFB -#define A_CHANNEL 0xFC -#define A_FIFO_SEQ 0xFD -#define A_IRQ_MSK 0xFF - -/* read only registers */ -#define A_Z12 0x04 -#define A_Z1L 0x04 -#define A_Z1 0x04 -#define A_Z1H 0x05 -#define A_Z2L 0x06 -#define A_Z2 0x06 -#define A_Z2H 0x07 -#define A_F1 0x0C -#define A_F12 0x0C -#define A_F2 0x0D -#define R_IRQ_OVIEW 0x10 -#define R_IRQ_MISC 0x11 -#define R_IRQ_STATECH 0x12 -#define R_CONF_OFLOW 0x14 -#define R_RAM_USE 0x15 -#define R_CHIP_ID 0x16 -#define R_BERT_STA 0x17 -#define R_F0_CNTL 0x18 -#define R_F0_CNTH 0x19 -#define R_BERT_EC 0x1A -#define R_BERT_ECL 0x1A -#define R_BERT_ECH 0x1B -#define R_STATUS 0x1C -#define R_CHIP_RV 0x1F -#define R_STATE 0x20 -#define R_SYNC_STA 0x24 -#define R_RX_SL0_0 0x25 -#define R_RX_SL0_1 0x26 -#define R_RX_SL0_2 0x27 -#define R_JATT_DIR 0x2b/* undocumented */ -#define R_SLIP 0x2c -#define A_ST_RD_STA 0x30 -#define R_FAS_EC 0x30 -#define R_FAS_ECL 0x30 -#define R_FAS_ECH 0x31 -#define R_VIO_EC 0x32 -#define R_VIO_ECL 0x32 -#define R_VIO_ECH 0x33 -#define A_ST_SQ_RD 0x34 -#define R_CRC_EC 0x34 -#define R_CRC_ECL 0x34 -#define R_CRC_ECH 0x35 -#define R_E_EC 0x36 -#define R_E_ECL 0x36 -#define R_E_ECH 0x37 -#define R_SA6_SA13_EC 0x38 -#define R_SA6_SA13_ECL 0x38 -#define R_SA6_SA13_ECH 0x39 -#define R_SA6_SA23_EC 0x3A -#define R_SA6_SA23_ECL 0x3A -#define R_SA6_SA23_ECH 0x3B -#define A_ST_B1_RX 0x3C -#define A_ST_B2_RX 0x3D -#define A_ST_D_RX 0x3E -#define A_ST_E_RX 0x3F -#define R_GPIO_IN0 0x40 -#define R_GPIO_IN1 0x41 -#define R_GPI_IN0 0x44 -#define R_GPI_IN1 0x45 -#define R_GPI_IN2 0x46 -#define R_GPI_IN3 0x47 -#define R_INT_DATA 0x88 -#define R_IRQ_FIFO_BL0 0xC8 -#define R_IRQ_FIFO_BL1 0xC9 -#define R_IRQ_FIFO_BL2 0xCA -#define R_IRQ_FIFO_BL3 0xCB -#define R_IRQ_FIFO_BL4 0xCC -#define R_IRQ_FIFO_BL5 0xCD -#define R_IRQ_FIFO_BL6 0xCE -#define R_IRQ_FIFO_BL7 0xCF - -/* read and write registers */ -#define A_FIFO_DATA0 0x80 -#define A_FIFO_DATA1 0x80 -#define A_FIFO_DATA2 0x80 -#define A_FIFO_DATA0_NOINC 0x84 -#define A_FIFO_DATA1_NOINC 0x84 -#define A_FIFO_DATA2_NOINC 0x84 -#define R_RAM_DATA 0xC0 - - -/* -* BIT SETTING FOR HFC-4S/8S AND HFC-E1 -*/ - -/* chapter 2: universal bus interface */ -/* R_CIRM */ -#define V_IRQ_SEL 0x01 -#define V_SRES 0x08 -#define V_HFCRES 0x10 -#define V_PCMRES 0x20 -#define V_STRES 0x40 -#define V_ETRES 0x40 -#define V_RLD_EPR 0x80 -/* R_CTRL */ -#define V_FIFO_LPRIO 0x02 -#define V_SLOW_RD 0x04 -#define V_EXT_RAM 0x08 -#define V_CLK_OFF 0x20 -#define V_ST_CLK 0x40 -/* R_RAM_ADDR0 */ -#define V_RAM_ADDR2 0x01 -#define V_ADDR_RES 0x40 -#define V_ADDR_INC 0x80 -/* R_RAM_SZ */ -#define V_RAM_SZ 0x01 -#define V_PWM0_16KHZ 0x10 -#define V_PWM1_16KHZ 0x20 -#define V_FZ_MD 0x80 -/* R_CHIP_ID */ -#define V_PNP_IRQ 0x01 -#define V_CHIP_ID 0x10 - -/* chapter 3: data flow */ -/* R_FIRST_FIFO */ -#define V_FIRST_FIRO_DIR 0x01 -#define V_FIRST_FIFO_NUM 0x02 -/* R_FIFO_MD */ -#define V_FIFO_MD 0x01 -#define V_CSM_MD 0x04 -#define V_FSM_MD 0x08 -#define V_FIFO_SZ 0x10 -/* R_FIFO */ -#define V_FIFO_DIR 0x01 -#define V_FIFO_NUM 0x02 -#define V_REV 0x80 -/* R_SLOT */ -#define V_SL_DIR 0x01 -#define V_SL_NUM 0x02 -/* A_SL_CFG */ -#define V_CH_DIR 0x01 -#define V_CH_SEL 0x02 -#define V_ROUTING 0x40 -/* A_CON_HDLC */ -#define V_IFF 0x01 -#define V_HDLC_TRP 0x02 -#define V_TRP_IRQ 0x04 -#define V_DATA_FLOW 0x20 -/* A_SUBCH_CFG */ -#define V_BIT_CNT 0x01 -#define V_START_BIT 0x08 -#define V_LOOP_FIFO 0x40 -#define V_INV_DATA 0x80 -/* A_CHANNEL */ -#define V_CH_DIR0 0x01 -#define V_CH_NUM0 0x02 -/* A_FIFO_SEQ */ -#define V_NEXT_FIFO_DIR 0x01 -#define V_NEXT_FIFO_NUM 0x02 -#define V_SEQ_END 0x40 - -/* chapter 4: FIFO handling and HDLC controller */ -/* R_INC_RES_FIFO */ -#define V_INC_F 0x01 -#define V_RES_F 0x02 -#define V_RES_LOST 0x04 - -/* chapter 5: S/T interface */ -/* R_SCI_MSK */ -#define V_SCI_MSK_ST0 0x01 -#define V_SCI_MSK_ST1 0x02 -#define V_SCI_MSK_ST2 0x04 -#define V_SCI_MSK_ST3 0x08 -#define V_SCI_MSK_ST4 0x10 -#define V_SCI_MSK_ST5 0x20 -#define V_SCI_MSK_ST6 0x40 -#define V_SCI_MSK_ST7 0x80 -/* R_ST_SEL */ -#define V_ST_SEL 0x01 -#define V_MULT_ST 0x08 -/* R_ST_SYNC */ -#define V_SYNC_SEL 0x01 -#define V_AUTO_SYNC 0x08 -/* A_ST_WR_STA */ -#define V_ST_SET_STA 0x01 -#define V_ST_LD_STA 0x10 -#define V_ST_ACT 0x20 -#define V_SET_G2_G3 0x80 -/* A_ST_CTRL0 */ -#define V_B1_EN 0x01 -#define V_B2_EN 0x02 -#define V_ST_MD 0x04 -#define V_D_PRIO 0x08 -#define V_SQ_EN 0x10 -#define V_96KHZ 0x20 -#define V_TX_LI 0x40 -#define V_ST_STOP 0x80 -/* A_ST_CTRL1 */ -#define V_G2_G3_EN 0x01 -#define V_D_HI 0x04 -#define V_E_IGNO 0x08 -#define V_E_LO 0x10 -#define V_B12_SWAP 0x80 -/* A_ST_CTRL2 */ -#define V_B1_RX_EN 0x01 -#define V_B2_RX_EN 0x02 -#define V_ST_TRIS 0x40 -/* A_ST_CLK_DLY */ -#define V_ST_CK_DLY 0x01 -#define V_ST_SMPL 0x10 -/* A_ST_D_TX */ -#define V_ST_D_TX 0x40 -/* R_IRQ_STATECH */ -#define V_SCI_ST0 0x01 -#define V_SCI_ST1 0x02 -#define V_SCI_ST2 0x04 -#define V_SCI_ST3 0x08 -#define V_SCI_ST4 0x10 -#define V_SCI_ST5 0x20 -#define V_SCI_ST6 0x40 -#define V_SCI_ST7 0x80 -/* A_ST_RD_STA */ -#define V_ST_STA 0x01 -#define V_FR_SYNC_ST 0x10 -#define V_TI2_EXP 0x20 -#define V_INFO0 0x40 -#define V_G2_G3 0x80 -/* A_ST_SQ_RD */ -#define V_ST_SQ 0x01 -#define V_MF_RX_RDY 0x10 -#define V_MF_TX_RDY 0x80 -/* A_ST_D_RX */ -#define V_ST_D_RX 0x40 -/* A_ST_E_RX */ -#define V_ST_E_RX 0x40 - -/* chapter 5: E1 interface */ -/* R_E1_WR_STA */ -/* R_E1_RD_STA */ -#define V_E1_SET_STA 0x01 -#define V_E1_LD_STA 0x10 -/* R_RX0 */ -#define V_RX_CODE 0x01 -#define V_RX_FBAUD 0x04 -#define V_RX_CMI 0x08 -#define V_RX_INV_CMI 0x10 -#define V_RX_INV_CLK 0x20 -#define V_RX_INV_DATA 0x40 -#define V_AIS_ITU 0x80 -/* R_RX_FR0 */ -#define V_NO_INSYNC 0x01 -#define V_AUTO_RESYNC 0x02 -#define V_AUTO_RECO 0x04 -#define V_SWORD_COND 0x08 -#define V_SYNC_LOSS 0x10 -#define V_XCRC_SYNC 0x20 -#define V_MF_RESYNC 0x40 -#define V_RESYNC 0x80 -/* R_RX_FR1 */ -#define V_RX_MF 0x01 -#define V_RX_MF_SYNC 0x02 -#define V_RX_SL0_RAM 0x04 -#define V_ERR_SIM 0x20 -#define V_RES_NMF 0x40 -/* R_TX0 */ -#define V_TX_CODE 0x01 -#define V_TX_FBAUD 0x04 -#define V_TX_CMI_CODE 0x08 -#define V_TX_INV_CMI_CODE 0x10 -#define V_TX_INV_CLK 0x20 -#define V_TX_INV_DATA 0x40 -#define V_OUT_EN 0x80 -/* R_TX1 */ -#define V_INV_CLK 0x01 -#define V_EXCHG_DATA_LI 0x02 -#define V_AIS_OUT 0x04 -#define V_ATX 0x20 -#define V_NTRI 0x40 -#define V_AUTO_ERR_RES 0x80 -/* R_TX_FR0 */ -#define V_TRP_FAS 0x01 -#define V_TRP_NFAS 0x02 -#define V_TRP_RAL 0x04 -#define V_TRP_SA 0x08 -/* R_TX_FR1 */ -#define V_TX_FAS 0x01 -#define V_TX_NFAS 0x02 -#define V_TX_RAL 0x04 -#define V_TX_SA 0x08 -/* R_TX_FR2 */ -#define V_TX_MF 0x01 -#define V_TRP_SL0 0x02 -#define V_TX_SL0_RAM 0x04 -#define V_TX_E 0x10 -#define V_NEG_E 0x20 -#define V_XS12_ON 0x40 -#define V_XS15_ON 0x80 -/* R_RX_OFF */ -#define V_RX_SZ 0x01 -#define V_RX_INIT 0x04 -/* R_SYNC_OUT */ -#define V_SYNC_E1_RX 0x01 -#define V_IPATS0 0x20 -#define V_IPATS1 0x40 -#define V_IPATS2 0x80 -/* R_TX_OFF */ -#define V_TX_SZ 0x01 -#define V_TX_INIT 0x04 -/* R_SYNC_CTRL */ -#define V_EXT_CLK_SYNC 0x01 -#define V_SYNC_OFFS 0x02 -#define V_PCM_SYNC 0x04 -#define V_NEG_CLK 0x08 -#define V_HCLK 0x10 -/* -#define V_JATT_AUTO_DEL 0x20 -#define V_JATT_AUTO 0x40 -*/ -#define V_JATT_OFF 0x80 -/* R_STATE */ -#define V_E1_STA 0x01 -#define V_ALT_FR_RX 0x40 -#define V_ALT_FR_TX 0x80 -/* R_SYNC_STA */ -#define V_RX_STA 0x01 -#define V_FR_SYNC_E1 0x04 -#define V_SIG_LOS 0x08 -#define V_MFA_STA 0x10 -#define V_AIS 0x40 -#define V_NO_MF_SYNC 0x80 -/* R_RX_SL0_0 */ -#define V_SI_FAS 0x01 -#define V_SI_NFAS 0x02 -#define V_A 0x04 -#define V_CRC_OK 0x08 -#define V_TX_E1 0x10 -#define V_TX_E2 0x20 -#define V_RX_E1 0x40 -#define V_RX_E2 0x80 -/* R_SLIP */ -#define V_SLIP_RX 0x01 -#define V_FOSLIP_RX 0x08 -#define V_SLIP_TX 0x10 -#define V_FOSLIP_TX 0x80 - -/* chapter 6: PCM interface */ -/* R_PCM_MD0 */ -#define V_PCM_MD 0x01 -#define V_C4_POL 0x02 -#define V_F0_NEG 0x04 -#define V_F0_LEN 0x08 -#define V_PCM_ADDR 0x10 -/* R_SL_SEL0 */ -#define V_SL_SEL0 0x01 -#define V_SH_SEL0 0x80 -/* R_SL_SEL1 */ -#define V_SL_SEL1 0x01 -#define V_SH_SEL1 0x80 -/* R_SL_SEL2 */ -#define V_SL_SEL2 0x01 -#define V_SH_SEL2 0x80 -/* R_SL_SEL3 */ -#define V_SL_SEL3 0x01 -#define V_SH_SEL3 0x80 -/* R_SL_SEL4 */ -#define V_SL_SEL4 0x01 -#define V_SH_SEL4 0x80 -/* R_SL_SEL5 */ -#define V_SL_SEL5 0x01 -#define V_SH_SEL5 0x80 -/* R_SL_SEL6 */ -#define V_SL_SEL6 0x01 -#define V_SH_SEL6 0x80 -/* R_SL_SEL7 */ -#define V_SL_SEL7 0x01 -#define V_SH_SEL7 0x80 -/* R_PCM_MD1 */ -#define V_ODEC_CON 0x01 -#define V_PLL_ADJ 0x04 -#define V_PCM_DR 0x10 -#define V_PCM_LOOP 0x40 -/* R_PCM_MD2 */ -#define V_SYNC_PLL 0x02 -#define V_SYNC_SRC 0x04 -#define V_SYNC_OUT 0x08 -#define V_ICR_FR_TIME 0x40 -#define V_EN_PLL 0x80 - -/* chapter 7: pulse width modulation */ -/* R_PWM_MD */ -#define V_EXT_IRQ_EN 0x08 -#define V_PWM0_MD 0x10 -#define V_PWM1_MD 0x40 - -/* chapter 8: multiparty audio conferences */ -/* R_CONF_EN */ -#define V_CONF_EN 0x01 -#define V_ULAW 0x80 -/* A_CONF */ -#define V_CONF_NUM 0x01 -#define V_NOISE_SUPPR 0x08 -#define V_ATT_LEV 0x20 -#define V_CONF_SL 0x80 -/* R_CONF_OFLOW */ -#define V_CONF_OFLOW0 0x01 -#define V_CONF_OFLOW1 0x02 -#define V_CONF_OFLOW2 0x04 -#define V_CONF_OFLOW3 0x08 -#define V_CONF_OFLOW4 0x10 -#define V_CONF_OFLOW5 0x20 -#define V_CONF_OFLOW6 0x40 -#define V_CONF_OFLOW7 0x80 - -/* chapter 9: DTMF contoller */ -/* R_DTMF0 */ -#define V_DTMF_EN 0x01 -#define V_HARM_SEL 0x02 -#define V_DTMF_RX_CH 0x04 -#define V_DTMF_STOP 0x08 -#define V_CHBL_SEL 0x10 -#define V_RST_DTMF 0x40 -#define V_ULAW_SEL 0x80 - -/* chapter 10: BERT */ -/* R_BERT_WD_MD */ -#define V_PAT_SEQ 0x01 -#define V_BERT_ERR 0x08 -#define V_AUTO_WD_RES 0x20 -#define V_WD_RES 0x80 -/* R_BERT_STA */ -#define V_BERT_SYNC_SRC 0x01 -#define V_BERT_SYNC 0x10 -#define V_BERT_INV_DATA 0x20 - -/* chapter 11: auxiliary interface */ -/* R_BRG_PCM_CFG */ -#define V_BRG_EN 0x01 -#define V_BRG_MD 0x02 -#define V_PCM_CLK 0x20 -#define V_ADDR_WRDLY 0x40 -/* R_BRG_CTRL */ -#define V_BRG_CS 0x01 -#define V_BRG_ADDR 0x08 -#define V_BRG_CS_SRC 0x80 -/* R_BRG_MD */ -#define V_BRG_MD0 0x01 -#define V_BRG_MD1 0x02 -#define V_BRG_MD2 0x04 -#define V_BRG_MD3 0x08 -#define V_BRG_MD4 0x10 -#define V_BRG_MD5 0x20 -#define V_BRG_MD6 0x40 -#define V_BRG_MD7 0x80 -/* R_BRG_TIM0 */ -#define V_BRG_TIM0_IDLE 0x01 -#define V_BRG_TIM0_CLK 0x10 -/* R_BRG_TIM1 */ -#define V_BRG_TIM1_IDLE 0x01 -#define V_BRG_TIM1_CLK 0x10 -/* R_BRG_TIM2 */ -#define V_BRG_TIM2_IDLE 0x01 -#define V_BRG_TIM2_CLK 0x10 -/* R_BRG_TIM3 */ -#define V_BRG_TIM3_IDLE 0x01 -#define V_BRG_TIM3_CLK 0x10 -/* R_BRG_TIM_SEL01 */ -#define V_BRG_WR_SEL0 0x01 -#define V_BRG_RD_SEL0 0x04 -#define V_BRG_WR_SEL1 0x10 -#define V_BRG_RD_SEL1 0x40 -/* R_BRG_TIM_SEL23 */ -#define V_BRG_WR_SEL2 0x01 -#define V_BRG_RD_SEL2 0x04 -#define V_BRG_WR_SEL3 0x10 -#define V_BRG_RD_SEL3 0x40 -/* R_BRG_TIM_SEL45 */ -#define V_BRG_WR_SEL4 0x01 -#define V_BRG_RD_SEL4 0x04 -#define V_BRG_WR_SEL5 0x10 -#define V_BRG_RD_SEL5 0x40 -/* R_BRG_TIM_SEL67 */ -#define V_BRG_WR_SEL6 0x01 -#define V_BRG_RD_SEL6 0x04 -#define V_BRG_WR_SEL7 0x10 -#define V_BRG_RD_SEL7 0x40 - -/* chapter 12: clock, reset, interrupt, timer and watchdog */ -/* R_IRQMSK_MISC */ -#define V_STA_IRQMSK 0x01 -#define V_TI_IRQMSK 0x02 -#define V_PROC_IRQMSK 0x04 -#define V_DTMF_IRQMSK 0x08 -#define V_IRQ1S_MSK 0x10 -#define V_SA6_IRQMSK 0x20 -#define V_RX_EOMF_MSK 0x40 -#define V_TX_EOMF_MSK 0x80 -/* R_IRQ_CTRL */ -#define V_FIFO_IRQ 0x01 -#define V_GLOB_IRQ_EN 0x08 -#define V_IRQ_POL 0x10 -/* R_TI_WD */ -#define V_EV_TS 0x01 -#define V_WD_TS 0x10 -/* A_IRQ_MSK */ -#define V_IRQ 0x01 -#define V_BERT_EN 0x02 -#define V_MIX_IRQ 0x04 -/* R_IRQ_OVIEW */ -#define V_IRQ_FIFO_BL0 0x01 -#define V_IRQ_FIFO_BL1 0x02 -#define V_IRQ_FIFO_BL2 0x04 -#define V_IRQ_FIFO_BL3 0x08 -#define V_IRQ_FIFO_BL4 0x10 -#define V_IRQ_FIFO_BL5 0x20 -#define V_IRQ_FIFO_BL6 0x40 -#define V_IRQ_FIFO_BL7 0x80 -/* R_IRQ_MISC */ -#define V_STA_IRQ 0x01 -#define V_TI_IRQ 0x02 -#define V_IRQ_PROC 0x04 -#define V_DTMF_IRQ 0x08 -#define V_IRQ1S 0x10 -#define V_SA6_IRQ 0x20 -#define V_RX_EOMF 0x40 -#define V_TX_EOMF 0x80 -/* R_STATUS */ -#define V_BUSY 0x01 -#define V_PROC 0x02 -#define V_DTMF_STA 0x04 -#define V_LOST_STA 0x08 -#define V_SYNC_IN 0x10 -#define V_EXT_IRQSTA 0x20 -#define V_MISC_IRQSTA 0x40 -#define V_FR_IRQSTA 0x80 -/* R_IRQ_FIFO_BL0 */ -#define V_IRQ_FIFO0_TX 0x01 -#define V_IRQ_FIFO0_RX 0x02 -#define V_IRQ_FIFO1_TX 0x04 -#define V_IRQ_FIFO1_RX 0x08 -#define V_IRQ_FIFO2_TX 0x10 -#define V_IRQ_FIFO2_RX 0x20 -#define V_IRQ_FIFO3_TX 0x40 -#define V_IRQ_FIFO3_RX 0x80 -/* R_IRQ_FIFO_BL1 */ -#define V_IRQ_FIFO4_TX 0x01 -#define V_IRQ_FIFO4_RX 0x02 -#define V_IRQ_FIFO5_TX 0x04 -#define V_IRQ_FIFO5_RX 0x08 -#define V_IRQ_FIFO6_TX 0x10 -#define V_IRQ_FIFO6_RX 0x20 -#define V_IRQ_FIFO7_TX 0x40 -#define V_IRQ_FIFO7_RX 0x80 -/* R_IRQ_FIFO_BL2 */ -#define V_IRQ_FIFO8_TX 0x01 -#define V_IRQ_FIFO8_RX 0x02 -#define V_IRQ_FIFO9_TX 0x04 -#define V_IRQ_FIFO9_RX 0x08 -#define V_IRQ_FIFO10_TX 0x10 -#define V_IRQ_FIFO10_RX 0x20 -#define V_IRQ_FIFO11_TX 0x40 -#define V_IRQ_FIFO11_RX 0x80 -/* R_IRQ_FIFO_BL3 */ -#define V_IRQ_FIFO12_TX 0x01 -#define V_IRQ_FIFO12_RX 0x02 -#define V_IRQ_FIFO13_TX 0x04 -#define V_IRQ_FIFO13_RX 0x08 -#define V_IRQ_FIFO14_TX 0x10 -#define V_IRQ_FIFO14_RX 0x20 -#define V_IRQ_FIFO15_TX 0x40 -#define V_IRQ_FIFO15_RX 0x80 -/* R_IRQ_FIFO_BL4 */ -#define V_IRQ_FIFO16_TX 0x01 -#define V_IRQ_FIFO16_RX 0x02 -#define V_IRQ_FIFO17_TX 0x04 -#define V_IRQ_FIFO17_RX 0x08 -#define V_IRQ_FIFO18_TX 0x10 -#define V_IRQ_FIFO18_RX 0x20 -#define V_IRQ_FIFO19_TX 0x40 -#define V_IRQ_FIFO19_RX 0x80 -/* R_IRQ_FIFO_BL5 */ -#define V_IRQ_FIFO20_TX 0x01 -#define V_IRQ_FIFO20_RX 0x02 -#define V_IRQ_FIFO21_TX 0x04 -#define V_IRQ_FIFO21_RX 0x08 -#define V_IRQ_FIFO22_TX 0x10 -#define V_IRQ_FIFO22_RX 0x20 -#define V_IRQ_FIFO23_TX 0x40 -#define V_IRQ_FIFO23_RX 0x80 -/* R_IRQ_FIFO_BL6 */ -#define V_IRQ_FIFO24_TX 0x01 -#define V_IRQ_FIFO24_RX 0x02 -#define V_IRQ_FIFO25_TX 0x04 -#define V_IRQ_FIFO25_RX 0x08 -#define V_IRQ_FIFO26_TX 0x10 -#define V_IRQ_FIFO26_RX 0x20 -#define V_IRQ_FIFO27_TX 0x40 -#define V_IRQ_FIFO27_RX 0x80 -/* R_IRQ_FIFO_BL7 */ -#define V_IRQ_FIFO28_TX 0x01 -#define V_IRQ_FIFO28_RX 0x02 -#define V_IRQ_FIFO29_TX 0x04 -#define V_IRQ_FIFO29_RX 0x08 -#define V_IRQ_FIFO30_TX 0x10 -#define V_IRQ_FIFO30_RX 0x20 -#define V_IRQ_FIFO31_TX 0x40 -#define V_IRQ_FIFO31_RX 0x80 - -/* chapter 13: general purpose I/O pins (GPIO) and input pins (GPI) */ -/* R_GPIO_OUT0 */ -#define V_GPIO_OUT0 0x01 -#define V_GPIO_OUT1 0x02 -#define V_GPIO_OUT2 0x04 -#define V_GPIO_OUT3 0x08 -#define V_GPIO_OUT4 0x10 -#define V_GPIO_OUT5 0x20 -#define V_GPIO_OUT6 0x40 -#define V_GPIO_OUT7 0x80 -/* R_GPIO_OUT1 */ -#define V_GPIO_OUT8 0x01 -#define V_GPIO_OUT9 0x02 -#define V_GPIO_OUT10 0x04 -#define V_GPIO_OUT11 0x08 -#define V_GPIO_OUT12 0x10 -#define V_GPIO_OUT13 0x20 -#define V_GPIO_OUT14 0x40 -#define V_GPIO_OUT15 0x80 -/* R_GPIO_EN0 */ -#define V_GPIO_EN0 0x01 -#define V_GPIO_EN1 0x02 -#define V_GPIO_EN2 0x04 -#define V_GPIO_EN3 0x08 -#define V_GPIO_EN4 0x10 -#define V_GPIO_EN5 0x20 -#define V_GPIO_EN6 0x40 -#define V_GPIO_EN7 0x80 -/* R_GPIO_EN1 */ -#define V_GPIO_EN8 0x01 -#define V_GPIO_EN9 0x02 -#define V_GPIO_EN10 0x04 -#define V_GPIO_EN11 0x08 -#define V_GPIO_EN12 0x10 -#define V_GPIO_EN13 0x20 -#define V_GPIO_EN14 0x40 -#define V_GPIO_EN15 0x80 -/* R_GPIO_SEL */ -#define V_GPIO_SEL0 0x01 -#define V_GPIO_SEL1 0x02 -#define V_GPIO_SEL2 0x04 -#define V_GPIO_SEL3 0x08 -#define V_GPIO_SEL4 0x10 -#define V_GPIO_SEL5 0x20 -#define V_GPIO_SEL6 0x40 -#define V_GPIO_SEL7 0x80 -/* R_GPIO_IN0 */ -#define V_GPIO_IN0 0x01 -#define V_GPIO_IN1 0x02 -#define V_GPIO_IN2 0x04 -#define V_GPIO_IN3 0x08 -#define V_GPIO_IN4 0x10 -#define V_GPIO_IN5 0x20 -#define V_GPIO_IN6 0x40 -#define V_GPIO_IN7 0x80 -/* R_GPIO_IN1 */ -#define V_GPIO_IN8 0x01 -#define V_GPIO_IN9 0x02 -#define V_GPIO_IN10 0x04 -#define V_GPIO_IN11 0x08 -#define V_GPIO_IN12 0x10 -#define V_GPIO_IN13 0x20 -#define V_GPIO_IN14 0x40 -#define V_GPIO_IN15 0x80 -/* R_GPI_IN0 */ -#define V_GPI_IN0 0x01 -#define V_GPI_IN1 0x02 -#define V_GPI_IN2 0x04 -#define V_GPI_IN3 0x08 -#define V_GPI_IN4 0x10 -#define V_GPI_IN5 0x20 -#define V_GPI_IN6 0x40 -#define V_GPI_IN7 0x80 -/* R_GPI_IN1 */ -#define V_GPI_IN8 0x01 -#define V_GPI_IN9 0x02 -#define V_GPI_IN10 0x04 -#define V_GPI_IN11 0x08 -#define V_GPI_IN12 0x10 -#define V_GPI_IN13 0x20 -#define V_GPI_IN14 0x40 -#define V_GPI_IN15 0x80 -/* R_GPI_IN2 */ -#define V_GPI_IN16 0x01 -#define V_GPI_IN17 0x02 -#define V_GPI_IN18 0x04 -#define V_GPI_IN19 0x08 -#define V_GPI_IN20 0x10 -#define V_GPI_IN21 0x20 -#define V_GPI_IN22 0x40 -#define V_GPI_IN23 0x80 -/* R_GPI_IN3 */ -#define V_GPI_IN24 0x01 -#define V_GPI_IN25 0x02 -#define V_GPI_IN26 0x04 -#define V_GPI_IN27 0x08 -#define V_GPI_IN28 0x10 -#define V_GPI_IN29 0x20 -#define V_GPI_IN30 0x40 -#define V_GPI_IN31 0x80 - -/* map of all registers, used for debugging */ - -#ifdef HFC_REGISTER_DEBUG -struct hfc_register_names { -char *name; -u_char reg; -} hfc_register_names[] = { -/* write registers */ - {"R_CIRM" ,0x00 }, - {"R_CTRL" ,0x01 }, - {"R_BRG_PCM_CFG " ,0x02 }, - {"R_RAM_ADDR0" ,0x08 }, - {"R_RAM_ADDR1" ,0x09 }, - {"R_RAM_ADDR2" ,0x0A }, - {"R_FIRST_FIFO" ,0x0B }, - {"R_RAM_SZ" ,0x0C }, - {"R_FIFO_MD" ,0x0D }, - {"R_INC_RES_FIFO" ,0x0E }, - {"R_FIFO / R_FSM_IDX" ,0x0F }, - {"R_SLOT" ,0x10 }, - {"R_IRQMSK_MISC" ,0x11 }, - {"R_SCI_MSK" ,0x12 }, - {"R_IRQ_CTRL" ,0x13 }, - {"R_PCM_MD0" ,0x14 }, - {"R_0x15" ,0x15 }, - {"R_ST_SEL" ,0x16 }, - {"R_ST_SYNC" ,0x17 }, - {"R_CONF_EN" ,0x18 }, - {"R_TI_WD" ,0x1A }, - {"R_BERT_WD_MD" ,0x1B }, - {"R_DTMF" ,0x1C }, - {"R_DTMF_N" ,0x1D }, - {"R_E1_XX_STA" ,0x20 }, - {"R_LOS0" ,0x22 }, - {"R_LOS1" ,0x23 }, - {"R_RX0" ,0x24 }, - {"R_RX_FR0" ,0x25 }, - {"R_RX_FR1" ,0x26 }, - {"R_TX0" ,0x28 }, - {"R_TX1" ,0x29 }, - {"R_TX_FR0" ,0x2C }, - {"R_TX_FR1" ,0x2D }, - {"R_TX_FR2" ,0x2E }, - {"R_JATT_ATT" ,0x2F }, - {"A_ST_xx_STA/R_RX_OFF" ,0x30 }, - {"A_ST_CTRL0/R_SYNC_OUT" ,0x31 }, - {"A_ST_CTRL1" ,0x32 }, - {"A_ST_CTRL2" ,0x33 }, - {"A_ST_SQ_WR" ,0x34 }, - {"R_TX_OFF" ,0x34 }, - {"R_SYNC_CTRL" ,0x35 }, - {"A_ST_CLK_DLY" ,0x37 }, - {"R_PWM0" ,0x38 }, - {"R_PWM1" ,0x39 }, - {"A_ST_B1_TX" ,0x3C }, - {"A_ST_B2_TX" ,0x3D }, - {"A_ST_D_TX" ,0x3E }, - {"R_GPIO_OUT0" ,0x40 }, - {"R_GPIO_OUT1" ,0x41 }, - {"R_GPIO_EN0" ,0x42 }, - {"R_GPIO_EN1" ,0x43 }, - {"R_GPIO_SEL" ,0x44 }, - {"R_BRG_CTRL" ,0x45 }, - {"R_PWM_MD" ,0x46 }, - {"R_BRG_MD" ,0x47 }, - {"R_BRG_TIM0" ,0x48 }, - {"R_BRG_TIM1" ,0x49 }, - {"R_BRG_TIM2" ,0x4A }, - {"R_BRG_TIM3" ,0x4B }, - {"R_BRG_TIM_SEL01" ,0x4C }, - {"R_BRG_TIM_SEL23" ,0x4D }, - {"R_BRG_TIM_SEL45" ,0x4E }, - {"R_BRG_TIM_SEL67" ,0x4F }, - {"A_FIFO_DATA0-2" ,0x80 }, - {"A_FIFO_DATA0-2_NOINC" ,0x84 }, - {"R_RAM_DATA" ,0xC0 }, - {"A_SL_CFG" ,0xD0 }, - {"A_CONF" ,0xD1 }, - {"A_CH_MSK" ,0xF4 }, - {"A_CON_HDLC" ,0xFA }, - {"A_SUBCH_CFG" ,0xFB }, - {"A_CHANNEL" ,0xFC }, - {"A_FIFO_SEQ" ,0xFD }, - {"A_IRQ_MSK" ,0xFF }, - {NULL ,0 }, - -/* read registers */ - {"A_Z1" ,0x04 }, - {"A_Z1H" ,0x05 }, - {"A_Z2" ,0x06 }, - {"A_Z2H" ,0x07 }, - {"A_F1" ,0x0C }, - {"A_F2" ,0x0D }, - {"R_IRQ_OVIEW" ,0x10 }, - {"R_IRQ_MISC" ,0x11 }, - {"R_IRQ_STATECH" ,0x12 }, - {"R_CONF_OFLOW" ,0x14 }, - {"R_RAM_USE" ,0x15 }, - {"R_CHIP_ID" ,0x16 }, - {"R_BERT_STA" ,0x17 }, - {"R_F0_CNTL" ,0x18 }, - {"R_F0_CNTH" ,0x19 }, - {"R_BERT_ECL" ,0x1A }, - {"R_BERT_ECH" ,0x1B }, - {"R_STATUS" ,0x1C }, - {"R_CHIP_RV" ,0x1F }, - {"R_STATE" ,0x20 }, - {"R_SYNC_STA" ,0x24 }, - {"R_RX_SL0_0" ,0x25 }, - {"R_RX_SL0_1" ,0x26 }, - {"R_RX_SL0_2" ,0x27 }, - {"R_JATT_DIR" ,0x2b }, - {"R_SLIP" ,0x2c }, - {"A_ST_RD_STA" ,0x30 }, - {"R_FAS_ECL" ,0x30 }, - {"R_FAS_ECH" ,0x31 }, - {"R_VIO_ECL" ,0x32 }, - {"R_VIO_ECH" ,0x33 }, - {"R_CRC_ECL / A_ST_SQ_RD" ,0x34 }, - {"R_CRC_ECH" ,0x35 }, - {"R_E_ECL" ,0x36 }, - {"R_E_ECH" ,0x37 }, - {"R_SA6_SA13_ECL" ,0x38 }, - {"R_SA6_SA13_ECH" ,0x39 }, - {"R_SA6_SA23_ECL" ,0x3A }, - {"R_SA6_SA23_ECH" ,0x3B }, - {"A_ST_B1_RX" ,0x3C }, - {"A_ST_B2_RX" ,0x3D }, - {"A_ST_D_RX" ,0x3E }, - {"A_ST_E_RX" ,0x3F }, - {"R_GPIO_IN0" ,0x40 }, - {"R_GPIO_IN1" ,0x41 }, - {"R_GPI_IN0" ,0x44 }, - {"R_GPI_IN1" ,0x45 }, - {"R_GPI_IN2" ,0x46 }, - {"R_GPI_IN3" ,0x47 }, - {"A_FIFO_DATA0-2" ,0x80 }, - {"A_FIFO_DATA0-2_NOINC" ,0x84 }, - {"R_INT_DATA" ,0x88 }, - {"R_RAM_DATA" ,0xC0 }, - {"R_IRQ_FIFO_BL0" ,0xC8 }, - {"R_IRQ_FIFO_BL1" ,0xC9 }, - {"R_IRQ_FIFO_BL2" ,0xCA }, - {"R_IRQ_FIFO_BL3" ,0xCB }, - {"R_IRQ_FIFO_BL4" ,0xCC }, - {"R_IRQ_FIFO_BL5" ,0xCD }, - {"R_IRQ_FIFO_BL6" ,0xCE }, - {"R_IRQ_FIFO_BL7" ,0xCF }, -}; -#endif /* HFC_REGISTER_DEBUG */ drivers/isdn/hardware/mISDN/hfc_multi_8xx.h deleted +0
-167@@ -1,167 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* -* For License see notice in hfc_multi.c -* -* special IO and init functions for the embedded XHFC board -* from Speech Design -* -*/ - -#include <asm/cpm1.h> - -/* Change this to the value used by your board */ -#ifndef IMAP_ADDR -#define IMAP_ADDR 0xFFF00000 -#endif - -static void -#ifdef HFC_REGISTER_DEBUG -HFC_outb_embsd(struct hfc_multi *hc, u_char reg, u_char val, - const char *function, int line) -#else - HFC_outb_embsd(struct hfc_multi *hc, u_char reg, u_char val) -#endif -{ - hc->immap->im_ioport.iop_padat |=PA_XHFC_A0 ; -writeb (reg, hc->xhfc_memaddr); - hc->immap->im_ioport.iop_padat &= ~(PA_XHFC_A0 ); -writeb (val, hc->xhfc_memdata); -} -static u_char -#ifdef HFC_REGISTER_DEBUG -HFC_inb_embsd(struct hfc_multi *hc, u_char reg, const char *function, int line) -#else - HFC_inb_embsd(struct hfc_multi *hc, u_char reg) -#endif -{ - hc->immap->im_ioport.iop_padat |=PA_XHFC_A0 ; -writeb (reg, hc->xhfc_memaddr); - hc->immap->im_ioport.iop_padat &= ~(PA_XHFC_A0 ); -return readb (hc->xhfc_memdata); -} -static u_short -#ifdef HFC_REGISTER_DEBUG -HFC_inw_embsd(struct hfc_multi *hc, u_char reg, const char *function, int line) -#else - HFC_inw_embsd(struct hfc_multi *hc, u_char reg) -#endif -{ - hc->immap->im_ioport.iop_padat |=PA_XHFC_A0 ; -writeb (reg, hc->xhfc_memaddr); - hc->immap->im_ioport.iop_padat &= ~(PA_XHFC_A0 ); -return readb (hc->xhfc_memdata); -} -static void -#ifdef HFC_REGISTER_DEBUG -HFC_wait_embsd(struct hfc_multi *hc, const char *function, int line) -#else - HFC_wait_embsd(struct hfc_multi *hc) -#endif -{ - hc->immap->im_ioport.iop_padat |=PA_XHFC_A0 ; -writeb (R_STATUS , hc->xhfc_memaddr); - hc->immap->im_ioport.iop_padat &= ~(PA_XHFC_A0 ); -while (readb (hc->xhfc_memdata) &V_BUSY ) -cpu_relax (); -} - -/* write fifo data (EMBSD) */ -void -write_fifo_embsd (struct hfc_multi *hc,u_char *data,int len) -{ - hc->immap->im_ioport.iop_padat |=PA_XHFC_A0 ; - *hc->xhfc_memaddr =A_FIFO_DATA0 ; - hc->immap->im_ioport.iop_padat &= ~(PA_XHFC_A0 ); -while (len) { - *hc->xhfc_memdata = *data; - data++; - len--; - } -} - -/* read fifo data (EMBSD) */ -void -read_fifo_embsd (struct hfc_multi *hc,u_char *data,int len) -{ - hc->immap->im_ioport.iop_padat |=PA_XHFC_A0 ; - *hc->xhfc_memaddr =A_FIFO_DATA0 ; - hc->immap->im_ioport.iop_padat &= ~(PA_XHFC_A0 ); -while (len) { - *data = (u_char)(*hc->xhfc_memdata); - data++; - len--; - } -} - -static int -setup_embedded (struct hfc_multi *hc,struct hm_map *m) -{ -printk (KERN_INFO -"HFC-multi: card manufacturer: '%s' card name: '%s' clock: %s\n" , - m->vendor_name, m->card_name, m->clock2 ?"double" :"normal" ); - - hc->pci_dev =NULL ; -if (m->clock2) -test_and_set_bit (HFC_CHIP_CLOCK2 , &hc->chip); - - hc->leds = m->leds; - hc->ledstate =0xAFFEAFFE ; - hc->opticalsupport = m->opticalsupport; - - hc->pci_iobase =0 ; - hc->pci_membase =0 ; - hc->xhfc_membase =NULL ; - hc->xhfc_memaddr =NULL ; - hc->xhfc_memdata =NULL ; - -/* set memory access methods */ -if (m->io_mode)/* use mode from card config */ - hc->io_mode = m->io_mode; -switch (hc->io_mode) { -case HFC_IO_MODE_EMBSD : -test_and_set_bit (HFC_CHIP_EMBSD , &hc->chip); - hc->slots =128 ;/* required */ - hc->HFC_outb = HFC_outb_embsd; - hc->HFC_inb = HFC_inb_embsd; - hc->HFC_inw = HFC_inw_embsd; - hc->HFC_wait = HFC_wait_embsd; - hc->read_fifo = read_fifo_embsd; - hc->write_fifo = write_fifo_embsd; - hc->xhfc_origmembase =XHFC_MEMBASE +XHFC_OFFSET * hc->id; - hc->xhfc_membase = (u_char *)ioremap (hc->xhfc_origmembase, -XHFC_MEMSIZE ); -if (!hc->xhfc_membase) { -printk (KERN_WARNING -"HFC-multi: failed to remap xhfc address space. " -"(internal error)\n" ); -return -EIO ; - } - hc->xhfc_memaddr = (u_long *)(hc->xhfc_membase +4 ); - hc->xhfc_memdata = (u_long *)(hc->xhfc_membase); -printk (KERN_INFO -"HFC-multi: xhfc_membase:%#lx xhfc_origmembase:%#lx " -"xhfc_memaddr:%#lx xhfc_memdata:%#lx\n" , - (u_long )hc->xhfc_membase, hc->xhfc_origmembase, - (u_long )hc->xhfc_memaddr, (u_long )hc->xhfc_memdata); -break ; -default : -printk (KERN_WARNING "HFC-multi: Invalid IO mode.\n" ); -return -EIO ; - } - -/* Prepare the MPC8XX PortA 10 as output (address/data selector) */ - hc->immap = (struct immap *)(IMAP_ADDR ); - hc->immap->im_ioport.iop_papar &= ~(PA_XHFC_A0 ); - hc->immap->im_ioport.iop_paodr &= ~(PA_XHFC_A0 ); - hc->immap->im_ioport.iop_padir |=PA_XHFC_A0 ; - -/* Prepare the MPC8xx PortB __X__ as input (ISDN__X__IRQ) */ - hc->pb_irqmsk = (PB_XHFC_IRQ1 << hc->id); - hc->immap->im_cpm.cp_pbpar &= ~(hc->pb_irqmsk); - hc->immap->im_cpm.cp_pbodr &= ~(hc->pb_irqmsk); - hc->immap->im_cpm.cp_pbdir &= ~(hc->pb_irqmsk); - -/* At this point the needed config is done */ -/* fifos are still not enabled */ -return 0 ; -}drivers/isdn/hardware/mISDN/hfc_pci.h deleted +0
-214@@ -1,214 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* -* specific defines for CCD's HFC 2BDS0 PCI chips -* -* Author Werner Cornelius ([email protected]) -* -* Copyright 1999 by Werner Cornelius ([email protected]) -*/ - -/* -* thresholds for transparent B-channel mode -* change mask and threshold simultaneously -*/ -#define HFCPCI_BTRANS_THRESHOLD 128 -#define HFCPCI_FILLEMPTY 64 -#define HFCPCI_BTRANS_THRESMASK 0x00 - -/* defines for PCI config */ -#define PCI_ENA_MEMIO 0x02 -#define PCI_ENA_MASTER 0x04 - -/* GCI/IOM bus monitor registers */ -#define HCFPCI_C_I 0x08 -#define HFCPCI_TRxR 0x0C -#define HFCPCI_MON1_D 0x28 -#define HFCPCI_MON2_D 0x2C - -/* GCI/IOM bus timeslot registers */ -#define HFCPCI_B1_SSL 0x80 -#define HFCPCI_B2_SSL 0x84 -#define HFCPCI_AUX1_SSL 0x88 -#define HFCPCI_AUX2_SSL 0x8C -#define HFCPCI_B1_RSL 0x90 -#define HFCPCI_B2_RSL 0x94 -#define HFCPCI_AUX1_RSL 0x98 -#define HFCPCI_AUX2_RSL 0x9C - -/* GCI/IOM bus data registers */ -#define HFCPCI_B1_D 0xA0 -#define HFCPCI_B2_D 0xA4 -#define HFCPCI_AUX1_D 0xA8 -#define HFCPCI_AUX2_D 0xAC - -/* GCI/IOM bus configuration registers */ -#define HFCPCI_MST_EMOD 0xB4 -#define HFCPCI_MST_MODE 0xB8 -#define HFCPCI_CONNECT 0xBC - - -/* Interrupt and status registers */ -#define HFCPCI_FIFO_EN 0x44 -#define HFCPCI_TRM 0x48 -#define HFCPCI_B_MODE 0x4C -#define HFCPCI_CHIP_ID 0x58 -#define HFCPCI_CIRM 0x60 -#define HFCPCI_CTMT 0x64 -#define HFCPCI_INT_M1 0x68 -#define HFCPCI_INT_M2 0x6C -#define HFCPCI_INT_S1 0x78 -#define HFCPCI_INT_S2 0x7C -#define HFCPCI_STATUS 0x70 - -/* S/T section registers */ -#define HFCPCI_STATES 0xC0 -#define HFCPCI_SCTRL 0xC4 -#define HFCPCI_SCTRL_E 0xC8 -#define HFCPCI_SCTRL_R 0xCC -#define HFCPCI_SQ 0xD0 -#define HFCPCI_CLKDEL 0xDC -#define HFCPCI_B1_REC 0xF0 -#define HFCPCI_B1_SEND 0xF0 -#define HFCPCI_B2_REC 0xF4 -#define HFCPCI_B2_SEND 0xF4 -#define HFCPCI_D_REC 0xF8 -#define HFCPCI_D_SEND 0xF8 -#define HFCPCI_E_REC 0xFC - - -/* bits in status register (READ) */ -#define HFCPCI_PCI_PROC 0x02 -#define HFCPCI_NBUSY 0x04 -#define HFCPCI_TIMER_ELAP 0x10 -#define HFCPCI_STATINT 0x20 -#define HFCPCI_FRAMEINT 0x40 -#define HFCPCI_ANYINT 0x80 - -/* bits in CTMT (Write) */ -#define HFCPCI_CLTIMER 0x80 -#define HFCPCI_TIM3_125 0x04 -#define HFCPCI_TIM25 0x10 -#define HFCPCI_TIM50 0x14 -#define HFCPCI_TIM400 0x18 -#define HFCPCI_TIM800 0x1C -#define HFCPCI_AUTO_TIMER 0x20 -#define HFCPCI_TRANSB2 0x02 -#define HFCPCI_TRANSB1 0x01 - -/* bits in CIRM (Write) */ -#define HFCPCI_AUX_MSK 0x07 -#define HFCPCI_RESET 0x08 -#define HFCPCI_B1_REV 0x40 -#define HFCPCI_B2_REV 0x80 - -/* bits in INT_M1 and INT_S1 */ -#define HFCPCI_INTS_B1TRANS 0x01 -#define HFCPCI_INTS_B2TRANS 0x02 -#define HFCPCI_INTS_DTRANS 0x04 -#define HFCPCI_INTS_B1REC 0x08 -#define HFCPCI_INTS_B2REC 0x10 -#define HFCPCI_INTS_DREC 0x20 -#define HFCPCI_INTS_L1STATE 0x40 -#define HFCPCI_INTS_TIMER 0x80 - -/* bits in INT_M2 */ -#define HFCPCI_PROC_TRANS 0x01 -#define HFCPCI_GCI_I_CHG 0x02 -#define HFCPCI_GCI_MON_REC 0x04 -#define HFCPCI_IRQ_ENABLE 0x08 -#define HFCPCI_PMESEL 0x80 - -/* bits in STATES */ -#define HFCPCI_STATE_MSK 0x0F -#define HFCPCI_LOAD_STATE 0x10 -#define HFCPCI_ACTIVATE 0x20 -#define HFCPCI_DO_ACTION 0x40 -#define HFCPCI_NT_G2_G3 0x80 - -/* bits in HFCD_MST_MODE */ -#define HFCPCI_MASTER 0x01 -#define HFCPCI_SLAVE 0x00 -#define HFCPCI_F0IO_POSITIV 0x02 -#define HFCPCI_F0_NEGATIV 0x04 -#define HFCPCI_F0_2C4 0x08 -/* remaining bits are for codecs control */ - -/* bits in HFCD_SCTRL */ -#define SCTRL_B1_ENA 0x01 -#define SCTRL_B2_ENA 0x02 -#define SCTRL_MODE_TE 0x00 -#define SCTRL_MODE_NT 0x04 -#define SCTRL_LOW_PRIO 0x08 -#define SCTRL_SQ_ENA 0x10 -#define SCTRL_TEST 0x20 -#define SCTRL_NONE_CAP 0x40 -#define SCTRL_PWR_DOWN 0x80 - -/* bits in SCTRL_E */ -#define HFCPCI_AUTO_AWAKE 0x01 -#define HFCPCI_DBIT_1 0x04 -#define HFCPCI_IGNORE_COL 0x08 -#define HFCPCI_CHG_B1_B2 0x80 - -/* bits in FIFO_EN register */ -#define HFCPCI_FIFOEN_B1 0x03 -#define HFCPCI_FIFOEN_B2 0x0C -#define HFCPCI_FIFOEN_DTX 0x10 -#define HFCPCI_FIFOEN_B1TX 0x01 -#define HFCPCI_FIFOEN_B1RX 0x02 -#define HFCPCI_FIFOEN_B2TX 0x04 -#define HFCPCI_FIFOEN_B2RX 0x08 - - -/* definitions of fifo memory area */ -#define MAX_D_FRAMES 15 -#define MAX_B_FRAMES 31 -#define B_SUB_VAL 0x200 -#define B_FIFO_SIZE (0x2000 - B_SUB_VAL) -#define D_FIFO_SIZE 512 -#define D_FREG_MASK 0xF - -struct zt { -__le16 z1;/* Z1 pointer 16 Bit */ -__le16 z2;/* Z2 pointer 16 Bit */ -}; - -struct dfifo { -u_char data[D_FIFO_SIZE ];/* FIFO data space */ -u_char fill1[0x20A0 -D_FIFO_SIZE ];/* reserved, do not use */ -u_char f1, f2;/* f pointers */ -u_char fill2[0x20C0 -0x20A2 ];/* reserved, do not use */ -/* mask index with D_FREG_MASK for access */ -struct zt za[MAX_D_FRAMES +1 ]; -u_char fill3[0x4000 -0x2100 ];/* align 16K */ -}; - -struct bzfifo { -struct zt za[MAX_B_FRAMES +1 ];/* only range 0x0..0x1F allowed */ -u_char f1, f2;/* f pointers */ -u_char fill[0x2100 -0x2082 ];/* alignment */ -}; - - -union fifo_area { -struct { -struct dfifo d_tx;/* D-send channel */ -struct dfifo d_rx;/* D-receive channel */ - } d_chan; -struct { -u_char fill1[0x200 ]; -u_char txdat_b1[B_FIFO_SIZE ]; -struct bzfifo txbz_b1; -struct bzfifo txbz_b2; -u_char txdat_b2[B_FIFO_SIZE ]; -u_char fill2[D_FIFO_SIZE ]; -u_char rxdat_b1[B_FIFO_SIZE ]; -struct bzfifo rxbz_b1; -struct bzfifo rxbz_b2; -u_char rxdat_b2[B_FIFO_SIZE ]; - } b_chans; -u_char fill[32768 ]; -}; - -#define Write_hfc (a, b, c) (writeb(c, (a->hw.pci_io) + b)) -#define Read_hfc (a, b) (readb((a->hw.pci_io) + b))drivers/isdn/hardware/mISDN/hfcsusb.h deleted +0
-425@@ -1,425 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* -* hfcsusb.h, HFC-S USB mISDN driver -*/ - -#ifndef __HFCSUSB_H__ -#define __HFCSUSB_H__ - - -#define DRIVER_NAME "HFC-S_USB" - -#define DBG_HFC_CALL_TRACE 0x00010000 -#define DBG_HFC_FIFO_VERBOSE 0x00020000 -#define DBG_HFC_USB_VERBOSE 0x00100000 -#define DBG_HFC_URB_INFO 0x00200000 -#define DBG_HFC_URB_ERROR 0x00400000 - -#define DEFAULT_TRANSP_BURST_SZ 128 - -#define HFC_CTRL_TIMEOUT 20/* 5ms timeout writing/reading regs */ -#define CLKDEL_TE 0x0f/* CLKDEL in TE mode */ -#define CLKDEL_NT 0x6c/* CLKDEL in NT mode */ - -/* hfcsusb Layer1 commands */ -#define HFC_L1_ACTIVATE_TE 1 -#define HFC_L1_ACTIVATE_NT 2 -#define HFC_L1_DEACTIVATE_NT 3 -#define HFC_L1_FORCE_DEACTIVATE_TE 4 - -/* cmd FLAGS in HFCUSB_STATES register */ -#define HFCUSB_LOAD_STATE 0x10 -#define HFCUSB_ACTIVATE 0x20 -#define HFCUSB_DO_ACTION 0x40 -#define HFCUSB_NT_G2_G3 0x80 - -/* timers */ -#define NT_ACTIVATION_TIMER 0x01/* enables NT mode activation Timer */ -#define NT_T1_COUNT 10 - -#define MAX_BCH_SIZE 2048/* allowed B-channel packet size */ - -#define HFCUSB_RX_THRESHOLD 64/* threshold for fifo report bit rx */ -#define HFCUSB_TX_THRESHOLD 96/* threshold for fifo report bit tx */ - -#define HFCUSB_CHIP_ID 0x16/* Chip ID register index */ -#define HFCUSB_CIRM 0x00/* cirm register index */ -#define HFCUSB_USB_SIZE 0x07/* int length register */ -#define HFCUSB_USB_SIZE_I 0x06/* iso length register */ -#define HFCUSB_F_CROSS 0x0b/* bit order register */ -#define HFCUSB_CLKDEL 0x37/* bit delay register */ -#define HFCUSB_CON_HDLC 0xfa/* channel connect register */ -#define HFCUSB_HDLC_PAR 0xfb -#define HFCUSB_SCTRL 0x31/* S-bus control register (tx) */ -#define HFCUSB_SCTRL_E 0x32/* same for E and special funcs */ -#define HFCUSB_SCTRL_R 0x33/* S-bus control register (rx) */ -#define HFCUSB_F_THRES 0x0c/* threshold register */ -#define HFCUSB_FIFO 0x0f/* fifo select register */ -#define HFCUSB_F_USAGE 0x1a/* fifo usage register */ -#define HFCUSB_MST_MODE0 0x14 -#define HFCUSB_MST_MODE1 0x15 -#define HFCUSB_P_DATA 0x1f -#define HFCUSB_INC_RES_F 0x0e -#define HFCUSB_B1_SSL 0x20 -#define HFCUSB_B2_SSL 0x21 -#define HFCUSB_B1_RSL 0x24 -#define HFCUSB_B2_RSL 0x25 -#define HFCUSB_STATES 0x30 - - -#define HFCUSB_CHIPID 0x40/* ID value of HFC-S USB */ - -/* fifo registers */ -#define HFCUSB_NUM_FIFOS 8/* maximum number of fifos */ -#define HFCUSB_B1_TX 0/* index for B1 transmit bulk/int */ -#define HFCUSB_B1_RX 1/* index for B1 receive bulk/int */ -#define HFCUSB_B2_TX 2 -#define HFCUSB_B2_RX 3 -#define HFCUSB_D_TX 4 -#define HFCUSB_D_RX 5 -#define HFCUSB_PCM_TX 6 -#define HFCUSB_PCM_RX 7 - - -#define USB_INT 0 -#define USB_BULK 1 -#define USB_ISOC 2 - -#define ISOC_PACKETS_D 8 -#define ISOC_PACKETS_B 8 -#define ISO_BUFFER_SIZE 128 - -/* defines how much ISO packets are handled in one URB */ -static int iso_packets[8 ] = -{ISOC_PACKETS_B ,ISOC_PACKETS_B ,ISOC_PACKETS_B ,ISOC_PACKETS_B , -ISOC_PACKETS_D ,ISOC_PACKETS_D ,ISOC_PACKETS_D ,ISOC_PACKETS_D -}; - - -/* Fifo flow Control for TX ISO */ -#define SINK_MAX 68 -#define SINK_MIN 48 -#define SINK_DMIN 12 -#define SINK_DMAX 18 -#define BITLINE_INF (-96 * 8) - -/* HFC-S USB register access by Control-URSs */ -#define write_reg_atomic (a, b, c) \ - usb_control_msg((a)->dev, (a)->ctrl_out_pipe, 0, 0x40, (c), (b), \ - 0, 0, HFC_CTRL_TIMEOUT) -#define read_reg_atomic (a, b, c) \ - usb_control_msg((a)->dev, (a)->ctrl_in_pipe, 1, 0xC0, 0, (b), (c), \ - 1, HFC_CTRL_TIMEOUT) -#define HFC_CTRL_BUFSIZE 64 - -struct ctrl_buf { -__u8 hfcs_reg;/* register number */ -__u8 reg_val;/* value to be written (or read) */ -}; - -/* -* URB error codes -* Used to represent a list of values and their respective symbolic names -*/ -struct hfcusb_symbolic_list { -const int num; -const char *name; -}; - -static struct hfcusb_symbolic_list urb_errlist[] = { - {-ENOMEM ,"No memory for allocation of internal structures" }, - {-ENOSPC ,"The host controller's bandwidth is already consumed" }, - {-ENOENT ,"URB was canceled by unlink_urb" }, - {-EXDEV ,"ISO transfer only partially completed" }, - {-EAGAIN ,"Too match scheduled for the future" }, - {-ENXIO ,"URB already queued" }, - {-EFBIG ,"Too much ISO frames requested" }, - {-ENOSR ,"Buffer error (overrun)" }, - {-EPIPE ,"Specified endpoint is stalled (device not responding)" }, - {-EOVERFLOW ,"Babble (bad cable?)" }, - {-EPROTO ,"Bit-stuff error (bad cable?)" }, - {-EILSEQ ,"CRC/Timeout" }, - {-ETIMEDOUT ,"NAK (device does not respond)" }, - {-ESHUTDOWN ,"Device unplugged" }, - {-1 ,NULL } -}; - -static inline const char * -symbolic (struct hfcusb_symbolic_list list[],const int num) -{ -int i; -for (i =0 ; list[i].name !=NULL ; i++) -if (list[i].num == num) -return list[i].name; -return "<unknown USB Error>" ; -} - -/* USB descriptor need to contain one of the following EndPoint combination: */ -#define CNF_4INT3ISO 1/* 4 INT IN, 3 ISO OUT */ -#define CNF_3INT3ISO 2/* 3 INT IN, 3 ISO OUT */ -#define CNF_4ISO3ISO 3/* 4 ISO IN, 3 ISO OUT */ -#define CNF_3ISO3ISO 4/* 3 ISO IN, 3 ISO OUT */ - -#define EP_NUL 1/* Endpoint at this position not allowed */ -#define EP_NOP 2/* all type of endpoints allowed at this position */ -#define EP_ISO 3/* Isochron endpoint mandatory at this position */ -#define EP_BLK 4/* Bulk endpoint mandatory at this position */ -#define EP_INT 5/* Interrupt endpoint mandatory at this position */ - -#define HFC_CHAN_B1 0 -#define HFC_CHAN_B2 1 -#define HFC_CHAN_D 2 -#define HFC_CHAN_E 3 - - -/* -* List of all supported endpoint configuration sets, used to find the -* best matching endpoint configuration within a device's USB descriptor. -* We need at least 3 RX endpoints, and 3 TX endpoints, either -* INT-in and ISO-out, or ISO-in and ISO-out) -* with 4 RX endpoints even E-Channel logging is possible -*/ -static int -validconf[][19 ] = { -/* INT in, ISO out config */ - {EP_NUL ,EP_INT ,EP_NUL ,EP_INT ,EP_NUL ,EP_INT ,EP_NOP ,EP_INT , -EP_ISO ,EP_NUL ,EP_ISO ,EP_NUL ,EP_ISO ,EP_NUL ,EP_NUL ,EP_NUL , -CNF_4INT3ISO ,2 ,1 }, - {EP_NUL ,EP_INT ,EP_NUL ,EP_INT ,EP_NUL ,EP_INT ,EP_NUL ,EP_NUL , -EP_ISO ,EP_NUL ,EP_ISO ,EP_NUL ,EP_ISO ,EP_NUL ,EP_NUL ,EP_NUL , -CNF_3INT3ISO ,2 ,0 }, -/* ISO in, ISO out config */ - {EP_NOP ,EP_NOP ,EP_NOP ,EP_NOP ,EP_NOP ,EP_NOP ,EP_NOP ,EP_NOP , -EP_ISO ,EP_ISO ,EP_ISO ,EP_ISO ,EP_ISO ,EP_ISO ,EP_NOP ,EP_ISO , -CNF_4ISO3ISO ,2 ,1 }, - {EP_NUL ,EP_NUL ,EP_NUL ,EP_NUL ,EP_NUL ,EP_NUL ,EP_NUL ,EP_NUL , -EP_ISO ,EP_ISO ,EP_ISO ,EP_ISO ,EP_ISO ,EP_ISO ,EP_NUL ,EP_NUL , -CNF_3ISO3ISO ,2 ,0 }, - {0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 }/* EOL element */ -}; - -/* string description of chosen config */ -static char *conf_str[] = { -"4 Interrupt IN + 3 Isochron OUT" , -"3 Interrupt IN + 3 Isochron OUT" , -"4 Isochron IN + 3 Isochron OUT" , -"3 Isochron IN + 3 Isochron OUT" -}; - - -#define LED_OFF 0/* no LED support */ -#define LED_SCHEME1 1/* LED standard scheme */ -#define LED_SCHEME2 2/* not used yet... */ - -#define LED_POWER_ON 1 -#define LED_POWER_OFF 2 -#define LED_S0_ON 3 -#define LED_S0_OFF 4 -#define LED_B1_ON 5 -#define LED_B1_OFF 6 -#define LED_B1_DATA 7 -#define LED_B2_ON 8 -#define LED_B2_OFF 9 -#define LED_B2_DATA 10 - -#define LED_NORMAL 0/* LEDs are normal */ -#define LED_INVERTED 1/* LEDs are inverted */ - -/* time in ms to perform a Flashing LED when B-Channel has traffic */ -#define LED_TIME 250 - - - -struct hfcsusb ; -struct usb_fifo ; - -/* structure defining input+output fifos (interrupt/bulk mode) */ -struct iso_urb { -struct urb *urb; -__u8 buffer[ISO_BUFFER_SIZE ];/* buffer rx/tx USB URB data */ -struct usb_fifo *owner_fifo;/* pointer to owner fifo */ -__u8 indx;/* Fifos's ISO double buffer 0 or 1 ? */ -#ifdef ISO_FRAME_START_DEBUG -int start_frames[ISO_FRAME_START_RING_COUNT ]; -__u8 iso_frm_strt_pos;/* index in start_frame[] */ -#endif -}; - -struct usb_fifo { -int fifonum;/* fifo index attached to this structure */ -int active;/* fifo is currently active */ -struct hfcsusb *hw;/* pointer to main structure */ -int pipe;/* address of endpoint */ -__u8 usb_packet_maxlen;/* maximum length for usb transfer */ -unsigned int max_size;/* maximum size of receive/send packet */ -__u8 intervall;/* interrupt interval */ -struct urb *urb;/* transfer structure for usb routines */ -__u8 buffer[128 ];/* buffer USB INT OUT URB data */ -int bit_line;/* how much bits are in the fifo? */ - -__u8 usb_transfer_mode;/* switched between ISO and INT */ -struct iso_urb iso[2 ];/* two urbs to have one always -one pending */ - -struct dchannel *dch;/* link to hfcsusb_t->dch */ -struct bchannel *bch;/* link to hfcsusb_t->bch */ -struct dchannel *ech;/* link to hfcsusb_t->ech, TODO: E-CHANNEL */ -int last_urblen;/* remember length of last packet */ -__u8 stop_gracefull;/* stops URB retransmission */ -}; - -struct hfcsusb { -struct list_head list; -struct dchannel dch; -struct bchannel bch[2 ]; -struct dchannel ech;/* TODO : wait for struct echannel ;) */ - -struct usb_device *dev;/* our device */ -struct usb_interface *intf;/* used interface */ -int if_used;/* used interface number */ -int alt_used;/* used alternate config */ -int cfg_used;/* configuration index used */ -int vend_idx;/* index in hfcsusb_idtab */ -int packet_size; -int iso_packet_size; -struct usb_fifo fifos[HFCUSB_NUM_FIFOS ]; - -/* control pipe background handling */ -struct ctrl_buf ctrl_buff[HFC_CTRL_BUFSIZE ]; -int ctrl_in_idx, ctrl_out_idx, ctrl_cnt; -struct urb *ctrl_urb; -struct usb_ctrlrequest ctrl_write; -struct usb_ctrlrequest ctrl_read; -int ctrl_paksize; -int ctrl_in_pipe, ctrl_out_pipe; -spinlock_t ctrl_lock;/* lock for ctrl */ -spinlock_t lock; - -__u8 threshold_mask; -__u8 led_state; - -__u8 protocol; -int nt_timer; -int open; -__u8 timers; -__u8 initdone; -char name[MISDN_MAX_IDLEN ]; -}; - -/* private vendor specific data */ -struct hfcsusb_vdata { -__u8 led_scheme;/* led display scheme */ -signed short led_bits[8 ];/* array of 8 possible LED bitmask */ -char *vend_name;/* device name */ -}; - - -#define HFC_MAX_TE_LAYER1_STATE 8 -#define HFC_MAX_NT_LAYER1_STATE 4 - -static const char *HFC_TE_LAYER1_STATES [HFC_MAX_TE_LAYER1_STATE +1 ] = { -"TE F0 - Reset" , -"TE F1 - Reset" , -"TE F2 - Sensing" , -"TE F3 - Deactivated" , -"TE F4 - Awaiting signal" , -"TE F5 - Identifying input" , -"TE F6 - Synchronized" , -"TE F7 - Activated" , -"TE F8 - Lost framing" , -}; - -static const char *HFC_NT_LAYER1_STATES [HFC_MAX_NT_LAYER1_STATE +1 ] = { -"NT G0 - Reset" , -"NT G1 - Deactive" , -"NT G2 - Pending activation" , -"NT G3 - Active" , -"NT G4 - Pending deactivation" , -}; - -/* supported devices */ -static const struct usb_device_id hfcsusb_idtab[] = { - { -USB_DEVICE (0x0959 ,0x2bd0 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_OFF , {4 ,0 ,2 ,1 }, -"ISDN USB TA (Cologne Chip HFC-S USB based)" }), - }, - { -USB_DEVICE (0x0675 ,0x1688 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {1 ,2 ,0 ,0 }, -"DrayTek miniVigor 128 USB ISDN TA" }), - }, - { -USB_DEVICE (0x07b0 ,0x0007 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {0x80 ,-64 ,-32 ,-16 }, -"Billion tiny USB ISDN TA 128" }), - }, - { -USB_DEVICE (0x0742 ,0x2008 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {4 ,0 ,2 ,1 }, -"Stollmann USB TA" }), - }, - { -USB_DEVICE (0x0742 ,0x2009 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {4 ,0 ,2 ,1 }, -"Aceex USB ISDN TA" }), - }, - { -USB_DEVICE (0x0742 ,0x200A ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {4 ,0 ,2 ,1 }, -"OEM USB ISDN TA" }), - }, - { -USB_DEVICE (0x08e3 ,0x0301 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {2 ,0 ,1 ,4 }, -"Olitec USB RNIS" }), - }, - { -USB_DEVICE (0x07fa ,0x0846 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {0x80 ,-64 ,-32 ,-16 }, -"Bewan Modem RNIS USB" }), - }, - { -USB_DEVICE (0x07fa ,0x0847 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {0x80 ,-64 ,-32 ,-16 }, -"Djinn Numeris USB" }), - }, - { -USB_DEVICE (0x07b0 ,0x0006 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {0x80 ,-64 ,-32 ,-16 }, -"Twister ISDN TA" }), - }, - { -USB_DEVICE (0x071d ,0x1005 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {0x02 ,0 ,0x01 ,0x04 }, -"Eicon DIVA USB 4.0" }), - }, - { -USB_DEVICE (0x0586 ,0x0102 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {0x88 ,-64 ,-32 ,-16 }, -"ZyXEL OMNI.NET USB II" }), - }, - { -USB_DEVICE (0x1ae7 ,0x0525 ), - .driver_info = (unsigned long ) &((struct hfcsusb_vdata ) - {LED_SCHEME1 , {0x88 ,-64 ,-32 ,-16 }, -"X-Tensions USB ISDN TA XC-525" }), - }, - { } -}; -Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/iohelper.h deleted +0
-96Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/ipac.h deleted +0
-393Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/isar.h deleted +0
-256Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/isdnhdlc.h deleted +0
-69Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/netjet.h deleted +0
-44Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/w6692.h deleted +0
-177Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/dsp_biquad.h deleted +0
-51Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/dsp_ecdis.h deleted +0
-96Lines of this file are not shown. View the raw message.
include/uapi/linux/isdn/capicmd.h deleted +0
-117Lines of this file are not shown. View the raw message.
include/uapi/linux/kernelcapi.h deleted +0
-48Lines of this file are not shown. View the raw message.
drivers/isdn/capi/kcapi_proc.c deleted +0
-231Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/avmfritz.c deleted +0
-1164Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/hfcmulti.c deleted +0
-5540Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/hfcpci.c deleted +0
-2360Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/hfcsusb.c deleted +0
-2157Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/isdnhdlc.c deleted +0
-617Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/mISDNinfineon.c deleted +0
-1168Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/mISDNipac.c deleted +0
-1636Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/mISDNisar.c deleted +0
-1694Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/netjet.c deleted +0
-1154Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/speedfax.c deleted +0
-520Lines of this file are not shown. View the raw message.
drivers/isdn/hardware/mISDN/w6692.c deleted +0
-1417Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/dsp_audio.c deleted +0
-421Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/dsp_blowfish.c deleted +0
-667Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/dsp_cmx.c deleted +0
-1949Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/dsp_core.c deleted +0
-1227Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/dsp_dtmf.c deleted +0
-313Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/dsp_hwec.c deleted +0
-122Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/dsp_pipeline.c deleted +0
-300Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/dsp_tones.c deleted +0
-550Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/hwchannel.c deleted +0
-516Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/l1oip_codec.c deleted +0
-358Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/l1oip_core.c deleted +0
-1505Lines of this file are not shown. View the raw message.
drivers/isdn/mISDN/timerdev.c deleted +0
-295Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Quoted 2 lines
2.53.0
Signature · 1 line
Luiz Augusto von Dentz
Part of the diff is not shown here. View the raw message.
Randy Dunlap
reviewerQuoted 10 lines · Luiz Augusto von Dentz
Hi Jakub,
Quoted 5 lines · Jakub Kicinski
Remove the ISDN (mISDN, CAPI) subsystem and Bluetooth CMTP protocol from the kernel tree.
Please don't send 1.7 MB emails for an Ack.
See https://people.kernel.org/tglx/,
especially "Trim replies".
Signature · 1 line
~Randy
Quoted 13 lines · Jakub Kicinski
Remove the ISDN (mISDN, CAPI) subsystem and Bluetooth CMTP protocol from the kernel tree.
ISDN is a pretty old technology and it's unclear whether anyone still uses it. I went over the last few years of git history and all the commits are either tree-wide conversions or syzbot/static analyzer fixes.
When we discussed removal in the past IIRC there were some concerns about ISDN still being used in parts of Germany. Unfortunately, the code base is quite old, none of the current maintainers are familiar with it and AI tools will have a field day finding bugs here.
Quoted 8 lines
Delete this code and preserve it in an out-of-tree repository for any remaining users:
https://github.com/linux-netdev/mod-orphanUAPI constants AF_ISDN/PF_ISDN and the SELinux
isdn_socketclass are preserved for ABI stability, but the rest of uAPI is removed.Signed-off-by Jakub Kicinski <[email protected]>
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Mon, 20 Apr 2026 19:21:07 -0700 you wrote:
Remove the ISDN (mISDN, CAPI) subsystem and Bluetooth CMTP protocol from the kernel tree.
ISDN is a pretty old technology and it's unclear whether anyone still uses it. I went over the last few years of git history and all the commits are either tree-wide conversions or syzbot/static analyzer fixes.
[...]
Here is the summary with links:
- [net-deletions] net: remove ISDN subsystem and Bluetooth CMTP
https://git.kernel.org/netdev/net/c/4f10f1dfb235
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
This patch was applied to bluetooth/bluetooth-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Mon, 20 Apr 2026 19:21:07 -0700 you wrote:
Remove the ISDN (mISDN, CAPI) subsystem and Bluetooth CMTP protocol from the kernel tree.
ISDN is a pretty old technology and it's unclear whether anyone still uses it. I went over the last few years of git history and all the commits are either tree-wide conversions or syzbot/static analyzer fixes.
[...]
Here is the summary with links:
- [net-deletions] net: remove ISDN subsystem and Bluetooth CMTP
https://git.kernel.org/bluetooth/bluetooth-next/c/4f10f1dfb235
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html