From owner-freebsd-hackers Sat Dec 8 13:29:51 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 0DAAF37B416 for ; Sat, 8 Dec 2001 13:29:45 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id fB8LTXk11395; Sat, 8 Dec 2001 13:29:33 -0800 Date: Sat, 8 Dec 2001 13:29:33 -0800 From: Brooks Davis To: David Rowe Cc: hackers@FreeBSD.ORG Subject: Re: Newbie: Driver for PLX9050 Message-ID: <20011208132933.A6980@Odin.AC.HMC.Edu> References: <3C11C69B.F2898B1D@voicetronix.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C11C69B.F2898B1D@voicetronix.com.au>; from david@voicetronix.com.au on Sat, Dec 08, 2001 at 06:21:55PM +1030 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 08, 2001 at 06:21:55PM +1030, David Rowe wrote: > Hello, >=20 > I am new to FreeBSD and am attempting to write a device driver for a > Computer Telephony card, that uses the PLX9050 bridge chip. >=20 > I started with the KLD sample in section 22.1 of the FreeBSD Developers > Handbook. However, when I install this driver with kldload, the probe > function doesnt seem to find my card. >=20 > This puzzled me for a while, until I checked out dmesg: >=20 > pci0: (vendor=3D0x15e2, dev=3D0x0500) at 9.0 > chip2: port > 0x7000-0x707f mem > 0xe4022000-0xe40220ff,0xe4000000-0xe401ffff,0xe4020000-0xe402007f irq 10 > at device 10.0 on pci0 > pci0: at 11.0 irq 12 > ed0: port 0x7400-0x741f irq 9 at > device 12.0 on pci0 >=20 > It seems that the kernel is finding my card (PCI to Other bridge) and > installing some sort of driver for it at boot time. =20 >=20 > OK - so my questions are: >=20 > 1) How do I access the PLX chip thru this built in "chip2" driver? > 2) Do I need to write a kernel mode driver that somehow talks to the > chip2 driver? > 3) Or can I do it all from user mode? The chip driver is entierly bogus and only claims things that nothing else does. This generally means that your probe code isn't working correctly because if it were your driver would have claimed this device. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8EoY8XY6L6fI4GtQRAqKmAJ9NoVyVuw4xt+WOHt1QegS5beVZwQCfRVne WQyoyfYiVPaJkhJNTkcoWSg= =PBTn -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message