Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Jan 2004 02:09:44 +0000
From:      "Haidong Xia" <hdxia1@hotmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Problem with loading another pci driver for the same card
Message-ID:  <BAY1-F30AgjTAXxup2k0000fa91@hotmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?BAY1-F30AgjTAXxup2k0000fa91>