From owner-freebsd-hackers Tue Dec 12 1: 0: 7 2000 From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 12 01:00:06 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (Postfix) with ESMTP id B891237B400 for ; Tue, 12 Dec 2000 01:00:05 -0800 (PST) Received: (from daemon@localhost) by smtp04.primenet.com (8.9.3/8.9.3) id BAA00486 for ; Tue, 12 Dec 2000 01:55:54 -0700 (MST) Received: from 206-132-49-154.nas-1.SCF.primenet.com(206.132.49.154), claiming to be "max" via SMTP by smtp04.primenet.com, id smtpdAAAlIai3a; Tue Dec 12 01:55:50 2000 Reply-To: From: "Steve Shoecraft" To: Subject: Accessing the Video Bios on a PCI card?? Date: Tue, 12 Dec 2000 02:01:51 -0700 Message-ID: <000401c0641a$2b382140$9a3184ce@max.home.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a ATI rage 128 all-in-blunder agp card. I'm currently writing a driver for video capture. I got everything to work properly so far, but I'm using "plugged-in" values for certain things that REQUIRE I get them from the video bios on the card (multimedia table, tv-out table, etc.). The sample source that ATI doles out directly accesses the 0xC000-0xC800 region to get the info (the example is a linux implementation). This will only work if the card is the primary adapter. If it's not, another way must be found. No matter what, I still don't want to do that, as it seems "cheesy." I've tried using the pci_read_config(dev, PCIR_BIOS, 4) command to get the base of the card's video bios, but it comes up empty. Ok, so, how do I get the address of the video bios of the card? I've tried writing to the PCIR_BIOS register with the BIOS_ENABLE bit, but I'm pretty sure that's to SET the (physical) address of the video bios. I need to GET it. Any ideas? Suggestions? - Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message