Problem with loading another pci driver for the same card

Haidong Xia hdxia1 at hotmail.com
Wed Dec 31 18:09:46 PST 2003


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 at pci0:31:0:        class=0x060100 card=0x00000000 chip=0x248c8086 
rev=0x02 hdr=0x00

I think the system only probe the cards with "none at ....".

thank you very much.
Haidong

agp0 at pci0:0:0:  class=0x060000 card=0x00000000 chip=0x1a308086 rev=0x04 
hdr=0x00
pcib1 at pci0:1:0: class=0x060400 card=0x00000000 chip=0x1a318086 rev=0x04 
hdr=0x01
uhci0 at pci0:29:0:        class=0x0c0300 card=0x02201014 chip=0x24828086 
rev=0x02 hdr=0x00
uhci1 at pci0:29:1:        class=0x0c0300 card=0x02201014 chip=0x24848086 
rev=0x02 hdr=0x00
uhci2 at pci0:29:2:        class=0x0c0300 card=0x02201014 chip=0x24878086 
rev=0x02 hdr=0x00
pcib2 at pci0:30:0:        class=0x060400 card=0x00000000 chip=0x24488086 
rev=0x42 hdr=0x01
isab0 at pci0:31:0:        class=0x060100 card=0x00000000 chip=0x248c8086 
rev=0x02 hdr=0x00
atapci0 at pci0:31:1:      class=0x01018a card=0x02201014 chip=0x248a8086 
rev=0x02 hdr=0x00
none0 at pci0:31:3:        class=0x0c0500 card=0x02201014 chip=0x24838086 
rev=0x02 hdr=0x00
none1 at pci0:31:5:        class=0x040100 card=0x05081014 chip=0x24858086 
rev=0x02 hdr=0x00
none2 at pci0:31:6:        class=0x070300 card=0x051a1014 chip=0x24868086 
rev=0x02 hdr=0x00
none3 at pci1:0:0: class=0x030000 card=0x05171014 chip=0x4c571002 rev=0x00 
hdr=0x00
pcic0 at pci2:0:0: class=0x060700 card=0x05121014 chip=0xac55104c rev=0x01 
hdr=0x02
pcic1 at pci2:0:1: class=0x060700 card=0x05121014 chip=0xac55104c rev=0x01 
hdr=0x02
wi0 at pci2:2:0:   class=0x028000 card=0x25138086 chip=0x38731260 rev=0x01 
hdr=0x00
fxp0 at 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



More information about the freebsd-questions mailing list