Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 1998 15:13:16 +0100
From:      Andreas Lohrum 6804 <Andreas.Lohrum@ae3.hypo.de>
To:        freebsd-isdn@FreeBSD.ORG
Subject:   i4b on NetBSD 1.3
Message-ID:  <199802231413.PAA21426@ws030mqa.ae3.hypo.de>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802231413.PAA21426>