From owner-freebsd-current Sun Nov 7 7:38:28 1999 Delivered-To: freebsd-current@freebsd.org Received: from pulsar.dead-end.net (pulsar.high-performance.com [216.15.153.82]) by hub.freebsd.org (Postfix) with ESMTP id 145C0150C6 for ; Sun, 7 Nov 1999 07:38:16 -0800 (PST) (envelope-from rock@dead-end.net) Received: from mailto.dead-end.net (dead-end.net [216.15.153.82] (may be forged)) by pulsar.dead-end.net (8.9.3/8.9.3/DEAD-END/1999020900) with ESMTP id QAA13935; Sun, 7 Nov 1999 16:37:52 +0100 (CET) (envelope-from rock@dead-end.net) Received: from server.rock.net (p3E9E0E80.dip.t-dialin.net [62.158.14.128]) by mailto.dead-end.net (8.9.3/DEAD-END/1999102400-Customer) with ESMTP id QAA13927; Sun, 7 Nov 1999 16:37:50 +0100 (CET) (envelope-from rock@dead-end.net) Received: from dead-end.net (solaris.rock.net [172.23.7.10]) by server.rock.net (8.9.3/8.9.3/ROCK/1999053100) with ESMTP id QAA86307; Sun, 7 Nov 1999 16:02:18 +0100 (CET) (envelope-from rock@dead-end.net) Message-ID: <38259463.FDEA7F45@dead-end.net> Date: Sun, 07 Nov 1999 16:01:55 +0100 From: "D. Rock" X-Mailer: Mozilla 4.61 [en] (X11; I; SunOS 5.7 i86pc) X-Accept-Language: de, en MIME-Version: 1.0 To: hm@hcs.de Cc: Charlie ROOT , freebsd-current@FreeBSD.ORG Subject: Re: Dr Neuhaus niccy go not recognized References: <19991107130146.2B72E38E2@hcswork.hcs.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hellmuth Michaelis wrote: > > >From the keyboard of Charlie ROOT: > > > During make of kernel: > > > > cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > > -fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include > > -DKERNEL -include opt_global.h -elf ../../i4b/layer1/i4b_isic_pnp.c > > ../../i4b/layer1/i4b_isic_pnp.c:53: warning: #warning "Fix i4b pnp!" > > > > Is this a "simple" matter of the right options to config, or does it > > involve changes to the code? > > PnP support for i4b in -current was disabled during the conversion of > -current to the new-bus/new-pnp architecture; as a result all PnP ISDN > cards i4b supports do no longer work. Any hints when i4b will be converted to new-bus? The code is in stale condition for almost 3 months now. To the original poster: I also have an ISDN PnP card (SedlBauer WinSpeed). In order to get it run on -current, I did the following: - disable "controller pnp0" in your kernel config file (If you need it for some other device, bad luck) - note which resources your PnP card were assigned. - use good old style in your config [my config] device isic0 at isa? port 0x108 irq 10 flags 9 (take a look at /sys/i4b/layer1/i4b_l1.h for your flag number). - patch some files in the i4b tree (hope it is as simple for your device). The example below is from my configuration: Index: i4b_isic_isa.c =================================================================== RCS file: /data/cvs/src/sys/i4b/layer1/i4b_isic_isa.c,v retrieving revision 1.6 diff -u -r1.6 i4b_isic_isa.c --- i4b_isic_isa.c 1999/08/28 00:45:40 1.6 +++ i4b_isic_isa.c 1999/09/26 18:15:40 @@ -204,6 +204,12 @@ break; #endif +#ifdef SEDLBAUER + case FLAG_SWS: + ret = isic_probe_sws(dev); + break; +#endif + default: break; } Index: i4b_sws.c =================================================================== RCS file: /data/cvs/src/sys/i4b/layer1/i4b_sws.c,v retrieving revision 1.5 diff -u -r1.5 i4b_sws.c --- i4b_sws.c 1999/08/28 00:45:41 1.5 +++ i4b_sws.c 1999/09/26 19:44:50 @@ -283,6 +283,11 @@ /* attach callback routine */ +int isic_probe_sws(struct isa_device *dev) +{ + return(1); +} + int isic_attach_sws(struct isa_device *dev) { Index: isa_isic.c =================================================================== RCS file: /data/cvs/src/sys/i4b/layer1/isa_isic.c,v retrieving revision 1.5 diff -u -r1.5 isa_isic.c --- isa_isic.c 1999/08/28 00:45:43 1.5 +++ isa_isic.c 1999/09/26 18:11:33 @@ -196,6 +196,12 @@ break; #endif +#ifdef SEDLBAUER + case FLAG_SWS: + ret = isic_probe_sws(&args); + break; +#endif + default: /* No card type given, try to figure ... */ if (ia->ia_iobase == IOBASEUNK) { [all files are relative to /sys/i4b/layer1] One note: The device doesn't get reset properly during reboot. I don't know if this a general problem with the driver or just a result from my hacks. If I reboot I have to manually turn off/on the machine. Besides from this error, I hadn't had any problems so far. Daniel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message