From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 18:09:46 2003 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 2362716A4CF for ; Wed, 31 Dec 2003 18:09:46 -0800 (PST) Received: from hotmail.com (bay1-f30.bay1.hotmail.com [65.54.245.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id F233C43D64 for ; Wed, 31 Dec 2003 18:09:44 -0800 (PST) (envelope-from hdxia1@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 31 Dec 2003 18:09:44 -0800 Received: from 68.162.128.182 by by1fd.bay1.hotmail.msn.com with HTTP; Thu, 01 Jan 2004 02:09:44 GMT X-Originating-IP: [68.162.128.182] X-Originating-Email: [hdxia1@hotmail.com] X-Sender: hdxia1@hotmail.com From: "Haidong Xia" To: freebsd-questions@freebsd.org Date: Thu, 01 Jan 2004 02:09:44 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Jan 2004 02:09:44.0789 (UTC) FILETIME=[530A8850:01C3D00C] Subject: Problem with loading another pci driver for the same card 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: Thu, 01 Jan 2004 02:09:46 -0000 Hello, everyone, If the kernel already has a pci driver for a pci card, how could I load another loadable driver for the same card? I wrote a Kernel module PCI driver for one pci card. After the kernel is up, it automatically identified the card, and load its driver. If I want to use my own driver, the driver can't be probed correctly. When you use 'kldload' to load a pci driver, I think the kernel only probe the card without driver loaded. So, my driver can never be loaded, since the kernel doesn't probe the pci card I want. Do you know how I could load my driver? The output from pciscan is in the following. I want to load a pci driver to sab0@pci0:31:0: class=0x060100 card=0x00000000 chip=0x248c8086 rev=0x02 hdr=0x00 I think the system only probe the cards with "none@....". thank you very much. Haidong agp0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x1a308086 rev=0x04 hdr=0x00 pcib1@pci0:1:0: class=0x060400 card=0x00000000 chip=0x1a318086 rev=0x04 hdr=0x01 uhci0@pci0:29:0: class=0x0c0300 card=0x02201014 chip=0x24828086 rev=0x02 hdr=0x00 uhci1@pci0:29:1: class=0x0c0300 card=0x02201014 chip=0x24848086 rev=0x02 hdr=0x00 uhci2@pci0:29:2: class=0x0c0300 card=0x02201014 chip=0x24878086 rev=0x02 hdr=0x00 pcib2@pci0:30:0: class=0x060400 card=0x00000000 chip=0x24488086 rev=0x42 hdr=0x01 isab0@pci0:31:0: class=0x060100 card=0x00000000 chip=0x248c8086 rev=0x02 hdr=0x00 atapci0@pci0:31:1: class=0x01018a card=0x02201014 chip=0x248a8086 rev=0x02 hdr=0x00 none0@pci0:31:3: class=0x0c0500 card=0x02201014 chip=0x24838086 rev=0x02 hdr=0x00 none1@pci0:31:5: class=0x040100 card=0x05081014 chip=0x24858086 rev=0x02 hdr=0x00 none2@pci0:31:6: class=0x070300 card=0x051a1014 chip=0x24868086 rev=0x02 hdr=0x00 none3@pci1:0:0: class=0x030000 card=0x05171014 chip=0x4c571002 rev=0x00 hdr=0x00 pcic0@pci2:0:0: class=0x060700 card=0x05121014 chip=0xac55104c rev=0x01 hdr=0x02 pcic1@pci2:0:1: class=0x060700 card=0x05121014 chip=0xac55104c rev=0x01 hdr=0x02 wi0@pci2:2:0: class=0x028000 card=0x25138086 chip=0x38731260 rev=0x01 hdr=0x00 fxp0@pci2:8:0: class=0x020000 card=0x02091014 chip=0x10318086 rev=0x42 hdr=0x00 _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail