From owner-freebsd-hackers Thu May 21 19:21:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA03473 for freebsd-hackers-outgoing; Thu, 21 May 1998 19:21:16 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from shell6.ba.best.com (root@shell6.ba.best.com [206.184.139.137]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA03457 for ; Thu, 21 May 1998 19:21:07 -0700 (PDT) (envelope-from bannai@shell6.ba.best.com) Received: (from bannai@localhost) by shell6.ba.best.com (8.8.8/8.8.BEST) id TAA28154; Thu, 21 May 1998 19:20:13 -0700 (PDT) From: Vinay Bannai Message-Id: <199805220220.TAA28154@shell6.ba.best.com> Subject: Re: Probing a PCI device!! In-Reply-To: <199805220016.RAA05820@antipodes.cdrom.com> from Mike Smith at "May 21, 98 05:16:54 pm" To: mike@smith.net.au (Mike Smith) Date: Thu, 21 May 1998 19:20:12 -0700 (PDT) Cc: bannai@best.com, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG According to Mike Smith: > > Hi folks, > > > > I am trying to probe a PCI device and I am in the odd situation where the > > firmware has to be downloaded onto the card before I can check the > > Vendor/Device ID. It is set by the firmware.. > > > > How do I solve the chicken and egg problem? Or am I missing something? > > It's possible that the card is using a generic PCI bridge chip - have a > look at the card and see. If this is the case, you could try matching > against the interface vendor/model rather than the device set if the > device set is invalid. > > Do the device IDs default to anything sensible? > Oops!! Just found that the bootstrap routine on the card sets the configuration registers. This happens as soon as the system is switched on. After this I download the firwmare. Sorry about that!! Should have checked the specs more clearly before posting. Thanks Vinay -- Vinay Bannai E-mail: bannai@best.com >>> Growing old is mandatory. Growing up is optional <<< To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message