From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 08:53:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F13B816A4CE for ; Fri, 30 Apr 2004 08:53:48 -0700 (PDT) Received: from gatekeeper.syskonnect.de (gatekeeper.syskonnect.de [213.144.13.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id C646243D2D for ; Fri, 30 Apr 2004 08:53:45 -0700 (PDT) (envelope-from gheinig@syskonnect.de) Received: from syskonnect.de (skd.de [10.9.15.1])i3UFsh2U018336; Fri, 30 Apr 2004 17:54:43 +0200 (MET DST) Received: from syskonnect.de (localhost [127.0.0.1])i3UFrhUN007008; Fri, 30 Apr 2004 17:53:43 +0200 (MET DST) Message-ID: <40927639.1030602@syskonnect.de> Date: Fri, 30 Apr 2004 17:52:25 +0200 From: Gerald Heinig User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martin Moeller References: <20040430142501.GA3036@tyr.systh.org> In-Reply-To: <20040430142501.GA3036@tyr.systh.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Accessing (the i4b) device driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 15:53:49 -0000 Martin, take a look at isdnd. If all you want is a program to tell you whether someone's calling you and under what number, isdnd will tell you that in full screen mode. Alternatively, if you want to write your own program, take a look at the isdnd sources to see how it's done. HTH, Gerald Martin Moeller wrote: > Hi all, > > I'm totally new to FreeBSD programming, so please forgive my troll-like > question! I'd like to write a nifty little program showing if somebody is > calling me via an ISDN line. In the far future, the program should show the > caller's telephone number. > The ISDN kernel options are set and compiled ok, the system comes up with > > isic0: port 0xb800-0xb803,0xd000-0xd07f mem > 0xeb800000-0xeb80007f irq 9 at device 11.0 on pci2 > isic0: passive stack unit 0 > > so I assume everything's working great so far. > > I've looked around in /usr/src/sys/i386/include/i4b_ioctl.h and other files > but - to be honest - I don't have a clue how to go on from here. This kernel > stuff seems to be more complicated than the usual little useless programs I > write. :-( > Could you please point me to some documentation that is helpful? Nothing in > the FBSD developer/architecture handbook was able to enlighten me.