public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Programmatically probe video chipset
@ 2001-02-12 16:43 Paul Powell
  2001-02-12 16:50 ` Brian Gerst
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Paul Powell @ 2001-02-12 16:43 UTC (permalink / raw)
  To: linux-kernel

Is there an API or other means to determine what video
card, namely the chipset, that the user has installed
on his machine?

Thanks,
Paul

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
-
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://vger.kernel.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Programmatically probe video chipset
  2001-02-12 16:43 Programmatically probe video chipset Paul Powell
@ 2001-02-12 16:50 ` Brian Gerst
  2001-02-12 16:54 ` Alan Cox
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Brian Gerst @ 2001-02-12 16:50 UTC (permalink / raw)
  To: Paul Powell; +Cc: linux-kernel

Paul Powell wrote:
> 
> Is there an API or other means to determine what video
> card, namely the chipset, that the user has installed
> on his machine?
> 
> Thanks,
> Paul

The only real way is to correlate the PCI id with a chipset.  This is
what XFree86 does.

--

				Brian Gerst
-
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://vger.kernel.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Programmatically probe video chipset
  2001-02-12 16:43 Programmatically probe video chipset Paul Powell
  2001-02-12 16:50 ` Brian Gerst
@ 2001-02-12 16:54 ` Alan Cox
  2001-02-12 17:06 ` Fernando Fuganti
  2001-02-12 17:11 ` Henrik Stokseth
  3 siblings, 0 replies; 5+ messages in thread
From: Alan Cox @ 2001-02-12 16:54 UTC (permalink / raw)
  To: Paul Powell; +Cc: linux-kernel

> Is there an API or other means to determine what video
> card, namely the chipset, that the user has installed
> on his machine?

On a modern X86 machine use the PCI/AGP bus data. On a PS/2 use the MCA bus
data. On nubus use the nubus probe data. On old style ISA bus PCs done a large
pointy hat and spend several years reading arcane and forbidden scrolls
-
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://vger.kernel.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Programmatically probe video chipset
  2001-02-12 16:43 Programmatically probe video chipset Paul Powell
  2001-02-12 16:50 ` Brian Gerst
  2001-02-12 16:54 ` Alan Cox
@ 2001-02-12 17:06 ` Fernando Fuganti
  2001-02-12 17:11 ` Henrik Stokseth
  3 siblings, 0 replies; 5+ messages in thread
From: Fernando Fuganti @ 2001-02-12 17:06 UTC (permalink / raw)
  To: Paul Powell; +Cc: linux-kernel



On Mon, 12 Feb 2001, Paul Powell wrote:

> Is there an API or other means to determine what video
> card, namely the chipset, that the user has installed
> on his machine?

try kudzu (a hardware detection lib from RedHat) or libdetect (another one
but from Mandrake)
they all provide a reasonable interface and database
 

Fernando Fuganti

-
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://vger.kernel.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Programmatically probe video chipset
  2001-02-12 16:43 Programmatically probe video chipset Paul Powell
                   ` (2 preceding siblings ...)
  2001-02-12 17:06 ` Fernando Fuganti
@ 2001-02-12 17:11 ` Henrik Stokseth
  3 siblings, 0 replies; 5+ messages in thread
From: Henrik Stokseth @ 2001-02-12 17:11 UTC (permalink / raw)
  To: linux-kernel

Paul Powell <moloch16@yahoo.com> wrote:

> Is there an API or other means to determine what video
> card, namely the chipset, that the user has installed
> on his machine?

for PCI and AGP cards you can scan through the bus and fetch all
vendor:device numbers of type 7 (vga compatible) IIRC and then match them
against a database. i have the code for this if you're interested.
for ISA cards that has PnP functionality you can get the vendor string using
a PnP interrupt service routine, I have never actually done that but i know
that it is possible.
But for most cards you can use the VESA VBE API to fetch the information,
you will have to do this from real/virtual mode afaik.
If you're not interrested in programming hardware you can use the pci
interface in /proc instead which is the best solution if you're running
linux. ;o)

-henrik


-
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://vger.kernel.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-02-12 17:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-12 16:43 Programmatically probe video chipset Paul Powell
2001-02-12 16:50 ` Brian Gerst
2001-02-12 16:54 ` Alan Cox
2001-02-12 17:06 ` Fernando Fuganti
2001-02-12 17:11 ` Henrik Stokseth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox