Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Nov 1999 16:01:55 +0100
From:      "D. Rock" <rock@dead-end.net>
To:        hm@hcs.de
Cc:        Charlie ROOT <root@neland.dk>, freebsd-current@FreeBSD.ORG
Subject:   Re: Dr Neuhaus niccy go not recognized
Message-ID:  <38259463.FDEA7F45@dead-end.net>
References:  <19991107130146.2B72E38E2@hcswork.hcs.de>

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




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