linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michel Dänzer" <michel@daenzer.net>
To: Jon Smirl <jonsmirl@yahoo.com>
Cc: fb-devel <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: Add three new IOCTLs to FB API
Date: Mon, 22 Sep 2003 12:23:26 +0200	[thread overview]
Message-ID: <1064226206.8398.43.camel@thor.holligenstrasse29.lan> (raw)
In-Reply-To: <20030922052838.53671.qmail@web14913.mail.yahoo.com>

On Mon, 2003-09-22 at 07:28, Jon Smirl wrote:
> 
> In order to load DRM 3D support I need two pieces of information. The name of
> the 3D DRM driver and the bus:dev:func of the hardware. DRM does not implement
> PCI ID probing, instead you need to it what hardware to use. 
> 
> By adding these to the FB API you can start standalone Mesa just by specifying
> the name of the FB device to use. I can pick up mode and resolution from the
> existing FB API.
> 
> 1) Get location of card that is associated with this fb device. It would return
> bus,dev,func of hardware. There may be more than one piece of the same hardware
> installed.
> 
> 3) Get vendor and card PCI ID
> 
> 2) Get 3D driver name. Return the name of the DRM driver that is associated
> with this fb device. For example aty128fb would return r128, radeonfb would
> return radeon. Empty string if there is none. There are eight DRM drivers and
> 15 fb ones.

For radeon, you also need to know whether it's an R100 or R200 core (for
the 3D driver, as Ian pointed out, but also for the CP init ioctl).

Maybe these could be handled via sysfs instead of adding ioctls?

Also, at least with radeonfb, the fix.id field contains the chip ID.


-- 
Earthling Michel Dänzer   \  Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast  \     http://svcs.affero.net/rm.php?r=daenzer



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  parent reply	other threads:[~2003-09-22 10:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-22  5:28 Add three new IOCTLs to FB API Jon Smirl
2003-09-22  6:13 ` Ian Romanick
2003-09-22  7:21 ` Geert Uytterhoeven
2003-09-22 20:25   ` Jon Smirl
2003-09-23  0:27     ` Michel Dänzer
2003-09-22 23:18   ` Ian Romanick
2003-09-23 16:36     ` Kronos
2003-09-22 10:23 ` Michel Dänzer [this message]
2003-09-23 15:45 ` Ville Syrjälä

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1064226206.8398.43.camel@thor.holligenstrasse29.lan \
    --to=michel@daenzer.net \
    --cc=jonsmirl@yahoo.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).