From owner-freebsd-isdn@FreeBSD.ORG Sun Sep 26 12:47:09 2004 Return-Path: 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 8C60716A4D7 for ; Sun, 26 Sep 2004 12:47:09 +0000 (GMT) Received: from ni-mail3.dna.utvinternet.net (ni-mail3.dna.utvinternet.net [194.46.8.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id B50A643D46 for ; Sun, 26 Sep 2004 12:47:08 +0000 (GMT) (envelope-from fergus@cobbled.net) Received: from eyore.public.cobbled.net (unverified [195.218.110.221]) by ni-mail3.dna.utvinternet.net for ; Sun, 26 Sep 2004 13:47:06 +0100 Received: from eyore.public.cobbled.net (localhost [127.0.0.1]) i8QClLEX039159 for ; Sun, 26 Sep 2004 13:47:21 +0100 (BST) (envelope-from fergus@eyore.public.cobbled.net) Received: (from fergus@localhost) by eyore.public.cobbled.net (8.12.10/8.12.10/Submit) id i8QClK0c039158 for freebsd-isdn@freebsd.org; Sun, 26 Sep 2004 13:47:21 +0100 (BST) (envelope-from fergus) Date: Sun, 26 Sep 2004 13:47:20 +0100 From: n0g0013 To: freebsd-isdn@freebsd.org Message-ID: <20040926124720.GA39113@eyore.cobbled.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: driver for usr 3409 pci ta X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2004 12:47:09 -0000 hello again. started work on this driver but, as this is my first ever attempt at writing a device driver i'm struggling. my basic problem is a general understanding of PCI architecture and operation. i've read the handbook documentation and some other refs i dug up on the web. unfortunately they appear to have a basic understanding of hardware (and PCI) as a requisite. so, here's the question. since this thing is a TA i figure all i need is some pretty simple IO to the card. but i can't find any references to using memory mapped or direct IO. i remember a lot of IO used to be byte pairs, one in, one out and an IRQ channel for control but a little scared to start dumping data into memory mapped resource space or IO channels as it's been a long time since i even looked at this stuff. also, are there standard PCI register information or are these completely card specific? these are accessed with the PCIR_BAR macros, right? so PCIR_BAR(1) will get me PCI register one . . . but i don't understand the relationship of these macros to the resource id for the bus_*_resource calls. i guess what i need is a base line reference (pci interest group will sell me specs i don't need) or a very simple PCI driver that illustrates the above. going to continue hacking in the mean time. thanks for any help you can offer. P.S: here is the output from pciconf -lv none2@pci0:11:0: class=0x028000 card=0x340916ec \ chip=0x66921050 rev=0x01 hdr=0x00 vendor = 'Winbond Electronics Corp.' device = 'W6692/92A/92CF PCI BusISDN S/T-Controller' class = network P.P.S: if this is a TA then i don't expect the iwic driver \ will work. + the subdevice id's don't match any in the \ source -- t t z From owner-freebsd-isdn@FreeBSD.ORG Sun Sep 26 14:15:08 2004 Return-Path: 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 A5B5616A507 for ; Sun, 26 Sep 2004 14:15:08 +0000 (GMT) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id E824443D45 for ; Sun, 26 Sep 2004 14:15:07 +0000 (GMT) (envelope-from jml@cubical.fi) Received: from snorkkeli.homeip.net (62-142-249-176.pp.saunalahti.fi [62.142.249.176]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 80E711E85D; Sun, 26 Sep 2004 17:15:06 +0300 (EEST) Received: (from root@localhost) by snorkkeli.homeip.net (8.12.9p2/8.12.9) id i8QEF33C084806; Sun, 26 Sep 2004 17:15:03 +0300 (EEST) (envelope-from jml@cubical.fi) Received: from [192.168.2.252] (wazoo.koti2.net [192.168.2.252]) i8QEF0SV084795; Sun, 26 Sep 2004 17:15:00 +0300 (EEST) (envelope-from jml@cubical.fi) In-Reply-To: <20040926124720.GA39113@eyore.cobbled.net> References: <20040926124720.GA39113@eyore.cobbled.net> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Juha-Matti Liukkonen Date: Sun, 26 Sep 2004 17:17:59 +0300 To: n0g0013 X-Pgp-Agent: GPGMail 1.0.2 X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by AMaViS perl-11 cc: freebsd-isdn@freebsd.org Subject: Re: driver for usr 3409 pci ta X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2004 14:15:08 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, based on the chip id, your device should map to the generic Winbond 6692 with iwic just fine. In any case, if you want to make a driver for an ISDN chip in BSD, you should probably take one of the existing i4b layer1 drivers as a base. You must implement the i4b internal l1mux interface towards the stack, which is quite different from anything "regular" drivers do. The bus probe/attach/intr functions are quite basic PCI stuff for them too, though (usually split into _.c). Br, Juha On Sep 26, 2004, at 15:47, n0g0013 wrote: > : > P.S: here is the output from pciconf -lv > none2@pci0:11:0: class=0x028000 card=0x340916ec \ > chip=0x66921050 rev=0x01 hdr=0x00 > vendor = 'Winbond Electronics Corp.' > device = 'W6692/92A/92CF PCI BusISDN S/T-Controller' > class = network > P.P.S: if this is a TA then i don't expect the iwic driver \ > will work. + the subdevice id's don't match any in the \ > source - -- Juha-Matti Liukkonen - Systems Architect, Cubical Solutions Ltd tel: +358-40-5280142 e-mail: jml@cubical.fi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFBVs+YKDUn3bh7M9gRAhQ3AJwLRW7yR0IIHsUw6pbad/RnuQv2IgCgkdVS GbkQWAvhfVx421zJpubLxWc= =IwlJ -----END PGP SIGNATURE----- From owner-freebsd-isdn@FreeBSD.ORG Sun Sep 26 14:34:43 2004 Return-Path: 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 D019216A4CE for ; Sun, 26 Sep 2004 14:34:43 +0000 (GMT) Received: from ni-mail2.dna.utvinternet.net (ni-mail2.dna.utvinternet.net [194.46.8.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D4C843D2D for ; Sun, 26 Sep 2004 14:34:43 +0000 (GMT) (envelope-from fergus@cobbled.net) Received: from eyore.public.cobbled.net (unverified [195.218.110.221]) by ni-mail2.dna.utvinternet.net ; Sun, 26 Sep 2004 15:34:40 +0100 Received: from eyore.public.cobbled.net (localhost [127.0.0.1]) i8QEYtEX039379; Sun, 26 Sep 2004 15:34:56 +0100 (BST) (envelope-from fergus@eyore.public.cobbled.net) Received: (from fergus@localhost)i8QEYt9v039378; Sun, 26 Sep 2004 15:34:55 +0100 (BST) (envelope-from fergus) Date: Sun, 26 Sep 2004 15:34:55 +0100 From: n0g0013 To: Juha-Matti Liukkonen Message-ID: <20040926143455.GA39167@eyore.cobbled.net> References: <20040926124720.GA39113@eyore.cobbled.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-isdn@freebsd.org Subject: Re: driver for usr 3409 pci ta X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2004 14:34:43 -0000 On 26.09-17:17, Juha-Matti Liukkonen wrote: [ ... ] > based on the chip id, your device should map to the generic Winbond > 6692 with iwic just fine. that's what i thought initially but since i was hacking the iwic driver at the time i checked the probe. it won't match any of the subdevices listed. which actually makes sense because this is, alledgedly a TA, so i should be able to write good old AT/ST commands. i'm suspicious of that however and have a feeling that the TA bit of this my be implemented in the windows driver (i.e. it's not a TA - just marketing shit and winbloat) leaving me to add a further identifier to the iwic driver to match the card and use i4b stuff as is. > In any case, if you want to make a driver for an ISDN chip in BSD, you > should probably take one of the existing i4b layer1 drivers as a base. > You must implement the i4b internal l1mux interface towards the stack, > which is quite different from anything "regular" drivers do. if this really is a TA then i won't have to do that. that's why i want to get the basic IO working to see if the card will respond to the AT/ST commands in the expected manner. if it doesn't then i'll need to go try hack the iwic driver and test that. > The bus probe/attach/intr functions are quite basic PCI stuff for them > too, though (usually split into _.c). ehm, ok. but that's not what i need to know. no offense. -- t t z From owner-freebsd-isdn@FreeBSD.ORG Tue Sep 28 21:24:34 2004 Return-Path: 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 DC3FC16A4CE for ; Tue, 28 Sep 2004 21:24:34 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id CE06743D1F for ; Tue, 28 Sep 2004 21:24:33 +0000 (GMT) (envelope-from punky@gmx.ch) Received: (qmail 6917 invoked by uid 65534); 28 Sep 2004 21:24:32 -0000 Received: from p213.54.75.9.tisdip.tiscali.de (EHLO paranormal.tonn.local) (213.54.75.9) by mail.gmx.net (mp012) with SMTP; 28 Sep 2004 23:24:32 +0200 X-Authenticated: #1975484 Date: Tue, 28 Sep 2004 23:22:45 +0200 From: Johannes Ton X-Priority: 3 (Normal) Message-ID: <1629688092.20040928232245@gmx.ch> To: freebsd-isdn MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: isdnd does not start a special script (incoming, regprog) X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Johannes Ton List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 21:24:35 -0000 Hi, i have configured my isdnd to start a shell-script on incomming calls. This shell-script calls 1st a perl-script to save the call into a database and 2nd a jabber-client (a perl-script to) to signal the call to an other machine. When i call the shell-script in a shell, a message will be sended by the jabber-client. But if the client will be started by the incoming-script (from isdnd), the client terminates with "connection timed out". There is no problem with the script, no problem with dns, ipfw or something else that i have found. While the isdnd tries to start the jabber-client, the hole system freezes for about 6 seconds. I've been trying to get this working for about 3 days now... i feel a headache comming... :) Any hints? Thanks in advance Johannes From owner-freebsd-isdn@FreeBSD.ORG Wed Sep 29 09:34:31 2004 Return-Path: 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 9E5A216A4CE for ; Wed, 29 Sep 2004 09:34:31 +0000 (GMT) Received: from mx.reus.ru (hms.wsnet.ru [212.96.195.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id A97D843D41 for ; Wed, 29 Sep 2004 09:34:30 +0000 (GMT) (envelope-from east99@mail.ru) Received: from [10.138.0.152] (HELO acs-02.reus.ru) by mx.reus.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP id 2446542 for freebsd-isdn@freebsd.org; Wed, 29 Sep 2004 15:37:14 +0600 Date: Wed, 29 Sep 2004 15:34:27 +0600 From: "Belyakovcev E.M. aka eastwood" X-Mailer: The Bat! (v2.10.01) CD5BF9353B3B7091 X-Priority: 3 (Normal) Message-ID: <541287027.20040929153427@mail.ru> To: freebsd-isdn@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Asuscom TA-280ST X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: east99 List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 09:34:31 -0000 Hi! Somebody help me! I have ASUSCOM ISDN TA-280ST USB and have some problems with installation. FreeBSD 5.2.1. I tried to intstall new_ihfc driver wich support USB Winbound chips, but doesn't work. Further I have tried edit source i4b_wibusb.h, where: I4B_USB_DRIVER(/* Asuscom ISDNlink 128K (USB) * model: TA-280-ST-W */ .vid = 0x07356694, <--- change to 0x0735c541 ); and have error: Sep 29 15:24:16 gate kernel: ihfc0: ERROR(s): INVAL P.S. sorry for my english! From owner-freebsd-isdn@FreeBSD.ORG Wed Sep 29 18:57:22 2004 Return-Path: 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 B992116A4CE for ; Wed, 29 Sep 2004 18:57:22 +0000 (GMT) Received: from peedub.jennejohn.org (Geb9e.g.pppool.de [80.185.235.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0721C43D3F for ; Wed, 29 Sep 2004 18:57:22 +0000 (GMT) (envelope-from garyj@jennejohn.org) Received: from jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.13.1/8.11.6) with ESMTP id i8TIpWSl006899; Wed, 29 Sep 2004 20:51:37 +0200 (CEST) (envelope-from garyj@jennejohn.org) Message-Id: <200409291851.i8TIpWSl006899@peedub.jennejohn.org> X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: east99 In-Reply-To: Message from "Belyakovcev E.M. aka eastwood" of "Wed, 29 Sep 2004 15:34:27 +0600." <541287027.20040929153427@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Sep 2004 20:51:32 +0200 From: Gary Jennejohn cc: freebsd-isdn@freebsd.org Subject: Re: Asuscom TA-280ST X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 18:57:22 -0000 "Belyakovcev E.M. aka eastwood" writes: > > Hi! > > Somebody help me! > I have ASUSCOM ISDN TA-280ST USB and have some problems with > installation. FreeBSD 5.2.1. > I tried to intstall new_ihfc driver wich support USB Winbound chips, > but doesn't work. > Further I have tried edit source i4b_wibusb.h, where: > I4B_USB_DRIVER(/* Asuscom ISDNlink 128K (USB) > * model: TA-280-ST-W > */ > .vid = 0x07356694, <--- change to 0x0735c541 > ); > > and have error: Sep 29 15:24:16 gate kernel: ihfc0: ERROR(s): INVAL > > > > P.S. sorry for my english! > new_ihfc is not part of FreeBSD and is not supported officially. I cc'd your mail to the original developer (Hans Petter Selasky), maybe he can help. --- Gary Jennejohn / garyj[at]jennejohn.org gj[at]freebsd.org garyj[at]denx.de From owner-freebsd-isdn@FreeBSD.ORG Thu Sep 30 10:42:23 2004 Return-Path: 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 0CCA016A4CE for ; Thu, 30 Sep 2004 10:42:23 +0000 (GMT) Received: from mailfe04.swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3539443D3F for ; Thu, 30 Sep 2004 10:42:22 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: glH9sjWX7fqpVgewtlzvHw== Received: from [193.217.208.230] (HELO curly.tele2.no) by mailfe04.swip.net (CommuniGate Pro SMTP 4.2.3) with ESMTP id 178959914; Thu, 30 Sep 2004 12:42:20 +0200 Received: (from root@localhost) by curly.tele2.no (8.12.5/8.12.3) id i8UAjawK000495; Thu, 30 Sep 2004 12:45:36 +0200 (CEST) (envelope-from hselasky@c2i.net) Date: Thu, 30 Sep 2004 12:45:34 +0200 From: Hans Petter Selasky To: "Belyakovcev E.M. aka eastwood" Message-ID: <20040930124534.B289@curly.tele2.no> References: <541287027.20040929153427@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <541287027.20040929153427@mail.ru>; from east99@mail.ru on Wed, Sep 29, 2004 at 03:34:27PM +0600 cc: freebsd-isdn@freebsd.org Subject: Re: Asuscom TA-280ST X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 10:42:23 -0000 Hi, On Wed, Sep 29, 2004 at 03:34:27PM +0600, Belyakovcev E.M. aka eastwood wrote: > > Hi! > > Somebody help me! > I have ASUSCOM ISDN TA-280ST USB and have some problems with > installation. FreeBSD 5.2.1. > I tried to install new_ihfc driver which support USB Winbond chips, > but doesn't work. > Further I have tried edit source i4b_wibusb.h, where: > I4B_USB_DRIVER(/* Asuscom ISDNlink 128K (USB) > * model: TA-280-ST-W > */ > .vid = 0x07356694, <--- change to 0x0735c541 > ); > > and have error: Sep 29 15:24:16 gate kernel: ihfc0: ERROR(s): INVAL > You should check that the USB-TA has got a Winbond 6694 chip in it and that you have got an UHCI USB controller. > > > P.S. sorry for my english! -HPS