Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Dec 2001 19:30:51 -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:  <20011208193051.A3736@Odin.AC.HMC.Edu>
In-Reply-To: <3C129CD6.32663F24@voicetronix.com.au>; from david@voicetronix.com.au on Sun, Dec 09, 2001 at 09:35:58AM %2B1030
References:  <3C11C69B.F2898B1D@voicetronix.com.au> <20011208132933.A6980@Odin.AC.HMC.Edu> <3C128D82.CBF9DFB3@voicetronix.com.au> <20011208140528.A16554@Odin.AC.HMC.Edu> <3C129CD6.32663F24@voicetronix.com.au>

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

--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Dec 09, 2001 at 09:35:58AM +1030, David Rowe wrote:
> > No, you can claim PCI devices after boot.  It works fine.  Stick some
> > printfs in your probe code to be sure it's being called correctly and
> > what it's being called on.

I stand partialy correctly, as Mike points out, you need to claim before
the chip driver does so you will have to reboot everytime you do
anything (in which case you should just go ahead and compile it into the
kernel since it's much easier to debug.)  I forgot there was a
difference between chip# and none#.

> OK - this is my probe function:
>=20
> static int
> mypci_probe(device_t dev)
> {
>   uprintf("MyPCI Probe\n"
>           "Vendor ID : 0x%x\n"
>           "Device ID : 0x%x\n",pci_get_vendor(dev),pci_get_device(dev));
> =20
>   return ENXIO;
> }

I hope this is just a testing function and not the real thing.  The real
thing needs to match a device id and return something appropriate.

-- 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

--vkogqOf2sHV7VnPd
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

iD8DBQE8EtrrXY6L6fI4GtQRAoftAKDAuewpDGgITWvyW0/q5juK4uFnNACfQv7c
R1eiXFwbWwMEdehCy2R6TBc=
=OtCo
-----END PGP SIGNATURE-----

--vkogqOf2sHV7VnPd--

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?20011208193051.A3736>