Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 27 Mar 2001 14:25:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 27 Mar 2001 14:25:20 -0500 Received: from bzq-128-3.bezeqint.net ([212.179.127.3]:55819 "HELO arava.co.il") by vger.kernel.org with SMTP id ; Tue, 27 Mar 2001 14:25:05 -0500 Date: Tue, 27 Mar 2001 19:50:03 +0200 (IST) From: Matan Ziv-Av Reply-To: Matan Ziv-Av To: James Simmons cc: Linux Kernel Mailing List , Linux Fbdev development list , Linux console project Subject: Re: vgacon on which card? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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. matan@svgalib.org - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/