Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2000 02:01:51 -0700
From:      "Steve Shoecraft" <sshoecraft@1-link.net>
To:        <freebsd-hackers@freebsd.org>
Subject:   Accessing the Video Bios on a PCI card??
Message-ID:  <000401c0641a$2b382140$9a3184ce@max.home.org>

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

	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000401c0641a$2b382140$9a3184ce>