From owner-freebsd-isdn Tue Sep 21 11:39:48 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from thoth.mch.sni.de (thoth.mch.sni.de [192.35.17.2]) by hub.freebsd.org (Postfix) with ESMTP id 22A6515341 for ; Tue, 21 Sep 1999 11:39:34 -0700 (PDT) (envelope-from ust@cert.siemens.de) X-Envelope-Sender-Is: ust@cert.siemens.de (at relayer thoth.mch.sni.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.mch.sni.de (8.9.3/8.9.3) with ESMTP id UAA18896; Tue, 21 Sep 1999 20:39:31 +0200 (MET DST) Received: from mars.cert.siemens.de (ust.mchp.siemens.de [139.23.201.17]) by mail1.siemens.de (8.9.3/8.9.3) with ESMTP id UAA04622; Tue, 21 Sep 1999 20:39:30 +0200 (MET DST) Received: from alaska.cert.siemens.de (alaska.cert.siemens.de [139.23.202.134]) by mars.cert.siemens.de (8.9.3/8.9.3/Siemens CERT [ $Revision: 1.9 ]) with ESMTP id UAA14486; Tue, 21 Sep 1999 20:39:30 +0200 (CEST) Received: (from ust@localhost) by alaska.cert.siemens.de (8.9.3/8.9.3/alaska [ $Revision: 1.2 ]) id SAA01778; Tue, 21 Sep 1999 18:39:42 GMT (envelope-from ust) Date: Tue, 21 Sep 1999 20:39:42 +0200 From: Udo Schweigert To: Robert.Eckardt@rhein-main.netsurf.de Cc: isdn@FreeBSD.ORG, Hellmuth Michaelis Subject: Re: Fritz!Card v2.0 on ThinkPad390E under 3.3-STABLE Message-ID: <19990921203942.A1620@alaska.cert.siemens.de> Mail-Followup-To: Robert.Eckardt@rhein-main.netsurf.de, isdn@FreeBSD.ORG, Hellmuth Michaelis References: <199909202242.AAA01050@rhein-main.netsurf.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <199909202242.AAA01050@rhein-main.netsurf.de> X-Operating-System: FreeBSD 3.3-STABLE Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Sep 21, 1999 at 12:42:30AM +0200, Robert Eckardt wrote: > Hello, > > from the beginning (3.2-R, 3.2-S, 3.3-RC, 3.3-S) I have trouble getting > my AVM Fritz!Card v2.0 PCMCIA ISDN card in my ThinkPad 390E (Type 2626-E0G) > recognized. > > I configured the controller in the kernel and get on insertion of the > card the following response: > Card inserted, slot 0 > > isic0: PCMCIA init, irqmask = 0x20 (5), iobase = 0x140 > > Starting isdnd ends with the message "No ISDN-Controller found". > Unfortunately I was a little bit to fast in replying, without really being able to have a look at my laptop configuration. Yes this is a problem (since January) in the 3.x-tree. To get rid of it you can: 1. Go to i4b-00.83 (I recommend this) or 2. Apply the patch below (Maybe Hellmuth commits this to -STABLE, but I doubt it, and when I think about it I come to the conclusion that he will be right doing it not because it is better to commit only to -CURRENT) Regards ------------------------------------------------------------------------------- Udo Schweigert || Voice : +49 89 636 42170 Siemens AG, Siemens CERT || Fax : +49 89 636 41166 ZT IK 3 || email : Udo.Schweigert@mchp.siemens.de D-81730 Muenchen / Germany || : ust@cert.siemens.de PGP fingerprint || 2A 53 F6 A6 30 59 64 02 6B C4 E0 73 B2 C9 6C E7 ------------------------------------------------------------------------------- # Patch for 3.1-STABLE and Fritz PCMCIA Card # # $Id: i4b_diff,v 1.3 1999/09/21 18:21:59 ust Exp $ # diff -rc ./layer1/i4b_avm_fritz_pcmcia.c /tmp/i4b/layer1/i4b_avm_fritz_pcmcia.c *** ./layer1/i4b_avm_fritz_pcmcia.c Sun Dec 27 22:46:44 1998 --- sys/i4b/layer1/i4b_avm_fritz_pcmcia.c Thu Jan 28 20:33:12 1999 *************** *** 49,55 **** #define NISIC 1 #endif ! #if NISIC > 0 && defined(AVM_PCMCIA) #include #if defined(__FreeBSD__) && __FreeBSD__ >= 3 --- 49,55 ---- #define NISIC 1 #endif ! #if NISIC > 0 && defined(AVM_A1_PCMCIA) #include #if defined(__FreeBSD__) && __FreeBSD__ >= 3 *************** *** 391,398 **** * isic_attach_fritzpcmcia - attach Fritz!Card *---------------------------------------------------------------------------*/ #ifdef __FreeBSD__ ! int ! isic_attach_fritzpcmica(struct isa_device *dev) { struct isic_softc *sc = &isic_sc[dev->id_unit]; --- 391,398 ---- * isic_attach_fritzpcmcia - attach Fritz!Card *---------------------------------------------------------------------------*/ #ifdef __FreeBSD__ ! int ! isic_attach_fritzpcmcia(struct isa_device *dev) { struct isic_softc *sc = &isic_sc[dev->id_unit]; diff -rc ./layer1/i4b_isic_isa.c /tmp/i4b/layer1/i4b_isic_isa.c *** ./layer1/i4b_isic_isa.c Sun Dec 27 22:46:46 1998 --- sys/i4b/layer1/i4b_isic_isa.c Thu Jan 28 20:33:29 1999 *************** *** 332,340 **** out of this ISA specific part for the other OS */ ! #ifdef AVM_PCMCIA case FLAG_AVM_A1_PCMCIA: ret = isic_attach_fritzpcmcia(PARM); break; #endif --- 332,340 ---- out of this ISA specific part for the other OS */ ! #ifdef AVM_A1_PCMCIA case FLAG_AVM_A1_PCMCIA: ret = isic_attach_fritzpcmcia(PARM); break; #endif diff -rc ./layer1/i4b_isic_pcmcia.c /tmp/i4b/layer1/i4b_isic_pcmcia.c *** ./layer1/i4b_isic_pcmcia.c Tue Jan 19 01:21:45 1999 --- sys/i4b/layer1/i4b_isic_pcmcia.c Thu Jan 28 20:19:07 1999 *************** *** 115,128 **** printf("isic%d: PCMCIA init, irqmask = 0x%x (%d), iobase = 0x%x\n", is->id_unit, is->id_irq, devi->slt->irq, is->id_iobase); - #if 0 /* XXX: problems resolving isic_probe_avma1_pcmcia() /phk */ /* * look if there is really an AVM PCMCIA Fritz!Card and * setup the card specific stuff */ isic_probe_avma1_pcmcia(is); - #endif /* ap: * XXX what's to do with the return value? --- 115,126 ---- diff -rc ./layer1/pcmcia_isic.h /tmp/i4b/layer1/pcmcia_isic.h *** ./layer1/pcmcia_isic.h Sun Dec 27 22:46:48 1998 --- sys/i4b/layer1/pcmcia_isic.h Thu Jan 28 20:23:56 1999 *************** *** 45,60 **** struct isic_softc sc_isic; /* parent class */ /* PCMCIA-specific goo */ struct pcmcia_io_handle sc_pcioh; /* PCMCIA i/o space info */ int sc_io_window; /* our i/o window */ struct pcmcia_function *sc_pf; /* our PCMCIA function */ void *sc_ih; /* interrupt handler */ }; typedef int (*isic_pcmcia_attach_func)(struct pcmcia_isic_softc *sc, struct pcmcia_config_entry *cfe, struct pcmcia_attach_args *pa); extern int isic_attach_fritzpcmcia(struct pcmcia_isic_softc *sc, struct pcmcia_config_entry *cfe, struct pcmcia_attach_args *pa); extern int isic_attach_elsaisdnmc(struct pcmcia_isic_softc *sc, struct pcmcia_config_entry *cfe, struct pcmcia_attach_args *pa); extern int isic_attach_elsamcall(struct pcmcia_isic_softc *sc, struct pcmcia_config_entry *cfe, struct pcmcia_attach_args *pa); ! --- 45,63 ---- struct isic_softc sc_isic; /* parent class */ /* PCMCIA-specific goo */ + #ifndef __FreeBSD__ struct pcmcia_io_handle sc_pcioh; /* PCMCIA i/o space info */ + #endif int sc_io_window; /* our i/o window */ struct pcmcia_function *sc_pf; /* our PCMCIA function */ void *sc_ih; /* interrupt handler */ }; + #ifndef __FreeBSD__ typedef int (*isic_pcmcia_attach_func)(struct pcmcia_isic_softc *sc, struct pcmcia_config_entry *cfe, struct pcmcia_attach_args *pa); extern int isic_attach_fritzpcmcia(struct pcmcia_isic_softc *sc, struct pcmcia_config_entry *cfe, struct pcmcia_attach_args *pa); extern int isic_attach_elsaisdnmc(struct pcmcia_isic_softc *sc, struct pcmcia_config_entry *cfe, struct pcmcia_attach_args *pa); extern int isic_attach_elsamcall(struct pcmcia_isic_softc *sc, struct pcmcia_config_entry *cfe, struct pcmcia_attach_args *pa); ! #endif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message