Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Apr 1999 00:56:06 +0200 (CEST)
From:      Blaz Zupan <blaz@gold.amis.net>
To:        freebsd-current@freebsd.org
Cc:        freebsd-isdn@freebsd.org
Subject:   new-bus changes break i4b
Message-ID:  <Pine.BSF.4.05.9904180052060.326-100000@gold.amis.net>

next in thread | raw e-mail | index | archive | help
After the latest new-bus changes in FreeBSD-current a kernel configured
with ISDN support and PnP does not compile anymore. The following patch
fixed the problem for me, at least the kernel compiles and runs. I don't
have a PnP ISDN card (only a non-PnP one), but I do have PnP enabled in my
kernel config file because my sound card needs it. The patch below is
based on changes between /sys/i386/isa/sio.c and /sys/isa/sio.c and it
could be completely wrong...

*** /sys/i4b/layer1/i4b_isic_pnp.c.orig	Sun Mar  7 17:08:16 1999
--- /sys/i4b/layer1/i4b_isic_pnp.c	Sun Apr 18 00:48:46 1999
***************
*** 219,231 ****
  	if(dev->id_driver == NULL)
  	{
  		dev->id_driver = &isicdriver;
! 
! 		isa_devp = find_isadev(isa_devtab_net, &isicdriver, 0);
! 
! 		if(isa_devp != NULL)
! 		{
! 			dev->id_id = isa_devp->id_id;
! 		}
  	}
  
  	if((dev->id_alive = isic_pnpprobe(dev, spci.port[1])) != 0)
--- 219,225 ----
  	if(dev->id_driver == NULL)
  	{
  		dev->id_driver = &isicdriver;
! 		dev->id_id = isa_compat_nextid();
  	}
  
  	if((dev->id_alive = isic_pnpprobe(dev, spci.port[1])) != 0)


Blaz Zupan, blaz@medinet.si, http://home.amis.net/blaz
Medinet d.o.o., Linhartova 21, 2000 Maribor, Slovenia




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9904180052060.326-100000>