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
This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C1618E.AE925340
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

=20
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. =20


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.=20


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?=20

 Thanks!

 Suvarna

=20


------=_NextPart_000_000E_01C1618E.AE925340
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>&nbsp;
<P class=3DMsoNormal><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello,</SPAN></P>
<P class=3DMsoNormal><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN=20
style=3D"mso-tab-count: =
1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>I am new to device driver environment. I am writing a character =
device=20
driver a PCI card in 4.3 FreeBSD.&nbsp; I have used the PCI skeleton =
given on=20
freeBSD.org documents. For the first stage this skeleton should able to =
detect=20
the specified card. <SPAN style=3D"mso-spacerun: =
yes">&nbsp;</SPAN><?xml:namespace=20
prefix =3D o ns =3D "urn:schemas-microsoft-com:office:office"=20
/><o:p></o:p></SPAN></P>
<P class=3DMsoNormal><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P>
<P class=3DMsoNormal><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">As per the=20
flow in /sys/kern , it tries to detect all PCI devices present in=20
the&nbsp;system,&nbsp;but I am getting only 2 pci devices.=20
<o:p></o:p></SPAN></P>
<P class=3DMsoNormal><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P>
<P class=3DMsoNormal><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">1. Intel's=20
82801BA/BAM AC97 Audio Controller with vendor id 0x8086 and device id is =

0x2445</SPAN></P>
<P class=3DMsoNormal><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">and</SPAN><o:p></o:p></P>
<P class=3DMsoNormal><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">2. Matrox'=20
MGA-G200 Millennium/Mystique G200 AGP with vendor id 0x102b and device =
id=20
0x0521</SPAN><o:p></o:p></P>
<P class=3DMsoNormal><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">The card=20
for which I am writing the driver and&nbsp;realtek's 8139 card (which is =
present=20
in my system)&nbsp; is also not getting detected.</SPAN><o:p></o:p></P>
<P class=3DMsoNormal><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">I have=20
tried with WinDriver tool loading on same system(in NT 4.0), there it=20
detects&nbsp;ten pci devices including my card and also realtek's=20
card.</SPAN><o:p></o:p></P>
<P class=3DMsoNormal>How can I find my card using this skeleton =
?<o:p></o:p></P>
<P class=3DMsoNormal><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Can anybody=20
help me into this? </SPAN><o:p></o:p></P>
<P class=3DMsoNormal>&nbsp;Thanks!<o:p></o:p></P>
<P class=3DMsoNormal>&nbsp;<SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Suvarna</SPAN><o:p></o:p></P>
<P class=3DMsoNormal>&nbsp;<o:p></o:p></P></BODY></HTML>

------=_NextPart_000_000E_01C1618E.AE925340--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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