From owner-freebsd-isdn Mon Feb 23 06:13:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA11779 for freebsd-isdn-outgoing; Mon, 23 Feb 1998 06:13:43 -0800 (PST) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from thor.hypo.de (thor.hypo.de [194.112.82.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA11769 for ; Mon, 23 Feb 1998 06:13:40 -0800 (PST) (envelope-from andreas.lohrum@ae3.hypo.de) Received: from ahura.hypo.de (ahura.hypo.de [194.112.82.30]) by thor.hypo.de ($Revision: 1.4 $) with SMTP id PAA25650 for ; Mon, 23 Feb 1998 15:13:33 +0100 (MET) Received: from inetgate.hypo.de by ahura.hypo.de via smtpd (for mgw-out.hypo.de [194.112.82.10]) with SMTP; 23 Feb 1998 14:13:33 UT Received: from ae3.hypo.de (sv002mz3.ae3.hypo.de [128.11.4.12]) by inewgate.hypo.de ($Revision: 1.13 $) with SMTP id PAA02551 for ; Mon, 23 Feb 1998 15:13:32 +0100 (MET) Received: from ws030mqa.ae3.hypo.de by ae3.hypo.de (SMI-8.6/SMI-SVR4) id PAA12459; Mon, 23 Feb 1998 15:13:19 +0100 Received: by ws030mqa.ae3.hypo.de (SMI-8.6/SMI-SVR4) id PAA21426; Mon, 23 Feb 1998 15:13:16 +0100 Date: Mon, 23 Feb 1998 15:13:16 +0100 Message-Id: <199802231413.PAA21426@ws030mqa.ae3.hypo.de> From: Andreas Lohrum 6804 To: freebsd-isdn@FreeBSD.ORG Subject: i4b on NetBSD 1.3 Reply-to: Andreas.Lohrum@ae3.hypo.de Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi all, is there someone who can educate me in the differences in accessing a softc strcture in FreeBSD and NetBSD. I think the problems getting i4b running on NetBSD boil down to the following differences. driver/i4b_ctl.c ================================================================= line 220: hst->vfr = isic_sc[hst->unit].sc_chan[hst->chan].stat_VFR; hst->rdo = isic_sc[hst->unit].sc_chan[hst->chan].stat_RDO; hst->crc = isic_sc[hst->unit].sc_chan[hst->chan].stat_CRC; hst->rab = isic_sc[hst->unit].sc_chan[hst->chan].stat_RAB; hst->xdu = isic_sc[hst->unit].sc_chan[hst->chan].stat_XDU; hst->rfo = isic_sc[hst->unit].sc_chan[hst->chan].stat_RFO; break; Cite from David Wetzel: ================================================================= That gives me the -DTEL_S0_16 for the compiler. My main problems are: ../../../../i4b/driver/i4b_ctl.c: In function `i4bctlioctl': ../../../../i4b/driver/i4b_ctl.c:220: request for member `sc_chan' in something not a structure or union ../../../../i4b/driver/i4b_ctl.c:221: request for member `sc_chan' in something not a structure or union ../../../../i4b/driver/i4b_ctl.c:222: request for member `sc_chan' in something not a structure or union ../../../../i4b/driver/i4b_ctl.c:223: request for member `sc_chan' in something not a structure or union ../../../../i4b/driver/i4b_ctl.c:224: request for member `sc_chan' in something not a structure or union ../../../../i4b/driver/i4b_ctl.c:225: request for member `sc_chan' in something not a structure or union ../../../../i4b/driver/i4b_ctl.c:244: request for member `sc_chan' in something not a structure or union ../../../../i4b/driver/i4b_ctl.c:245: request for member `sc_chan' in something not a structure or union ../../../../i4b/driver/i4b_ctl.c:246: request for member `sc_chan' in something not a structure or union ../../../../i4b/driver/i4b_ctl.c:247: request for member `sc_chan' in something not a structure or union ../../../../i4b/driver/i4b_ctl.c:248: request for member `sc_chan' in something not a structure or union ../../../../i4b/driver/i4b_ctl.c:249: request for member `sc_chan' in something not a structure or union *** Error code 1 ================================================================= from i4b_l1.h ================================================================= #ifdef __FreeBSD__ extern struct isic_softc isic_sc[NISIC]; .. .. #else /* not FreeBSD */ .. .. extern struct isic_softc *isic_sc[]; #define isic_find_sc(unit) (isic_sc[(unit)]) #endif and i4b_l1.c ================================================================= static int ph_activate_req(int unit) { #ifdef __FreeBSD__ struct isic_softc *sc = &isic_sc[unit]; #else struct isic_softc *sc = isic_find_sc(unit); #endif ================================================================= I'm don't understand this differences, should have some meditiation about that, maybe someone of you is already enlighted :-)) Thanks Andy -- Mit freundlichen Gruessen/Best regards Andreas Lohrum, ConSol* email: andreas.lohrum@consol.de z.Zt.: Hypobank Muenchen phone: +49 89 9244-6668 Apianstr. 14 email: andreas.lohrum@ae3.hypo.de D-85774 Unterfoehring mobile: +49 172 8935 476 ConSol's 'CallManager*'(TM) is IBM's "Solution of the year 1997" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message