2001-03-27 16:27:33

by James Simmons

[permalink] [raw]
Subject: vgacon on which card?


Say you have several PCI graphics cards in a system but only have vgacon
running. Is their away to determine which PCI card vgacon is running on?


MS: (n) 1. A debilitating and surprisingly widespread affliction that
renders the sufferer barely able to perform the simplest task. 2. A disease.

James Simmons [[email protected]] ____/|
fbdev/console/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U
http://linuxconsole.sourceforge.net


2001-03-27 19:25:40

by Matan Ziv-Av

[permalink] [raw]
Subject: Re: vgacon on which card?

On Tue, 27 Mar 2001, James Simmons wrote:

>
> Say you have several PCI graphics cards in a system but only have vgacon
> running. Is their away to determine which PCI card vgacon is running on?

The enabled one :-)

I don't see a general solution.
You can know if an AGP card's vga portion is enabled by checking the
corresponding bit in the pci bridge configuration space. But for PCI
cards there is no standard way of enabling vga.
If you have only one card with I/O enabled you can know this is the
card. If you have more, you can write to the 0xb8000 region, and see in
what linear aperture the write happens.



--
Matan Ziv-Av. [email protected]