Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2001 22:03:18 +0530
From:      "Suvarna Ahire" <suvarna@indranetworks.com>
To:        <questions@FreeBSD.ORG>
Subject:   Problem for detecting a PCI device.
Message-ID:  <001101c16160$98708470$1100a8c0@indranet>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
 
Hello,

            I am new to device driver environment. I am writing a character device driver a PCI card in 4.3 FreeBSD.  I have used the PCI skeleton given on freeBSD.org documents. For the first stage this skeleton should able to detect the specified card.  


As per the flow in /sys/kern , it tries to detect all PCI devices present in the system, but I am getting only 2 pci devices. 


1. Intel's 82801BA/BAM AC97 Audio Controller with vendor id 0x8086 and device id is 0x2445

and

2. Matrox' MGA-G200 Millennium/Mystique G200 AGP with vendor id 0x102b and device id 0x0521

The card for which I am writing the driver and realtek's 8139 card (which is present in my system)  is also not getting detected.

I have tried with WinDriver tool loading on same system(in NT 4.0), there it detects ten pci devices including my card and also realtek's card.

How can I find my card using this skeleton ?

Can anybody help me into this? 

 Thanks!

 Suvarna

 


[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>&nbsp;
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello,</SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>I am new to device driver environment. I am writing a character device 
driver a PCI card in 4.3 FreeBSD.&nbsp; I have used the PCI skeleton given on 
freeBSD.org documents. For the first stage this skeleton should able to detect 
the specified card. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN><?xml:namespace 
prefix = o ns = "urn:schemas-microsoft-com:office:office" 
/><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">As per the 
flow in /sys/kern , it tries to detect all PCI devices present in 
the&nbsp;system,&nbsp;but I am getting only 2 pci devices. 
<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">1. Intel's 
82801BA/BAM AC97 Audio Controller with vendor id 0x8086 and device id is 
0x2445</SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">and</SPAN><o:p></o:p></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">2. Matrox' 
MGA-G200 Millennium/Mystique G200 AGP with vendor id 0x102b and device id 
0x0521</SPAN><o:p></o:p></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The card 
for which I am writing the driver and&nbsp;realtek's 8139 card (which is present 
in my system)&nbsp; is also not getting detected.</SPAN><o:p></o:p></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have 
tried with WinDriver tool loading on same system(in NT 4.0), there it 
detects&nbsp;ten pci devices including my card and also realtek's 
card.</SPAN><o:p></o:p></P>
<P class=MsoNormal>How can I find my card using this skeleton ?<o:p></o:p></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Can anybody 
help me into this? </SPAN><o:p></o:p></P>
<P class=MsoNormal>&nbsp;Thanks!<o:p></o:p></P>
<P class=MsoNormal>&nbsp;<SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Suvarna</SPAN><o:p></o:p></P>
<P class=MsoNormal>&nbsp;<o:p></o:p></P></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001101c16160$98708470$1100a8c0>