From owner-freebsd-isdn@FreeBSD.ORG Mon Aug 8 11:01:56 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34BF716A420 for ; Mon, 8 Aug 2005 11:01:56 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9F5743D45 for ; Mon, 8 Aug 2005 11:01:55 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j78B1tXJ006830 for ; Mon, 8 Aug 2005 11:01:55 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j78B1sPC006824 for freebsd-isdn@freebsd.org; Mon, 8 Aug 2005 11:01:54 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 8 Aug 2005 11:01:54 GMT Message-Id: <200508081101.j78B1sPC006824@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-isdn@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2005 11:01:56 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/11/16] bin/73988 isdn ISDN - first dial attempt fails o [2005/01/23] kern/76611 isdn [patch] i4b itjc bad enums for PIB cycle o [2005/03/22] kern/79117 isdn iavc(4) for AVM B1 PCI does not attach 3 problems total. From owner-freebsd-isdn@FreeBSD.ORG Thu Aug 11 17:34:43 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DFFF16A41F for ; Thu, 11 Aug 2005 17:34:43 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C72543D49 for ; Thu, 11 Aug 2005 17:34:42 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== Received: from mp-217-233-55.daxnet.no ([193.217.233.55] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 441872582 for freebsd-isdn@freebsd.org; Thu, 11 Aug 2005 19:34:36 +0200 From: Hans Petter Selasky To: freebsd-isdn@freebsd.org Date: Thu, 11 Aug 2005 19:35:34 +0200 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200508111935.35251.hselasky@c2i.net> Subject: New ISDN driver X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2005 17:34:43 -0000 Hi all, I'm out with a pre-release of my latest ISDN/USB driver. It should be very easy to install. Until further you need FreeBSD 5/6/7, though there are some plans to port it to NetBSD. What you get this time is a cloneable "/dev/i4b" and "/dev/capi20", besides from all those other improvements I have mentioned earlier. To make I4B compile on all platforms, I have moved all include files to "/usr/include/i4b/include" and "/sys/i4b/include", including "capi20.h". My CAPI library and helper functions are 99% compatible with Linux, though not completely identical. To make a Linux CAPI application compile on FreeBSD you only need to include the file "/usr/include/i4b/include/capi20.h" and make a few one-line patches. See "man capi" for how to resolve those one-liners. NOTE: there is no need to install liblinuxcapi ! So far I have test compiled my "capi20.h" with "chan_capi-0.3.5", which is a module for the Asterisk PBX, though I have plans for a "chan_i4btel" under BSD license, that will use CAPI aswell, One thing to note is that the controller numbers start at 0 so that I4B controller 0 is CAPI controller 0. Other implementations start controller numbers at 1, but I see no reason to confuse people, haveing more than one number for the same controller. If controller 0 is not valid please change the application in question to allow that value. If you cannot change the application, one can use "8" or "MAX_CONTROLLER" instead of "0" for outgoing calls. See "/usr/src/usr.sbin/i4b/capitest/main.c" for an example on how to take full advantage of my CAPI 2.0 implementation. See "/usr/src/usr.sbin/i4b/isdntest/main.c" if you want to stay updated on the I4B API. As a consequence of the changes I have made, you can now run "isdntest" while "isdnd" is running. I have plans to make the device allocation dynamic, so that applications can allocate devices like "/dev/i4btelX" dynamically, without need for configuration. Until further I have put all the "counts" in "/sys/i4b/include/i4b_global.h". If you need more than 8 units please edit that file. My driver now supports all cards that are supported by the official version of I4B except active CAPI controllers and one "Frizt" card. So if you have got an ISDN card or device the chances should be good that my driver will support it. Download the three files below into a new directory and type "make install". To uninstall type "make deinstall". http://home.c2i.net/hselasky/isdn4bsd/privat/temporary/155/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/temporary/new_ihfc_1_5_5.tar.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/temporary/new_ihfc_1_5_5.diff.bz2 Type "make help" for more help. PS: If you have the source tree in a directory different from "/usr/src", simply use "make S=/usr/mydirectory install". The only files that will not get installed here is a copy of the header files, which is always installed in /usr/include/.... A little note. If you are using FreeBSD 7 current from before 8th of August 2005, you will have to change "#if (__FreeBSD_version >= 700001)" to "#if 0" in the two files that break during kernel compilation. These are "/sys/i4b/layer4/i4b_capidrv.c" and "/sys/i4b/layer4/i4b_i4bdrv.c". --HPS From owner-freebsd-isdn@FreeBSD.ORG Fri Aug 12 12:32:24 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD24716A41F for ; Fri, 12 Aug 2005 12:32:24 +0000 (GMT) (envelope-from mike@reifenberger.com) Received: from mailout08.sul.t-online.com (mailout08.sul.t-online.com [194.25.134.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D27243D45 for ; Fri, 12 Aug 2005 12:32:24 +0000 (GMT) (envelope-from mike@reifenberger.com) Received: from fwd25.aul.t-online.de by mailout08.sul.t-online.com with smtp id 1E3Yhy-0007Gw-04; Fri, 12 Aug 2005 14:32:22 +0200 Received: from fw.reifenberger.com (SyFKJOZ1ged1h8OzbBwbk5k4Ajrb1vkZraEbx9X9E5hhyu8EzuJ3Y5@[84.152.51.224]) by fwd25.sul.t-online.de with esmtp id 1E3Yhn-1TEf4a0; Fri, 12 Aug 2005 14:32:11 +0200 Received: from localhost (mike@localhost) by fw.reifenberger.com (8.13.3/8.13.3/Submit) with ESMTP id j7CCVH7L089908; Fri, 12 Aug 2005 14:31:17 +0200 (CEST) (envelope-from mike@reifenberger.com) X-Authentication-Warning: fw.reifenberger.com: mike owned process doing -bs Date: Fri, 12 Aug 2005 14:31:17 +0200 (CEST) From: Michael Reifenberger To: Hans Petter Selasky In-Reply-To: <200508111935.35251.hselasky@c2i.net> Message-ID: <20050812142600.D89562@fw.reifenberger.com> References: <200508111935.35251.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-ID: SyFKJOZ1ged1h8OzbBwbk5k4Ajrb1vkZraEbx9X9E5hhyu8EzuJ3Y5@t-dialin.net X-TOI-MSGID: e27472cc-7c16-4547-89c0-2954c5de7185 Cc: freebsd-isdn@freebsd.org Subject: Re: New ISDN driver X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2005 12:32:25 -0000 On Thu, 11 Aug 2005, Hans Petter Selasky wrote: > Date: Thu, 11 Aug 2005 19:35:34 +0200 > From: Hans Petter Selasky > To: freebsd-isdn@freebsd.org > Subject: New ISDN driver > > Hi all, > > I'm out with a pre-release of my latest ISDN/USB driver. It should be very > easy to install. Until further you need FreeBSD 5/6/7, though there are some > plans to port it to NetBSD. > So now we have stock I4B, your I4B and C4B. Has there been any effords to merge the whole lot (at least) into -current? Bye/2 --- Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com http://www.plaut.de | http://www.Reifenberger.com From owner-freebsd-isdn@FreeBSD.ORG Fri Aug 12 14:32:25 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A99816A41F for ; Fri, 12 Aug 2005 14:32:25 +0000 (GMT) (envelope-from hm@kts.org) Received: from mailout11.sul.t-online.com (mailout11.sul.t-online.com [194.25.134.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57FEE43D5A for ; Fri, 12 Aug 2005 14:32:23 +0000 (GMT) (envelope-from hm@kts.org) Received: from fwd32.aul.t-online.de by mailout11.sul.t-online.com with smtp id 1E3aa5-0004be-01; Fri, 12 Aug 2005 16:32:21 +0200 Received: from ernie.int.kts.org (TiSfocZbre4eLSxBE1QYqmMr6nzyvBdPwyaUlKTO5wLdbrABe8ogc4@[84.144.70.10]) by fwd32.sul.t-online.de with esmtp id 1E3aZr-1Oq9bc0; Fri, 12 Aug 2005 16:32:07 +0200 Received: from ernie.int.kts.org ([127.0.0.1]) by localhost (ernie.int.kts.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 48158-20 for ; Fri, 12 Aug 2005 16:32:00 +0200 (CEST) Received: from bert.int.kts.org (bert.int.kts.org [172.31.42.2]) by ernie.int.kts.org (Postfix) with ESMTP id 051F8FDAA for ; Fri, 12 Aug 2005 16:31:58 +0200 (CEST) Received: by bert.int.kts.org (Postfix, from userid 100) id 86D8C1177E; Fri, 12 Aug 2005 16:36:25 +0200 (CEST) In-Reply-To: <20050812142600.D89562@fw.reifenberger.com> To: freebsd-isdn@freebsd.org Date: Fri, 12 Aug 2005 16:36:25 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL119 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20050812143625.86D8C1177E@bert.int.kts.org> From: hm@kts.org (Hellmuth Michaelis) X-Virus-Scanned: by amavisd-new using ClamAV at KTS.ORG X-ID: TiSfocZbre4eLSxBE1QYqmMr6nzyvBdPwyaUlKTO5wLdbrABe8ogc4@t-dialin.net X-TOI-MSGID: b36e30e3-0ad3-4cbd-b563-cfc260ba2804 Subject: Re: New ISDN driver X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hellmuth.michaelis@t-online.de List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2005 14:32:25 -0000 Michael Reifenberger wrote: > So now we have stock I4B, your I4B and C4B. > > Has there been any effords to merge the whole lot (at least) into -current? With regards to Hans Petters ISDN driver: There are for shure some parts of Hans Petters driver which fix bugs and/or enhance i4b and therefore should be integrated into i4b. I consider large portions of his code unreadable and as such unmaintainable for me and i will not import this code to FreeBSD, not as a whole and not as pieces. In case anyone wants to merge and/or import Hans Petters driver in its current form into FreeBSD she/he is with regards to me free to do so. Last time i looked at this, several drivers which are essential were marked as not tested and/or not available. Several times i have requested that Hans Petter should clean up his code and break it into overseeable patches so new functionality and bug fixes could be imported incrementally without breaking running code, but he is as it looks to me either not able or not willing to do so. I'm really tired of this subject and wasting time writing mail on this back and forth and back and forth. With regards to c4b: Thomas has gotten a commit bit and is working to get everything up and running to import c4b asap. I think its absolute essential and necessary to get c4b into FreeBSD and it might be that this has also a positive impact on the future life of i4b. hellmuth -- Hellmuth Michaelis mbl +49 (0)160 96455696 secion GmbH fon +49 (0)40 389071-0 Buelowstrasse 20 fax +49 (0)40 389071-19 22763 Hamburg http://www.secion.de/ From owner-freebsd-isdn@FreeBSD.ORG Fri Aug 12 16:15:58 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78A2116A41F for ; Fri, 12 Aug 2005 16:15:58 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3627F43D46 for ; Fri, 12 Aug 2005 16:15:56 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== Received: from mp-217-206-105.daxnet.no ([193.217.206.105] verified) by mailfe02.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 428531187; Fri, 12 Aug 2005 18:15:53 +0200 From: Hans Petter Selasky To: freebsd-isdn@freebsd.org, hellmuth.michaelis@t-online.de Date: Fri, 12 Aug 2005 18:16:49 +0200 User-Agent: KMail/1.7 References: <20050812143625.86D8C1177E@bert.int.kts.org> In-Reply-To: <20050812143625.86D8C1177E@bert.int.kts.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508121816.51020.hselasky@c2i.net> Cc: Subject: Re: New ISDN driver X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2005 16:15:58 -0000 On Friday 12 August 2005 16:36, Hellmuth Michaelis wrote: > Michael Reifenberger wrote: > > So now we have stock I4B, your I4B and C4B. > > > > Has there been any effords to merge the whole lot (at least) into > > -current? > > With regards to Hans Petters ISDN driver: > > There are for shure some parts of Hans Petters driver which fix bugs and/or > enhance i4b and therefore should be integrated into i4b. > > I consider large portions of his code unreadable and as such unmaintainable > for me and i will not import this code to FreeBSD, not as a whole and not > as pieces. In case anyone wants to merge and/or import Hans Petters driver > in its current form into FreeBSD she/he is with regards to me free to do > so. I agree that there were some things that were not so good in the driver last year, but I have tried to fix that now. Have you looked at the source code this time. Can you give an example of what is not so good and why? > > Last time i looked at this, several drivers which are essential were marked > as not tested and/or not available. The ISAC/HSCX framework has been throughly tested. When one such device works all the others should work aswell. It is the same chipset. "Don't know if they work" means that I have not tested every single card, hence I have not got access to that hardware, but I expect it to work hence I have tested one of those cards with ISAC/HSCX. Also I have got reports back that it works. By the way: The ISDN cards that you refer all use buffers of less than 64 bytes (8ms), and does not provide reliable data transfer when one starts loading the kernel. A good ISDN card has a buffer of 100ms at least. These are for example the USB devices and HFC-S XXX . These have all been tested. > > Several times i have requested that Hans Petter should clean up his code > and break it into overseeable patches so new functionality and bug fixes > could be imported incrementally without breaking running code, but he is > as it looks to me either not able or not willing to do so. I have already spent some weeks on CAPI. The existing I4B system is basically wrong. It does not support mutexes, and you cannot add mutex support in the form of adding a few lines here and there, which is the impression I get. Then you will end up with reverse locking order problems and worse. The whole system must be redesigned. You suggested doing one driver at a time, but please tell me how this is possible. For example, if you want each controller under each its lock, what lock should the channel drivers, "/dev/i4bxxx" use? If you let each channel driver be under each its lock to, then the channel drivers cannot call into I4B while holding that lock, hence I4B is calling the channel drivers with the controller lock locked. You cannot unlock the channel driver lock before calling into I4B either, hence you get trouble with the state of the channel driver: What happens if that channel is disconnected exactly at the unlocked instruction, and at the same time it is trying to call into I4B. Then you might want to use some increment/decrement refcount, but suddenly you understand that that is not possible, because then the callback will be blocking and you have call the interrupt handler from a separate thread, which is just waisted CPU if the interrupt happens more than 250 times per second. > > With regards to c4b: > > Thomas has gotten a commit bit and is working to get everything up and > running to import c4b asap. > > I think its absolute essential and necessary to get c4b into FreeBSD and > it might be that this has also a positive impact on the future life of i4b. There are passive multichannel devices too. Adding support for SS7 or whatever they use should not be a very big task. The layer 1 driver is the least problem. I opt for passive cards. On a second thought, active cards can pose a security risk to the system. Doesn't these cards use DMA and have full access to the system memory? Third, when you want to make an embedded product, it is going to be much more expensive if you use CAPI. Just think about the overhead having to encode/decode protocols twice. Are you interested in building up support for passive T1 cards? --HPS From owner-freebsd-isdn@FreeBSD.ORG Fri Aug 12 17:38:47 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CF8F16A41F for ; Fri, 12 Aug 2005 17:38:47 +0000 (GMT) (envelope-from tg@mirbsd.org) Received: from thor.66h.42h.de (mirsolutions.de [81.169.132.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 893D443D48 for ; Fri, 12 Aug 2005 17:38:45 +0000 (GMT) (envelope-from tg@mirbsd.org) Received: from odem.66h.42h.de (root@odem.66h.42h.de [IPv6:2001:6f8:94d:1:2c0:9fff:fe1a:6a01]) by thor.66h.42h.de (8.13.1/8.13.1) with ESMTP id j7CHcehu006070 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 12 Aug 2005 17:38:43 GMT Received: from localhost (tg@localhost [IPv6:::1]) by odem.66h.42h.de (8.13.4/8.13.3) with ESMTP id j7CHcb2U017717 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 12 Aug 2005 17:38:38 GMT Date: Fri, 12 Aug 2005 17:38:36 +0000 (UTC) From: Thorsten Glaser X-X-Sender: tg@odem.66h.42h.de cc: freebsd-isdn@freebsd.org In-Reply-To: <20050812142600.D89562@fw.reifenberger.com> Message-ID: References: <200508111935.35251.hselasky@c2i.net> <20050812142600.D89562@fw.reifenberger.com> X-Message-Flag: Your mailer is broken. Get an update at http://www.washington.edu/pine/getpine/pcpine.html for free. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: New ISDN driver X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2005 17:38:47 -0000 Michael Reifenberger dixit: > So now we have stock I4B, your I4B and C4B. > > Has there been any effords to merge the whole lot (at least) into -current? Speaking for the MirOS Project: Currently, we have ISDN support from NetBSD(R) from about one year ago; it was sort of a one-time porting effort, and neither are there clean diffs, nor is it upgradable. I am looking for an ISDN driver code base which we can use, where we have an upgrade path (i.e. which is not maintained as part of FreeBSD only), and where interest to keep some #ifdef __MirBSD__ exists. I'd prefer using 'cvs import' and vendor branches to keep track of it, so either a separate ISDN for bsd project, or a codebase which is merged into either FreeBSD, NetBSD, DragonFly BSD or MirBSD (I don't care which), but with all the ifdef's still in it, is needed. I'd also like to not lose support for older cards, for example old ISA Fritz and Teles cards. Does this sound doable? I am not very experienced in kernel coding, but if it works under NetBSD(R) I should be able to port it to MirBSD (callout -> timeout, etc.) and ifdef the whole system dependency stuff out. For these who have never heard about MirBSD: it's a derivate of OpenBSD developed by the MirOS project; at the moment our kernel is most similar to the OpenBSD kernel of May 2004, but with a fair amount of changes (although most work is been done in userland and ports framework). bye, //mirabile - Head Developer -- I believe no one can invent an algorithm. One just happens to hit upon it when God enlightens him. Or only God invents algorithms, we merely copy them. If you don't believe in God, just consider God as Nature if you won't deny existence. -- Coywolf Qi Hunt From owner-freebsd-isdn@FreeBSD.ORG Fri Aug 12 18:33:30 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49A4B16A41F for ; Fri, 12 Aug 2005 18:33:30 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.swip.net [212.247.155.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4E5443D45 for ; Fri, 12 Aug 2005 18:33:29 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== Received: from mp-217-204-144.daxnet.no ([193.217.204.144] verified) by mailfe16.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 6695544; Fri, 12 Aug 2005 20:33:27 +0200 From: Hans Petter Selasky To: freebsd-isdn@freebsd.org, Thorsten Glaser Date: Fri, 12 Aug 2005 20:34:23 +0200 User-Agent: KMail/1.7 References: <200508111935.35251.hselasky@c2i.net> <20050812142600.D89562@fw.reifenberger.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508122034.24936.hselasky@c2i.net> Cc: Subject: Re: New ISDN driver X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2005 18:33:30 -0000 On Friday 12 August 2005 19:38, Thorsten Glaser wrote: > Michael Reifenberger dixit: > > So now we have stock I4B, your I4B and C4B. > > > > Has there been any effords to merge the whole lot (at least) into > > -current? > > Speaking for the MirOS Project: > > Currently, we have ISDN support from NetBSD(R) from about > one year ago; it was sort of a one-time porting effort, > and neither are there clean diffs, nor is it upgradable. > > I am looking for an ISDN driver code base which we can use, > where we have an upgrade path (i.e. which is not maintained > as part of FreeBSD only), and where interest to keep some > #ifdef __MirBSD__ exists. I'd prefer using 'cvs import' and > vendor branches to keep track of it, so either a separate > ISDN for bsd project, or a codebase which is merged into > either FreeBSD, NetBSD, DragonFly BSD or MirBSD (I don't > care which), but with all the ifdef's still in it, is needed. The code will look very bad if there are too many ifdef's. I'm currently working on a port for my driver for NetBSD, and I was thinking that the best would be to write a small library that emulates FreeBSD. One reason I want the code FreeBSD specific, is that FreeBSD uses mutexes. Mutexes can be ported to splnet/splx without much trouble, but not the other way around. Then one ends up with all code under Giant. When it comes to devices I was thinking the same here. Write some layer that emulates FreeBSD 5/6/7. This is what I have done with USB. I support two USB API's at the same time and there is no conflict. Actually the one USB API sits on top of the other, but switching this order is not possible. > > I'd also like to not lose support for older cards, for > example old ISA Fritz and Teles cards. I have got support for all these. What was in "man isic" has been moved to "man ihfc". --HPS From owner-freebsd-isdn@FreeBSD.ORG Fri Aug 12 20:17:10 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3310716A420 for ; Fri, 12 Aug 2005 20:17:10 +0000 (GMT) (envelope-from tg@66h.42h.de) Received: from thor.66h.42h.de (mirsolutions.de [81.169.132.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33AFF43D58 for ; Fri, 12 Aug 2005 20:17:05 +0000 (GMT) (envelope-from tg@66h.42h.de) Received: from odem.66h.42h.de (root@unterwegs.66h.42h.de [IPv6:2001:6f8:94d:3::2]) by thor.66h.42h.de (8.13.1/8.13.1) with ESMTP id j7CKH0Ia031540 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 12 Aug 2005 20:17:04 GMT Received: from localhost (tg@localhost [IPv6:::1]) by odem.66h.42h.de (8.13.4/8.13.3) with ESMTP id j7CKGkH6029621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 12 Aug 2005 20:16:59 GMT Date: Fri, 12 Aug 2005 20:16:45 +0000 (UTC) From: Thorsten Glaser cc: freebsd-isdn@freebsd.org In-Reply-To: <200508122034.24936.hselasky@c2i.net> Message-ID: References: <200508111935.35251.hselasky@c2i.net> <20050812142600.D89562@fw.reifenberger.com> <200508122034.24936.hselasky@c2i.net> X-Message-Flag: Your mailer is broken. Get an update at http://www.washington.edu/pine/getpine/pcpine.html for free. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: New ISDN driver X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2005 20:17:10 -0000 Hans Petter Selasky dixit: >The code will look very bad if there are too many ifdef's. True. >I'm currently >working on a port for my driver for NetBSD, and I was thinking that the best >would be to write a small library that emulates FreeBSD. This is an interesting approach - if porting can be done by only extending this layer, it would be even better I think. I will definitively look at it when your NetBSD port is done and I've got some time at my hands. bye, //mirabile -- I believe no one can invent an algorithm. One just happens to hit upon it when God enlightens him. Or only God invents algorithms, we merely copy them. If you don't believe in God, just consider God as Nature if you won't deny existence. -- Coywolf Qi Hunt From owner-freebsd-isdn@FreeBSD.ORG Sat Aug 13 11:13:46 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D919316A41F for ; Sat, 13 Aug 2005 11:13:46 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4666443D45 for ; Sat, 13 Aug 2005 11:13:45 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F9CD.dip.t-dialin.net [84.165.249.205]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j7DB85K3046790; Sat, 13 Aug 2005 13:08:18 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j7DBCdLu067723; Sat, 13 Aug 2005 13:12:39 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sat, 13 Aug 2005 13:12:38 +0200 From: Alexander Leidinger To: hellmuth.michaelis@t-online.de Message-ID: <20050813131238.17c43720@Magellan.Leidinger.net> In-Reply-To: <20050812143625.86D8C1177E@bert.int.kts.org> References: <20050812142600.D89562@fw.reifenberger.com> <20050812143625.86D8C1177E@bert.int.kts.org> X-Mailer: Sylpheed-Claws 1.9.13 (GTK+ 2.6.8; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: freebsd-isdn@freebsd.org, hm@kts.org Subject: Re: New ISDN driver X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2005 11:13:47 -0000 On Fri, 12 Aug 2005 16:36:25 +0200 (CEST) hm@kts.org (Hellmuth Michaelis) wrote: > I'm really tired of this subject and wasting time writing mail on this > back and forth and back and forth. Do you have archives of this? Would it be possible to make them public (if Hans-Peter agrees)? This would make it possible for other people to determine if Hans Petter fixed your concerns and maybe devote time to help fix the remaining ones. Bye, Alexander. -- There's no place like ~ http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-isdn@FreeBSD.ORG Sat Aug 13 12:08:17 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18BE216A41F for ; Sat, 13 Aug 2005 12:08:17 +0000 (GMT) (envelope-from hm@kts.org) Received: from mailout07.sul.t-online.com (mailout07.sul.t-online.com [194.25.134.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F38B43D45 for ; Sat, 13 Aug 2005 12:08:16 +0000 (GMT) (envelope-from hm@kts.org) Received: from fwd20.aul.t-online.de by mailout07.sul.t-online.com with smtp id 1E3uoA-0006BL-01; Sat, 13 Aug 2005 14:08:14 +0200 Received: from ernie.int.kts.org (rXRIYwZDgeWY8xd6ddT-REC6bqFLki0FMhcDfw0dieajmvLiF0VbQG@[84.144.93.26]) by fwd20.sul.t-online.de with esmtp id 1E3uo6-0nKu2q0; Sat, 13 Aug 2005 14:08:10 +0200 Received: from ernie.int.kts.org ([127.0.0.1]) by localhost (ernie.int.kts.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 82570-05 for ; Sat, 13 Aug 2005 14:08:05 +0200 (CEST) Received: from bert.int.kts.org (bert.int.kts.org [172.31.42.2]) by ernie.int.kts.org (Postfix) with ESMTP id ED8A8FDAA for ; Sat, 13 Aug 2005 14:08:04 +0200 (CEST) Received: by bert.int.kts.org (Postfix, from userid 100) id EE5991177E; Sat, 13 Aug 2005 14:12:32 +0200 (CEST) In-Reply-To: <20050813131238.17c43720@Magellan.Leidinger.net> To: freebsd-isdn@freebsd.org Date: Sat, 13 Aug 2005 14:12:32 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL119 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20050813121232.EE5991177E@bert.int.kts.org> From: hm@kts.org (Hellmuth Michaelis) X-Virus-Scanned: by amavisd-new using ClamAV at KTS.ORG X-ID: rXRIYwZDgeWY8xd6ddT-REC6bqFLki0FMhcDfw0dieajmvLiF0VbQG@t-dialin.net X-TOI-MSGID: 8a55fa5b-30e4-405c-a9af-9d30dfa80fda Subject: Re: New ISDN driver X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hellmuth.michaelis@t-online.de List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2005 12:08:17 -0000 Alexander Leidinger wrote: > On Fri, 12 Aug 2005 16:36:25 +0200 (CEST) > hm@kts.org (Hellmuth Michaelis) wrote: > > > I'm really tired of this subject and wasting time writing mail on this > > back and forth and back and forth. > > Do you have archives of this? It should be almost all in freebsd-isdn list archives. hellmuth -- Hellmuth Michaelis mbl +49 (0)160 96455696 secion GmbH fon +49 (0)40 389071-0 Buelowstrasse 20 fax +49 (0)40 389071-19 22763 Hamburg http://www.secion.de/ From owner-freebsd-isdn@FreeBSD.ORG Sat Aug 13 13:18:24 2005 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C1BA16A41F for ; Sat, 13 Aug 2005 13:18:24 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5D0E43D46 for ; Sat, 13 Aug 2005 13:18:23 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== Received: from 217-230-14.511210.adsl.tele2.no ([193.217.230.14] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 245650921; Sat, 13 Aug 2005 15:18:21 +0200 From: Hans Petter Selasky To: freebsd-isdn@freebsd.org Date: Sat, 13 Aug 2005 15:19:18 +0200 User-Agent: KMail/1.7 References: <20050812142600.D89562@fw.reifenberger.com> <20050812143625.86D8C1177E@bert.int.kts.org> <20050813131238.17c43720@Magellan.Leidinger.net> In-Reply-To: <20050813131238.17c43720@Magellan.Leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200508131519.19213.hselasky@c2i.net> Cc: Alexander Leidinger Subject: Re: New ISDN driver X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2005 13:18:24 -0000 On Saturday 13 August 2005 13:12, Alexander Leidinger wrote: > On Fri, 12 Aug 2005 16:36:25 +0200 (CEST) > > hm@kts.org (Hellmuth Michaelis) wrote: > > I'm really tired of this subject and wasting time writing mail on this > > back and forth and back and forth. > > Do you have archives of this? Would it be possible to make them public > (if Hans-Peter agrees)? =46rom what I can remember, there was an issue about the use of macros to=20 generate code. That is no longer done. Instead the code looks almost like t= he=20 drivers in i4b/layer1/isic/ ... Though I still use macros to generate data= =20 structures and do some initializing, to make updating as easy and error les= s=20 as possible, but I see no problem about that. =46or example in "/sys/i4b/include/capi20.h" I use macros to generate most = of=20 the CAPI structures. This allows the users to also generate structures=20 without having to use any additional script. Maybe I could have used a scri= pt=20 like awk to do this, but then the file gets "n" times larger. But once you= =20 get used to "YES", "NO" and "NOT", and understand what these macro building= =20 blocks really do, it is very easy to understand. If you want to see what "capi20.h" really contains, use: cpp capi20.h | sed -e 'y/;/\n/' | more Another issue was Paul Henning complaining about the use of "goto *(ptr)".= =20 This is no longer used, and that part of the driver has been completely=20 rewritten. Then the unresolved issue is to create a patch-set consisting of=20 self-contained patches that will update the official version of I4B. I=20 question wether this is possible. You have to do a larger "update" in one=20 commit, and maybe FreeBSD 7 current is a good place to do this "update"? =2D-HPS