Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Dec 2001 13:29:33 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        David Rowe <david@voicetronix.com.au>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Newbie: Driver for PLX9050
Message-ID:  <20011208132933.A6980@Odin.AC.HMC.Edu>
In-Reply-To: <3C11C69B.F2898B1D@voicetronix.com.au>; from david@voicetronix.com.au on Sat, Dec 08, 2001 at 06:21:55PM %2B1030
References:  <3C11C69B.F2898B1D@voicetronix.com.au>

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

--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: <unknown card> (vendor=3D0x15e2, dev=3D0x0500) at 9.0
> chip2: <PCI to Other bridge (vendor=3D10b5 device=3D9050)> port
> 0x7000-0x707f mem
> 0xe4022000-0xe40220ff,0xe4000000-0xe401ffff,0xe4020000-0xe402007f irq 10
> at device 10.0 on pci0
> pci0: <S3 ViRGE graphics accelerator> at 11.0 irq 12
> ed0: <NE2000 PCI Ethernet (RealTek 8029)> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011208132933.A6980>