From owner-freebsd-hackers Sat Aug 25 18:37:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 36A4A37B408 for ; Sat, 25 Aug 2001 18:37:18 -0700 (PDT) (envelope-from msmith@mass.dis.org) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.4/8.11.3) with ESMTP id f7Q1gJn22657; Sat, 25 Aug 2001 18:42:19 -0700 (PDT) (envelope-from msmith@mass.dis.org) Message-Id: <200108260142.f7Q1gJn22657@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: djohnson Cc: freebsd-hackers@FreeBSD.org Subject: Re: pci_get_devid() In-reply-to: Your message of "Wed, 22 Aug 2001 14:22:52 MDT." <3B84149C.8DD7F30B@faradayco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 25 Aug 2001 18:42:19 -0700 From: Mike Smith 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 > I'm doing some PCI related code and keep running into the > function/method pci_get_devid() in FreeBSD source files (like > pcisupport.c). A couple of us have looked for this function in our > systems and can't seem to find it. Can anyone tell me where I can find > the source for pci_get_devid()? By the way, I'm trying to write a > little application that gives a detailed enumeration of the PCI bus > using BIOS calls. Thanks in advance. You've already been pointed at the PCI_ACCESSOR helper define, but it's not actually what you want. pci_get_devid reads the *cached* value of the device ID for a device. It's my guess that you actually want to read config space, in which case you're going to want pci_read_conf() instead. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message