From owner-freebsd-isdn Wed Mar 17 13:10:39 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from mail.rwth-aachen.de (mail.RWTH-Aachen.DE [137.226.144.9]) by hub.freebsd.org (Postfix) with ESMTP id 5CE4D153A3 for ; Wed, 17 Mar 1999 13:10:36 -0800 (PST) (envelope-from heinig@hdz-ima.rwth-aachen.de) Received: from HDZ-IMA.RWTH-Aachen.de (majestix.hdz-ima.RWTH-Aachen.DE) by mail.rwth-aachen.de (PMDF V5.1-12 #30440) with ESMTP id <01J8YAU5AGX60001YD@mail.rwth-aachen.de> for freebsd-isdn@freebsd.org; Wed, 17 Mar 1999 22:10:14 +0100 Received: from MAJESTIX/MAIL by HDZ-IMA.RWTH-Aachen.de (Mercury 1.20); Wed, 17 Mar 1999 22:12:24 +0000 Received: from MAIL by MAJESTIX (Mercury 1.20); Wed, 17 Mar 1999 22:11:55 +0000 Received: from hdz-ima.rwth-aachen.de by HDZ-IMA.RWTH-Aachen.de (Mercury 1.20) with ESMTP; Wed, 17 Mar 1999 22:11:54 +0000 Date: Wed, 17 Mar 1999 22:10:14 +0100 From: Gerald Heinig Subject: I/O base address for ISAC/HSCX To: freebsd-isdn@freebsd.org, hm@hcs.de Message-id: <36F01A36.8EB476A8@hdz-ima.rwth-aachen.de> Organization: Informatik im Maschinenbau / Hochschuldidaktisches Zentrum, RWTH Aachen MIME-version: 1.0 X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.7-RELEASE i386) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I've finally found the time again to have a look at the i4b internals and I have a question which has been bugging me for a while now: why do you do all that I/O address translation ie. base + offset - somethingelse in the Fritz card low-level driver? more specifically, the lines #define AVM_CONF_REG 0x1800 /* base offset for config register */ #define AVM_CONF_IRQ 0x1801 /* base offset for IRQ register */ /* config register write */ in i4b_avm_a1.c are a source of puzzlement. Where do you get the 0x1800 from? Aren't the first set of ISAC registers simply mapped consecutively at I/O address (one of: 0x200/0x240/0x300/0x340)? If they're mapped elsewhere, where did this info come from? [hmm.. let me guess... AVM? :-) ]. Another bit is where you do the following: i4b_avm_a1.c line 121 insb((int)base - 0x3e0, (u_char *)buf, (u_int)len); ^^^^^^^^^^^^^ Why the base +/- offset business? Cheers, Gerald -- "Would you like to buy an encyclopaedia to help your child get to college?" "He doesn't need it. He takes the bus!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message