Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Sep 1999 20:39:42 +0200
From:      Udo Schweigert <ust@cert.siemens.de>
To:        Robert.Eckardt@rhein-main.netsurf.de
Cc:        isdn@FreeBSD.ORG, Hellmuth Michaelis <hm@hcs.de>
Subject:   Re: Fritz!Card v2.0 on ThinkPad390E under 3.3-STABLE
Message-ID:  <19990921203942.A1620@alaska.cert.siemens.de>
In-Reply-To: <199909202242.AAA01050@rhein-main.netsurf.de>
References:  <199909202242.AAA01050@rhein-main.netsurf.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/param.h>
  #if defined(__FreeBSD__) && __FreeBSD__ >= 3
--- 49,55 ----
  #define NISIC 1
  #endif
  
! #if NISIC > 0 && defined(AVM_A1_PCMCIA)
  
  #include <sys/param.h>
  #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




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