From owner-freebsd-questions@FreeBSD.ORG Tue May 25 15:16:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C47716A4CE for ; Tue, 25 May 2004 15:16:30 -0700 (PDT) Received: from zircon.seattle.wa.us (dsl231-043-165.sea1.dsl.speakeasy.net [216.231.43.165]) by mx1.FreeBSD.org (Postfix) with SMTP id 07DCB43D48 for ; Tue, 25 May 2004 15:16:28 -0700 (PDT) (envelope-from joe@zircon.seattle.wa.us) Received: (qmail 11453 invoked from network); 25 May 2004 22:16:20 -0000 Received: from localhost (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 25 May 2004 22:16:20 -0000 From: Joe Kelsey To: questions@freebsd.org Content-Type: text/plain Message-Id: <1085523380.3232.140.camel@zircon> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 25 May 2004 15:16:20 -0700 Content-Transfer-Encoding: 7bit Subject: Device Driver issues on 4.7 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2004 22:16:30 -0000 I have taken several existing device driver sources and used them to create a new device driver. However, I cannot seem to get the system to probe for my device. I created a device driver named vsbc which can get configured at either 0x0e0 or 0x1e0 depending on BIOS settings in a PC-104 mobo. Therefore, I need to use a kernel configuration line like: device vsbc0 at isa? port 0x0e0 to configure it. I added the lines to files.i386 and this part of the configuration seems to work correctly, up to a point. The problem occurs somewhere in the actual device probing, in that isa_common.c prints the following during boot -v: vsbc0 failed to probe at port 0xe0 on isa0 I do not understand which important piece of linkage I have missed in order to get the system to call my probe and attach subroutines in order to make the device connect properly. I have read all of the existing web resources I can find, and they all seem hopelessly out-of-date or ones that apply only to -CURRENT. I have an isa_driver structure in my code which includes the probe and attach linkages, so I guess the problem comes in linking this structure into some sort of global list so the system can find it. So, can anyone tell me which important piece of the configuration I have missed? Thanks in advance. /Joe