From owner-freebsd-current Thu Jul 29 0:28: 5 1999 Delivered-To: freebsd-current@freebsd.org Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by hub.freebsd.org (Postfix) with ESMTP id 8880814C47 for ; Thu, 29 Jul 1999 00:27:56 -0700 (PDT) (envelope-from jhay@zibbi.mikom.csir.co.za) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.9.3/8.9.3) id JAA61038; Thu, 29 Jul 1999 09:27:16 +0200 (SAT) (envelope-from jhay) From: John Hay Message-Id: <199907290727.JAA61038@zibbi.mikom.csir.co.za> Subject: Re: a little newbus problem In-Reply-To: from Nick Hibma at "Jul 29, 1999 09:23:37 am" To: nick.hibma@jrc.it (Nick Hibma) Date: Thu, 29 Jul 1999 09:27:16 +0200 (SAT) Cc: current@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG /usr/src/sys/i386/isa/if_ar.c /usr/src/sys/i386/isa/if_sr.c John > > Any source we can have a look at (probe/attach/*_MODULE)? > > Nick > > On Wed, 28 Jul 1999, John Hay wrote: > > > Nope, it is an ISA driver and I wasn't that brave. :-) It is part of > > standard FreeBSD and I just compiled it into the kernel with a kernel > > config file. > > > > > Are you by any chance kldload'ing the module for testing? > > > > > > If so you should have: > > > > > > DEVMETHOD(bus_driver_added, bus_generic_driver_added), > > > > > > For your 'arc' device_method_t method declaration. > > > > > > I got bit by this one too. > > > > > > On Wed, 28 Jul 1999, John Hay wrote: > > > > I have been trying to get my ar(4) and sr(4) drivers going again on -current, > > > > but it seems that the newbus code doesn't like my little trick that worked > > > > for so long. :-( > > > > > > > > Basically the drivers are called ar0 in the kernel config file, but in > > > > the isa_driver struct I call them arc and not ar, because the chip that > > > > is used actually have 2 ports and I register them seperately as ar0 and > > > > ar1 during the attach phase. > > > > > > > > >From what I can see now, it looks like the newbus code doesn't even > > > > call the arprobe routine. I have even added a printf right in the start > > > > of it, but it never prints anything. Just as a test I changed my kernel > > > > config file and files.i386 from ar to arc and then it works. > > > > > > > > So what should I do? Can the newbus code be fixed to work in this case > > > > too or should I newbusify the drivers and will that help? Won't that > > > > create a clash because of the isa compatabilty shim? > > > > > > > > John > > -- > > John Hay -- John.Hay@mikom.csir.co.za > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-current" in the body of the message > > > > > > -- > ISIS/STA, T.P.270, Joint Research Centre, 21020 Ispra, Italy > -- John Hay -- John.Hay@mikom.csir.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message