linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <syrjala@sci.fi>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: Card's view of framebuffer offset into userspace?
Date: Mon, 15 Jul 2002 04:56:26 +0300	[thread overview]
Message-ID: <20020715045626.A9296@sci.fi> (raw)
In-Reply-To: <20020715000214.GD11998@ppc.vc.cvut.cz>; from vandrove@vc.cvut.cz on Mon, Jul 15, 2002 at 02:02:14AM +0200

On Mon, Jul 15, 2002 at 02:02:14AM +0200, Petr Vandrovec wrote:
> On Sun, Jul 14, 2002 at 04:10:29PM +0300, Ville Syrjälä wrote:
> > Is there a way to ge the framebuffer offset to userspace? I hacked
> > DirectFB to draw to the crtc2 display but currently I've had to hardcode
> > the framebuffer offset. So I need something I can feed to tmy G400.
> 
> In what environment? With matroxfb you have special framebuffer which
> is displayed by CRTC2 engine.

Yes. That's what DirectFB uses for mode switching and buffer flipping.  
But I need something for the DSTORG,SRCORG and TEXORG registers. DirectFB
uses it's own memory manager and the offsets there start from the
beginning of the framebuffer. It assumes the hardware sees the framebuffer
at offset 0 but with the CRTC2 that's not true.

> Offset is not explicitly exported, but
> if you'll take low 24 bits from fb_start, you'll get offset on
> G400/G450/G550 devices.

I don't see such a thing anywhere. Do you mean smem_start? Ok just tried
with (smem_start + offset & 0x1ffffff) and it works for both heads. So
that's actually 25 bits. Maybe I should just use 28 bits to accomodate
larger framebuffers?

-- 
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/


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

  reply	other threads:[~2002-07-15  1:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20020714161029.A24172@sci.fi>
2002-07-15  0:02 ` [Linux-fbdev-users] Card's view of framebuffer offset into userspace? Petr Vandrovec
2002-07-15  1:56   ` Ville Syrjälä [this message]
2002-07-14 13:10 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=20020715045626.A9296@sci.fi \
    --to=syrjala@sci.fi \
    --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).