From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 08:30:18 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 46B9816A4CE for ; Fri, 30 Apr 2004 08:30:18 -0700 (PDT) Received: from tyr.systh.org (c168015.adsl.hansenet.de [213.39.168.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 834BA43D2D for ; Fri, 30 Apr 2004 08:30:17 -0700 (PDT) (envelope-from mm@tyr.systh.org) Received: from tyr.systh.org (localhost [127.0.0.1]) by tyr.systh.org (8.12.11/8.12.11) with ESMTP id i3UEP1kN006161 for ; Fri, 30 Apr 2004 16:25:01 +0200 (CEST) (envelope-from mm@tyr.systh.org) Received: (from mm@localhost) by tyr.systh.org (8.12.11/8.12.11/Submit) id i3UEP1E5006160 for freebsd-hackers@freebsd.org; Fri, 30 Apr 2004 16:25:01 +0200 (CEST) (envelope-from mm) Date: Fri, 30 Apr 2004 16:25:01 +0200 From: Martin Moeller To: freebsd-hackers@freebsd.org Message-ID: <20040430142501.GA3036@tyr.systh.org> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Homepage: http://www.systh.org/ X-OS: FreeBSD 4.9 STABLE (RELENG_4) http://www.freebsd.org/ X-Uptime: 4:15pm up 15 mins, 2 users, load averages: 0,15 0,19 0,15 User-Agent: Mutt/1.5.6i Subject: 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:30:18 -0000 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. Thanks in advance! Martin