From owner-freebsd-current Wed Jul 28 12:41:50 1999 Delivered-To: freebsd-current@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [63.67.141.99]) by hub.freebsd.org (Postfix) with ESMTP id 5AAFE15025 for ; Wed, 28 Jul 1999 12:41:46 -0700 (PDT) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.8.8/8.8.7) with ESMTP id PAA14954; Wed, 28 Jul 1999 15:41:30 -0400 (EDT) Date: Wed, 28 Jul 1999 15:41:29 -0400 (EDT) From: "Matthew N. Dodd" To: John Hay Cc: current@FreeBSD.ORG Subject: Re: a little newbus problem In-Reply-To: <199907281732.TAA48306@zibbi.mikom.csir.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message