From owner-freebsd-hackers Sat Dec 8 19:30:56 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 36B9337B416 for ; Sat, 8 Dec 2001 19:30:54 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id fB93UpU05438; Sat, 8 Dec 2001 19:30:51 -0800 Date: Sat, 8 Dec 2001 19:30:51 -0800 From: Brooks Davis To: David Rowe Cc: hackers@freebsd.org Subject: Re: Newbie: Driver for PLX9050 Message-ID: <20011208193051.A3736@Odin.AC.HMC.Edu> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C129CD6.32663F24@voicetronix.com.au>; from david@voicetronix.com.au on Sun, Dec 09, 2001 at 09:35:58AM +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 --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